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 --- template/yoga/picture.tpl | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'template/yoga/picture.tpl') diff --git a/template/yoga/picture.tpl b/template/yoga/picture.tpl index 0572c8e07..25f065868 100644 --- a/template/yoga/picture.tpl +++ b/template/yoga/picture.tpl @@ -28,7 +28,7 @@
- {'home'|@translate} + {'Home'|@translate} {if !$IS_HOME}{$LEVEL_SEPARATOR}{$SECTION_TITLE}{/if} {$LEVEL_SEPARATOR}{$current.TITLE}
@@ -44,21 +44,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'} @@ -92,19 +92,19 @@ y.callService( {if isset($U_SLIDESHOW_STOP) }

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

{/if} {if isset($previous) } - {/if} {if isset($next) } - {/if} @@ -168,7 +168,7 @@ y.callService( {assign var='rate_text' value='%.2f (rated %d times, standard deviation = %.2f)'|@translate } {$pwg->sprintf($rate_text, $rate_summary.average, $rate_summary.count, $rate_summary.std) } {else} - {'no_rate'|@translate} + {'no rate'|@translate} {/if} @@ -177,7 +177,7 @@ y.callService( {if isset($rating)} - {if isset($rating.USER_RATE)}{'update_rate'|@translate}{else}{'new_rate'|@translate}{/if} + {if isset($rating.USER_RATE)}{'Rate this picture'|@translate}{else}{'Rate this picture'|@translate}{/if}
@@ -264,11 +264,11 @@ y.callService( {if isset($comment_add)}
- {'comments_add'|@translate} + {'Add a comment'|@translate} {if $comment_add.SHOW_AUTHOR} - + {/if} - +
-- cgit v1.2.3