fixed typo + better language checking
This commit is contained in:
parent
fbcd4fb252
commit
bfd2f7ed59
2 changed files with 6 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ This package provides an interface to the internationalization system.
|
||||||
use WebGUI::International;
|
use WebGUI::International;
|
||||||
$string = WebGUI::International::get($session,$internationalId,$namespace);
|
$string = WebGUI::International::get($session,$internationalId,$namespace);
|
||||||
$hashRef = WebGUI::International::getLanguage($session,$lang);
|
$hashRef = WebGUI::International::getLanguage($session,$lang);
|
||||||
$hashRef = WebGUI::International::getLanguages($session,);
|
$hashRef = WebGUI::International::getLanguages($session);
|
||||||
$url = WebGUI::International::makeUrlCompliant($session,$url);
|
$url = WebGUI::International::makeUrlCompliant($session,$url);
|
||||||
|
|
||||||
This package can also be used in object-oriented (OO) style.
|
This package can also be used in object-oriented (OO) style.
|
||||||
|
|
|
||||||
|
|
@ -150,6 +150,11 @@ sub validateProfileData {
|
||||||
} elsif ($field->getId eq "email" && isDuplicateEmail($session,$data{$field->getId})) {
|
} elsif ($field->getId eq "email" && isDuplicateEmail($session,$data{$field->getId})) {
|
||||||
$warning .= '<li>'.$i18n->get(1072).'</li>';
|
$warning .= '<li>'.$i18n->get(1072).'</li>';
|
||||||
}
|
}
|
||||||
|
if ($field->getId eq "language") {
|
||||||
|
unless (exists WebGUI::International->new($session)->getLanguages($session)->{$fieldValue}) {
|
||||||
|
$error .= '<li>'.$field->getLabel.' '.$i18n->get(451).'</li>';
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return (\%data, $error, $warning);
|
return (\%data, $error, $warning);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue