webgui/lib/WebGUI/Macro/International.pm

50 lines
1.2 KiB
Perl

package WebGUI::Macro::International;
#-------------------------------------------------------------------
# WebGUI is Copyright 2001-2005 Plain Black Corporation.
#-------------------------------------------------------------------
# Please read the legal notices (docs/legal.txt) and the license
# (docs/license.txt) that came with this distribution before using
# this software.
#-------------------------------------------------------------------
# http://www.plainblack.com info@plainblack.com
#-------------------------------------------------------------------
use strict;
use WebGUI::International;
=head1 NAME
Package WebGUI::Macro::International
=head1 DESCRIPTION
Macro for displaying an internationalized label from WebGUI's internationalization system.
=head2 process ( label, namespace )
Note that a particular language cannot be specified. It uses either the
current User's setting or the default language for the site. English is
always used as a fallback.
=head3 label
The label to pull.
=head3 namespace
The namespace to pull the label from.
=cut
#-------------------------------------------------------------------
sub process {
my $self = shift;
return WebGUI::International::get(shift,shift);
}
1;