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 --- include/section_init.inc.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'include/section_init.inc.php') diff --git a/include/section_init.inc.php b/include/section_init.inc.php index 2abe2e63b..f0c78357e 100644 --- a/include/section_init.inc.php +++ b/include/section_init.inc.php @@ -237,7 +237,7 @@ if ('categories' == $page['section']) } else { - $page['title'] = l10n('no_category'); + $page['title'] = l10n('Home'); } if @@ -361,7 +361,7 @@ SELECT DISTINCT image_id'.get_extra_fields($conf['order_by']).' array( 'items' => $search_result['items'], 'title' => '' - .l10n('search_result').'', + .l10n('Search results').'', ) ); } @@ -375,7 +375,7 @@ SELECT DISTINCT image_id'.get_extra_fields($conf['order_by']).' $page = array_merge( $page, array( - 'title' => l10n('favorites') + 'title' => l10n('Favorites') ) ); @@ -456,7 +456,7 @@ SELECT DISTINCT(id)'.get_extra_fields($conf['order_by']).' $page, array( 'title' => '' - .l10n('recent_pics_cat').'', + .l10n('Recent pictures').'', 'items' => array_from_query($query, 'id'), ) ); @@ -469,7 +469,7 @@ SELECT DISTINCT(id)'.get_extra_fields($conf['order_by']).' $page = array_merge( $page, array( - 'title' => l10n('recent_cats_cat'), + 'title' => l10n('Recent categories'), ) ); } @@ -494,7 +494,7 @@ SELECT DISTINCT(id), hit, file $page, array( 'title' => '' - .$conf['top_number'].' '.l10n('most_visited_cat').'', + .$conf['top_number'].' '.l10n('Most visited').'', 'items' => array_from_query($query, 'id'), ) ); @@ -520,7 +520,7 @@ SELECT DISTINCT(id), average_rate $page, array( 'title' => '' - .$conf['top_number'].' '.l10n('best_rated_cat').'', + .$conf['top_number'].' '.l10n('Best rated').'', 'items' => array_from_query($query, 'id'), ) ); @@ -543,7 +543,7 @@ SELECT DISTINCT(id)'.get_extra_fields($conf['order_by']).' $page, array( 'title' => '' - .l10n('random_cat').'', + .l10n('Random pictures').'', 'items' => array_from_query($query, 'id'), ) ); -- cgit v1.2.3