Fix some really old, out-of-date POD in International.pm

Rework Operation/Profile to use an existing i18n object to fetch language hash.
This commit is contained in:
Colin Kuskie 2006-06-28 17:56:15 +00:00
parent adc20c335a
commit dc584ec66d
2 changed files with 8 additions and 1 deletions

View file

@ -39,9 +39,16 @@ This package can also be used in object-oriented (OO) style.
use WebGUI::International;
my $i = WebGUI::International->new($session,$namespace);
$string = $i->get($internationalId);
$string = $i->get($internationalId, $otherNamespace);
$url = $i->makeUrlCompliant($url);
$hashRef = $i->getLanguage($lang);
$hashRef = $i->getLanguages();
=head1 METHODS
These functions/methods are available from this package:

View file

@ -151,7 +151,7 @@ sub validateProfileData {
$warning .= '<li>'.$i18n->get(1072).'</li>';
}
if ($field->getId eq "language") {
unless (exists WebGUI::International->new($session)->getLanguages($session)->{$fieldValue}) {
unless (exists $i18n->getLanguages()->{$fieldValue}) {
$error .= '<li>'.$field->getLabel.' '.$i18n->get(451).'</li>';
}
}