From 2e890e9597da29346a1fbe0db45f48e4a2be86e7 Mon Sep 17 00:00:00 2001 From: nikrou Date: Tue, 2 Mar 2010 14:54:22 +0000 Subject: Feature 1451 : localization with gettext Use php-gettext (developpement version rev43, because of php5.3) as fallback Use native language (english) instead of key for translation Keep directory en_UK for english customization Need some refactoring for plurals Todo : managing plugins in the same way git-svn-id: http://piwigo.org/svn/trunk@5021 68402e56-0260-453c-a942-63ccdbb3a9ee --- .../distributed/samples/my-picture.tpl | 20 ++++++++++---------- .../distributed/samples/titling_categories.tpl | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'template-extension') diff --git a/template-extension/distributed/samples/my-picture.tpl b/template-extension/distributed/samples/my-picture.tpl index ddabe832c..715f3fa2f 100644 --- a/template-extension/distributed/samples/my-picture.tpl +++ b/template-extension/distributed/samples/my-picture.tpl @@ -21,7 +21,7 @@
- {'home'|@translate} + {'Home'|@translate} {if !$IS_HOME}{$LEVEL_SEPARATOR}{$SECTION_TITLE}{/if} {$LEVEL_SEPARATOR}{$current.TITLE}
@@ -38,21 +38,21 @@ {'slideshow'|@translate} {/if} {if isset($U_SLIDESHOW_STOP) } - {'slideshow_stop'|@translate} + {'stop the slideshow'|@translate} {/if} - metadata + metadata {if isset($current.U_DOWNLOAD) } - {'download'|@translate} + {'download'|@translate} {/if} {if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if} {if isset($favorite) } favorite {/if} {if !empty($U_SET_AS_REPRESENTATIVE) } - {'representative'|@translate} + {'representative'|@translate} {/if} {if isset($U_ADMIN) } - {'edit'|@translate} + {'edit'|@translate} {/if} {if isset($U_CADDIE) }{*caddie management BEGIN*} - {'caddie'|@translate} + {'caddie'|@translate} {/if}{*caddie management END*}
{include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'} @@ -86,19 +86,19 @@ y.callService( {if isset($U_SLIDESHOW_STOP) }

- [ {'slideshow_stop'|@translate} ] + [ {'stop the slideshow'|@translate} ]

{/if} {if isset($previous) } - {/if} {if isset($next) } - {/if} diff --git a/template-extension/distributed/samples/titling_categories.tpl b/template-extension/distributed/samples/titling_categories.tpl index 717390913..909492a4f 100644 --- a/template-extension/distributed/samples/titling_categories.tpl +++ b/template-extension/distributed/samples/titling_categories.tpl @@ -28,7 +28,7 @@ p.Nb_images {ldelim} text-align: left; color: #444; }
{$cat.ALT} + title="{'shows images at the root of this category'|@translate}">
-- cgit v1.2.3