diff --git a/lib/WebGUI/Help/WebGUI.pm b/lib/WebGUI/Help/WebGUI.pm index acf9059e6..f64ec4d72 100644 --- a/lib/WebGUI/Help/WebGUI.pm +++ b/lib/WebGUI/Help/WebGUI.pm @@ -41,6 +41,24 @@ our $HELP = { related => [ ], }, + 'replacements edit' => { + title => '1052', + body => 'replacements edit body', + fields => [ + { + title => '1050', + description => '1050 description', + namespace => 'WebGUI', + }, + { + title => '1051', + description => '1051 description', + namespace => 'WebGUI', + }, + ], + related => [ + ], + }, 'trash empty' => { title => '696', body => '651', diff --git a/lib/WebGUI/Operation/Replacements.pm b/lib/WebGUI/Operation/Replacements.pm index 2f5d87566..561dc87e2 100644 --- a/lib/WebGUI/Operation/Replacements.pm +++ b/lib/WebGUI/Operation/Replacements.pm @@ -63,15 +63,17 @@ sub www_editReplacement { $f->text( -name=>"searchFor", -label=>WebGUI::International::get(1050), + -hoverHelp=>WebGUI::International::get('1050 description'), -value=>$data->{searchFor} ); $f->textarea( -label=>WebGUI::International::get(1051), + -hoverHelp=>WebGUI::International::get('1051 description'), -name=>"replaceWith", -value=>$data->{replaceWith} ); $f->submit; - return _submenu($f->print,"1052"); + return _submenu($f->print,"1052",'replacements edit'); } #------------------------------------------------------------------- diff --git a/lib/WebGUI/i18n/English/WebGUI.pm b/lib/WebGUI/i18n/English/WebGUI.pm index fd4411697..e3c607e2b 100644 --- a/lib/WebGUI/i18n/English/WebGUI.pm +++ b/lib/WebGUI/i18n/English/WebGUI.pm @@ -3205,6 +3205,34 @@ As with any delete operation, you are prompted to be sure you wish to proceed wi lastUpdated => 1066418983 }, + '1050 description' => { + message => q|A string to search for. All punctuation will be escaped.|, + lastUpdated => 1121052295, + }, + + '1051 description' => { + message => q|What you want the string to be replaced with.|, + lastUpdated => 1121052295, + }, + + 'replacements edit body' => { + message => q| +

Many Assets allow you to control HTML and javascript that is entered by users, but that is +limited to the scope of the Asset and don't control content entered users. WebGUI has a +sitewide system called Content Filtering that provides that ability.

+ +

It works much like the Search and Replace function of word processors. First, enter +a string to be searched for. Then enter in the string that you want to replace it.

+ +

Most of the time, this Content Filter will be used to remove offensive words such as slang, +curses or racial slurs. However, it can also be used as a preprocessor for inline macros. See +the default replacements that ship with WebGUI for examples.

+ +

Only Admins may configure the Content Filter.

+|, + lastUpdated => 1121052324 + }, + '735' => { message => q|6 Professional|, lastUpdated => 1033836686