added i18n and help
This commit is contained in:
parent
951439a017
commit
f03a030f35
2 changed files with 79 additions and 0 deletions
36
lib/WebGUI/Help/Macro_PickLanguage.pm
Normal file
36
lib/WebGUI/Help/Macro_PickLanguage.pm
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
package WebGUI::Help::Macro_PickLanguage;
|
||||
|
||||
use strict;
|
||||
|
||||
|
||||
our $HELP = {
|
||||
'template variables' => {
|
||||
title => 'PickLanguage macro',
|
||||
body => '',
|
||||
'variables' => [
|
||||
{
|
||||
name => "lang_loop",
|
||||
variables => [
|
||||
{
|
||||
name => "language_lang",
|
||||
},
|
||||
{
|
||||
name => "language_langAbbr",
|
||||
},
|
||||
{
|
||||
name => "language_langAbbrLoc",
|
||||
},
|
||||
{
|
||||
name => "language_langEng",
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
related => [
|
||||
],
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
1; ##All perl modules must return true
|
||||
#vim:ft=perl
|
||||
43
lib/WebGUI/i18n/English/Macro_PickLanguage.pm
Normal file
43
lib/WebGUI/i18n/English/Macro_PickLanguage.pm
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
package WebGUI::i18n::English::Macro_PickLanguage; ##Be sure to change the package name to match the filename
|
||||
|
||||
use strict; ##Required for all good Perl::Critic compliant code
|
||||
|
||||
our $I18N = { ##hashref of hashes
|
||||
'lang_loop' => { ##key that will be used to reference this entry. Do not translate this.
|
||||
message => q|A loop that contains all installed languages|,
|
||||
lastUpdated => 1131394070, #seconds from the epoch
|
||||
context => q|A template loop|
|
||||
},
|
||||
|
||||
'language_lang' => {
|
||||
message => q|The name of the language in that language.|,
|
||||
lastUpdated => 1131394072,
|
||||
context => q|A template variable to show the name of the language|
|
||||
},
|
||||
|
||||
'language_langAbbr' => {
|
||||
message => q|An standard code for the language, for instance "en".|,
|
||||
lastUpdated => 1131394072,
|
||||
context => q|A label of the language to use in the template|
|
||||
},
|
||||
'language_langAbbrLoc' => {
|
||||
message => q|An standard abbreviated label for the language, for instance "US".|,
|
||||
lastUpdated => 1131394072,
|
||||
context => q|A label of the language to use in the template|
|
||||
},
|
||||
'language_langEng' => {
|
||||
message => q|The English name of the language.|,
|
||||
lastUpdated => 1131394072,
|
||||
context => q|A label of the language to use in the template|
|
||||
},
|
||||
'language_url' => {
|
||||
message => q|The url that sets the WebGUI language to the selected language.|,
|
||||
lastUpdated => 1131394072,
|
||||
context => q|The url to change languages|
|
||||
},
|
||||
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
#vim:ft=perl
|
||||
Loading…
Add table
Add a link
Reference in a new issue