From 83df234e8877f90256a408b0f650e507ea66f5f4 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Mon, 7 Nov 2005 20:37:49 +0000 Subject: [PATCH] add skeletons for help and i18n --- lib/WebGUI/Help/_Help.pm | 30 ++++++++++++++++++++++++++++++ lib/WebGUI/i18n/English/_i18n.pm | 15 +++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 lib/WebGUI/Help/_Help.pm create mode 100644 lib/WebGUI/i18n/English/_i18n.pm diff --git a/lib/WebGUI/Help/_Help.pm b/lib/WebGUI/Help/_Help.pm new file mode 100644 index 000000000..d25e03f77 --- /dev/null +++ b/lib/WebGUI/Help/_Help.pm @@ -0,0 +1,30 @@ +package WebGUI::Help::_Help; ## Be sure to change the package name to match your filename. + +##Stub document for creating help documents. + +our $HELP = { ##hashref of hashes + 'help article' => { #name of article, used as a reference by other articles + title => 'help article title', #The title and body are looked up in the + body => 'help article title', #i18n file of the same name + fields => [ #This array is used to list hover help for form fields. + { + title => 'form label 1', + description => 'form description 1', + namespace => 'namespace', #The namespace is called out explicitly + }, + { + title => 'form label 2', + description => 'form description 2', + namespace => 'namespace', #The namespace is called out explicitly + }, + ], + related => [ ##This lists other help articles that are related to this one + { + tag => 'other help article', + namespace => 'other help articles namespace' + }, + ], + }, +}; + +1; ##All perl modules must return true diff --git a/lib/WebGUI/i18n/English/_i18n.pm b/lib/WebGUI/i18n/English/_i18n.pm new file mode 100644 index 000000000..0e2c568fa --- /dev/null +++ b/lib/WebGUI/i18n/English/_i18n.pm @@ -0,0 +1,15 @@ +package WebGUI::i18n::English::_i18n; ##Be sure to change the package name to match the filename + +our $I18N = { ##hashref of hashes + 'key1' => { ##key that will be used to reference this entry. Do not translate this. + message => q|Internationalized message. WebGUI Macros work in here. Please use XHTML format for markup|, + lastUpdated => 1131394070, #seconds from the epoch, + }, + + 'key2' => { + message => q|Second message.|, + lastUpdated => 1131394072, + }, +}; + +1;