diff --git a/lib/WebGUI/International.pm b/lib/WebGUI/International.pm index d2ac1029e..f1019767f 100644 --- a/lib/WebGUI/International.pm +++ b/lib/WebGUI/International.pm @@ -29,15 +29,9 @@ This package provides an interface to the internationalization system. =head1 SYNOPSIS use WebGUI::International; - $string = WebGUI::International::get($internationalId,$namespace); - $hashRef = WebGUI::International::getLanguage($lang); - $hashRef = WebGUI::International::getLanguages(); - $url = WebGUI::International::makeUrlCompliant($url); - -This package can also be used in object-oriented (OO) style. - - use WebGUI::International; - my $i = WebGUI::International->new($namespace); + my $i = WebGUI::International->new($session, $namespace); + $hashRef = $i->getLanguage($lang); + $hashRef = $i->getLanguages(); $string = $i->get($internationalId); $url = $i->makeUrlCompliant($url); @@ -187,9 +181,9 @@ sub makeUrlCompliant { =head2 new ( session, [ namespace, language ] ) -The constructor for the International function if using it in OO mode. Note -that namespace and languages are defaults; they may be overridden in -all accessor methods, (get, getLanguage). +The constructor for the International function if using it in OO mode. +Note that namespace and languages are defaults; they may be overridden +in all accessor methods, (get, getLanguage). =head3 session