internationalize labels

This commit is contained in:
Colin Kuskie 2005-06-16 17:15:18 +00:00
parent 1c263b8b8e
commit 7b0fdf5157
2 changed files with 13 additions and 7 deletions

View file

@ -40,6 +40,7 @@ sub www_genesis {
#------------------------------------------------------------------- #-------------------------------------------------------------------
sub www_setup { sub www_setup {
my $i18n = WebGUI::International->new("WebGUI");
unless ($session{setting}{specialState} eq "init") { unless ($session{setting}{specialState} eq "init") {
if (rand(10)>5) { if (rand(10)>5) {
return www_genesis(); return www_genesis();
@ -72,17 +73,17 @@ sub www_setup {
$f->text( $f->text(
-name=>"companyName", -name=>"companyName",
-value=>$session{setting}{companyName}, -value=>$session{setting}{companyName},
-label=>"Company Name" -label=>$i18n->get(125),
); );
$f->email( $f->email(
-name=>"companyEmail", -name=>"companyEmail",
-value=>$session{setting}{companyEmail}, -value=>$session{setting}{companyEmail},
-label=>"Company Email Address" -label=>$i18n->get(126),
); );
$f->url( $f->url(
-name=>"companyURL", -name=>"companyURL",
-value=>$session{setting}{companyURL}, -value=>$session{setting}{companyURL},
-label=>"Company URL" -label=>$i18n->get(127),
); );
$f->submit; $f->submit;
$output .= $f->print; $output .= $f->print;
@ -108,18 +109,18 @@ sub www_setup {
$f->text( $f->text(
-name=>"username", -name=>"username",
-value=>$u->username, -value=>$u->username,
-label=>"Username" -label=>$i18n->get(50),
); );
$f->text( $f->text(
-name=>"identifier", -name=>"identifier",
-value=>"123qwe", -value=>"123qwe",
-label=>"Password", -label=>$i18n->get(51),
-subtext=>'<div style=\"font-size: 10px;\">(Displayed in clear text so you can ensure you\'ve typed it correctly.)</div>' -subtext=>'<div style=\"font-size: 10px;\">(.$i18n->get("password clear text").')</div>'
); );
$f->email( $f->email(
-name=>"email", -name=>"email",
-value=>$u->profileField("email"), -value=>$u->profileField("email"),
-label=>"Email Address" -label=>$i18n->get(56),
); );
$f->submit; $f->submit;
$output .= $f->print; $output .= $f->print;

View file

@ -839,6 +839,11 @@ As with any delete operation, you are prompted to be sure you wish to proceed wi
lastUpdated => 1031514049 lastUpdated => 1031514049
}, },
'password clear text' => {
message => q|Displayed in clear text so you can ensure you\'ve typed it correctly.|,
lastUpdated => 1118942066
},
'456' => { '456' => {
message => q|Back to user list.|, message => q|Back to user list.|,
lastUpdated => 1031514049 lastUpdated => 1031514049