From fa532301da34270d5662f5672009364278037c43 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Fri, 25 Feb 2005 03:37:18 +0000 Subject: [PATCH] moved Asset/Snippet help into its own files --- lib/WebGUI/Asset/Snippet.pm | 2 +- lib/WebGUI/Help/Asset.pm | 11 ----------- lib/WebGUI/Help/Snippet.pm | 18 ++++++++++++++++++ lib/WebGUI/i18n/English/Asset.pm | 23 ----------------------- lib/WebGUI/i18n/English/Snippet.pm | 30 ++++++++++++++++++++++++++++++ 5 files changed, 49 insertions(+), 35 deletions(-) create mode 100644 lib/WebGUI/Help/Snippet.pm create mode 100644 lib/WebGUI/i18n/English/Snippet.pm diff --git a/lib/WebGUI/Asset/Snippet.pm b/lib/WebGUI/Asset/Snippet.pm index e6989efa9..22397be78 100644 --- a/lib/WebGUI/Asset/Snippet.pm +++ b/lib/WebGUI/Asset/Snippet.pm @@ -87,7 +87,7 @@ sub getEditForm { my $tabform = $self->SUPER::getEditForm(); $tabform->getTab("properties")->codearea( -name=>"snippet", - -label=>WebGUI::International::get('snippet', 'Asset'), + -label=>WebGUI::International::get('snippet', 'Snippet'), -label=>"Snippet", -value=>$self->getValue("snippet") ); diff --git a/lib/WebGUI/Help/Asset.pm b/lib/WebGUI/Help/Asset.pm index ed3087501..d6f00bf36 100644 --- a/lib/WebGUI/Help/Asset.pm +++ b/lib/WebGUI/Help/Asset.pm @@ -20,17 +20,6 @@ our $HELP = { ] }, - 'snippet add/edit' => { - title => 'snippet add/edit title', - body => 'snippet add/edit body', - related => [ - { - tag => 'asset fields', - namespace => 'Asset' - }, - ] - }, - 'redirect add/edit' => { title => 'redirect add/edit title', body => 'redirect add/edit body', diff --git a/lib/WebGUI/Help/Snippet.pm b/lib/WebGUI/Help/Snippet.pm new file mode 100644 index 000000000..44f755aac --- /dev/null +++ b/lib/WebGUI/Help/Snippet.pm @@ -0,0 +1,18 @@ +package WebGUI::Help::Snippet; + +our $HELP = { + + 'snippet add/edit' => { + title => 'snippet add/edit title', + body => 'snippet add/edit body', + related => [ + { + tag => 'asset fields', + namespace => 'Asset' + }, + ] + }, + +}; + +1; diff --git a/lib/WebGUI/i18n/English/Asset.pm b/lib/WebGUI/i18n/English/Asset.pm index 62969cd74..e79751ffd 100644 --- a/lib/WebGUI/i18n/English/Asset.pm +++ b/lib/WebGUI/i18n/English/Asset.pm @@ -157,29 +157,6 @@ argument. context => 'The default name of all assets.' }, - 'snippet' => { - message => q|Snippet|, - lastUpdated => 1104629663, - context => 'Default name of all snippets' - }, - - 'snippet add/edit title' => { - message => q|Snippet, Add/Edit|, - lastUpdated => 1104630516, - }, - - 'snippet add/edit body' => { - message => q|

Snippets are bits of text that may be reused on your site. Things like java scripts, style sheets, flash animations, or even slogans are all great snippets. Best of all, if you need to change the text, you can change it in only one location.

- -

Since Snippets are Assets, so they have all the properties that Assets do.

- -

Snippet
-This is the snippet. Either type it in or copy and paste it into the form field. -|, - context => 'Describing snippets and its sole field.', - lastUpdated => 1106683569, - }, - 'extra head tags' => { message => q|Extra HEAD tags|, context => q|label for Asset form|, diff --git a/lib/WebGUI/i18n/English/Snippet.pm b/lib/WebGUI/i18n/English/Snippet.pm new file mode 100644 index 000000000..01912cc2b --- /dev/null +++ b/lib/WebGUI/i18n/English/Snippet.pm @@ -0,0 +1,30 @@ +package WebGUI::i18n::English::Snippet; + +our $I18N = { + + 'snippet' => { + message => q|Snippet|, + lastUpdated => 1104629663, + context => 'Default name of all snippets' + }, + + 'snippet add/edit title' => { + message => q|Snippet, Add/Edit|, + lastUpdated => 1104630516, + }, + + 'snippet add/edit body' => { + message => q|

Snippets are bits of text that may be reused on your site. Things like java scripts, style sheets, flash animations, or even slogans are all great snippets. Best of all, if you need to change the text, you can change it in only one location.

+ +

Since Snippets are Assets, so they have all the properties that Assets do.

+ +

Snippet
+This is the snippet. Either type it in or copy and paste it into the form field. +|, + context => 'Describing snippets and its sole field.', + lastUpdated => 1106683569, + }, + +}; + +1;