From bdfe3b545a26060a44e4b3a6d1bc8ba0100d9549 Mon Sep 17 00:00:00 2001 From: Arjan Widlak Date: Thu, 14 May 2009 14:52:54 +0000 Subject: [PATCH] Added internationalisations in Gallery.pm "Return to Album" and "Add Photo" --- docs/changelog/7.x.x.txt | 2 ++ lib/WebGUI/Asset/Wobject/GalleryAlbum.pm | 3 ++- lib/WebGUI/i18n/English/Asset_GalleryAlbum.pm | 13 ++++++++++++- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 7942f658a..02b322653 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -1,4 +1,6 @@ 7.7.6 + - Added internationalisations in Gallery.pm "Return to Album" and "Add Photo" + (Arjan Widlak / United Knowledge) - Reverted using the packed templates and snippets by default. You can re-enable the packed templates and snippets carefully. - Added support for template attachments; scripts and stylesheets that will be included using style->setScript and setLink instead of just using raw diff --git a/lib/WebGUI/Asset/Wobject/GalleryAlbum.pm b/lib/WebGUI/Asset/Wobject/GalleryAlbum.pm index 58ab8608a..136342744 100644 --- a/lib/WebGUI/Asset/Wobject/GalleryAlbum.pm +++ b/lib/WebGUI/Asset/Wobject/GalleryAlbum.pm @@ -1335,7 +1335,8 @@ sub www_showConfirmation { my $output = '

' . sprintf( $i18n->get('save message'), $self->getUrl ) . '

' . '

' . $i18n->get('what next') . '

' . '' ; diff --git a/lib/WebGUI/i18n/English/Asset_GalleryAlbum.pm b/lib/WebGUI/i18n/English/Asset_GalleryAlbum.pm index a29a49230..2a18a8604 100644 --- a/lib/WebGUI/i18n/English/Asset_GalleryAlbum.pm +++ b/lib/WebGUI/i18n/English/Asset_GalleryAlbum.pm @@ -24,10 +24,21 @@ our $I18N = { }, 'save message' => { - message => 'Album settings saved. Return to Album', + message => 'Album settings saved.', lastUpdated => 0, }, + 'add photo' => { + message => '
  • Add Photo
  • ', + lastUpdated => 0, + }, + + 'return to album' => { + message => '
  • Return to Album
  • ', + lastUpdated => 0, + }, + + 'delete message' => { message => 'Album has been deleted. Return to Gallery', lastUpdated => 0,