From 24339ba1e263ef70bf20febb140f798761b4c4f4 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Tue, 16 Sep 2008 20:14:06 +0000 Subject: [PATCH] internationalize word copy in clipboard copies --- lib/WebGUI/AssetClipboard.pm | 3 ++- lib/WebGUI/i18n/English/Asset.pm | 16 +++++++++++----- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/lib/WebGUI/AssetClipboard.pm b/lib/WebGUI/AssetClipboard.pm index e148b989d..776433539 100644 --- a/lib/WebGUI/AssetClipboard.pm +++ b/lib/WebGUI/AssetClipboard.pm @@ -205,7 +205,8 @@ sub www_copy { else { $newAsset = $self->duplicate({skipAutoCommitWorkflows => 1}); } - $newAsset->update({ title=>$self->getTitle.' (copy)'}); + my $i18n = WebGUI::International->new($self->session, 'Asset'); + $newAsset->update({ title=>sprintf("%s (%s)",$self->getTitle,$i18n->get('copy'))}); $newAsset->cut; if ($self->session->setting->get("autoRequestCommit")) { if ($self->session->setting->get("skipCommitComments")) { diff --git a/lib/WebGUI/i18n/English/Asset.pm b/lib/WebGUI/i18n/English/Asset.pm index 0ddca4e5e..8515a534a 100644 --- a/lib/WebGUI/i18n/English/Asset.pm +++ b/lib/WebGUI/i18n/English/Asset.pm @@ -235,19 +235,25 @@ our $I18N = { lastUpdated => 0, context => q|Used in asset context menus.| }, - + 'duplicate' => { message => q|Duplicate|, lastUpdated => 0, context => q|Used in asset context menus.| }, - - 'copy' => { + + 'Copy' => { message => q|Copy|, - lastUpdated => 0, + lastUpdated => 1221540086, context => q|Used in asset context menus.| }, - + + 'copy' => { + message => q|copy|, + lastUpdated => 1221540088, + context => q|Same as Copy, but lower case.| + }, + 'this asset only' => { message => q|This Asset Only|, lastUpdated => 0,