From 97ef77bb7e8818569161506a34f5a289a0ffbe8f Mon Sep 17 00:00:00 2001 From: Bart Jol Date: Tue, 21 Sep 2010 14:05:38 +0200 Subject: [PATCH] fixed #11878 added i18n for addons link --- docs/upgrades/upgrade_7.10.0-7.10.1.pl | 14 ++++++++++++++ lib/WebGUI/i18n/English/WebGUI.pm | 5 +++++ 2 files changed, 19 insertions(+) diff --git a/docs/upgrades/upgrade_7.10.0-7.10.1.pl b/docs/upgrades/upgrade_7.10.0-7.10.1.pl index d96abd1fa..ca6b7ec5b 100644 --- a/docs/upgrades/upgrade_7.10.0-7.10.1.pl +++ b/docs/upgrades/upgrade_7.10.0-7.10.1.pl @@ -65,6 +65,20 @@ sub uniqueProductLocations { print "DONE!\n" unless $quiet; } +#---------------------------------------------------------------------------- +# This internationalizes the link text of the addons link in the adminconsole +sub i18nForAddonsTitle { + my $session = shift; + my $adminConsole = $session->config->get('adminConsole'); + $adminConsole->{'addons'} = { + icon => "addons.png", + uiLevel => 1, + group => "12", + url => "http://www.webgui.org/addons", + title => "^International(Addons title,WebGUI);" + }; + $session->config->set('adminConsole',$adminConsole); +} #---------------------------------------------------------------------------- # Describe what our function does sub removeBadSpanishFile { diff --git a/lib/WebGUI/i18n/English/WebGUI.pm b/lib/WebGUI/i18n/English/WebGUI.pm index 35827ea38..45a458b18 100644 --- a/lib/WebGUI/i18n/English/WebGUI.pm +++ b/lib/WebGUI/i18n/English/WebGUI.pm @@ -126,6 +126,11 @@ our $I18N = { context=>"Settings hover help" }, + 'Addons title' => { + message => q|Addons|, + lastUpdated => 1285067064, + context => "Link title for addons link in adminconsole" + }, 'purge workflow' => { message => q|Purge Workflow|, lastUpdated => 1162242500,