From bfd25d6de29349d12df7469b8e1c3d2265220f4b Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 26 Aug 2009 18:45:56 +0000 Subject: [PATCH] i18n the Graphing tab title in the Poll. Fixes #10831. --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Asset/Wobject/Poll.pm | 2 +- lib/WebGUI/i18n/English/Image_Graph.pm | 7 +++++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index ecb560d64..63d8f72ae 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -1,4 +1,5 @@ 7.7.19 + - fixed #10831: Graphing tab in Poll is not i18n'ed - fixed #10829: Extra field in Poll Property tab - refactored out JSON collateral module, to use with any module in WebGUI. - fixed #10825: Text and MediumText fields should be LongText diff --git a/lib/WebGUI/Asset/Wobject/Poll.pm b/lib/WebGUI/Asset/Wobject/Poll.pm index be1dcf44b..0b411652f 100644 --- a/lib/WebGUI/Asset/Wobject/Poll.pm +++ b/lib/WebGUI/Asset/Wobject/Poll.pm @@ -280,7 +280,7 @@ sub getEditForm { if (WebGUI::Image::Graph->getPluginList($self->session)) { my $config = $self->getGraphConfig; - $tabform->addTab('graph', 'Graphing'); + $tabform->addTab('graph', $i18n->get('Graphing','Image_Graph')); $tabform->getTab('graph')->yesNo( -name => 'generateGraph', -label => $i18n->get('generate graph'), diff --git a/lib/WebGUI/i18n/English/Image_Graph.pm b/lib/WebGUI/i18n/English/Image_Graph.pm index 0cb62f82c..cfe1f3784 100644 --- a/lib/WebGUI/i18n/English/Image_Graph.pm +++ b/lib/WebGUI/i18n/English/Image_Graph.pm @@ -86,6 +86,13 @@ want to use.|, message => q|No graphing plugins are enabled in the config file.|, lastUpdated => 1163746146, }, + + 'Graphing' => { + message => q|Graphing|, + lastUpdated => 1251312907, + context => q|Name of the tab that contains the form for graph configuration.|, + }, + }; 1;