From d309dbce6ada583355929b281761a49e28aa7906 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Thu, 14 May 2009 00:13:49 +0000 Subject: [PATCH] i18n the choices for the new DataForm Rich Editor selector. --- lib/WebGUI/Asset/Wobject/DataForm.pm | 2 +- lib/WebGUI/i18n/English/Asset_DataForm.pm | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/WebGUI/Asset/Wobject/DataForm.pm b/lib/WebGUI/Asset/Wobject/DataForm.pm index 9718ce979..49ee32f93 100644 --- a/lib/WebGUI/Asset/Wobject/DataForm.pm +++ b/lib/WebGUI/Asset/Wobject/DataForm.pm @@ -228,7 +228,7 @@ sub definition { # populate hash of Rich Editors and add an entry to the list to use the default my $selectRichEditor = WebGUI::Form::SelectRichEditor->new($session,{}) ; my $richEditorOptions = $selectRichEditor->getOptions() ; - $richEditorOptions->{'**Use_Default_Editor**'} = "Use Default Rich Editor" ; + $richEditorOptions->{'**Use_Default_Editor**'} = $i18n->get("Use Default Rich Editor"); tie %properties, 'Tie::IxHash'; %properties = ( diff --git a/lib/WebGUI/i18n/English/Asset_DataForm.pm b/lib/WebGUI/i18n/English/Asset_DataForm.pm index 5a3a46310..0633925bc 100644 --- a/lib/WebGUI/i18n/English/Asset_DataForm.pm +++ b/lib/WebGUI/i18n/English/Asset_DataForm.pm @@ -9,11 +9,17 @@ our $I18N = { }, 'htmlAreaRichEditor description' => { - message => q|Select the Rich Editor you want to use for HTML Area fields.|, + message => q|Select the Rich Editor you want to use for HTML Area fields. The Default Rich Editor is the one defined in the settings.|, lastUpdated => 0, context => 'hover help for HTMLArea field Rich Editor selector.', }, + 'Use Default Rich Editor' => { + message => q|Use Default Rich Editor|, + lastUpdated => 0, + context => q|Label in the edit screen. Use the default Rich Editor, meaning to take the default used by the site.|, + }, + 'delete file' => { message => q|Delete Attached File|, lastUpdated => 0,