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:
parent
adc20c335a
commit
dc584ec66d
2 changed files with 8 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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>';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue