From f03a030f355ebcae3e6d51941907bf9f12c9a3a1 Mon Sep 17 00:00:00 2001 From: Bart Jol Date: Tue, 27 Oct 2009 11:53:26 +0100 Subject: [PATCH] added i18n and help --- lib/WebGUI/Help/Macro_PickLanguage.pm | 36 ++++++++++++++++ lib/WebGUI/i18n/English/Macro_PickLanguage.pm | 43 +++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 lib/WebGUI/Help/Macro_PickLanguage.pm create mode 100644 lib/WebGUI/i18n/English/Macro_PickLanguage.pm diff --git a/lib/WebGUI/Help/Macro_PickLanguage.pm b/lib/WebGUI/Help/Macro_PickLanguage.pm new file mode 100644 index 000000000..5ca6b601f --- /dev/null +++ b/lib/WebGUI/Help/Macro_PickLanguage.pm @@ -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 diff --git a/lib/WebGUI/i18n/English/Macro_PickLanguage.pm b/lib/WebGUI/i18n/English/Macro_PickLanguage.pm new file mode 100644 index 000000000..867148bc2 --- /dev/null +++ b/lib/WebGUI/i18n/English/Macro_PickLanguage.pm @@ -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