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 --- admin/thumbnail.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'admin/thumbnail.php') diff --git a/admin/thumbnail.php b/admin/thumbnail.php index 7fc81dc3d..a1c7bbcd5 100644 --- a/admin/thumbnail.php +++ b/admin/thumbnail.php @@ -115,7 +115,7 @@ function RatioResizeImg($path, $newWidth, $newHeight, $tn_ext) // creation and backup of final picture if (!is_writable($tndir)) { - array_push($page['errors'], '['.$tndir.'] : '.l10n('no_write_access')); + array_push($page['errors'], '['.$tndir.'] : '.l10n('no write access')); return false; } imagejpeg($destImage, $dest_file, $conf['tn_compression_level']); @@ -136,14 +136,14 @@ function RatioResizeImg($path, $newWidth, $newHeight, $tn_ext) // error else { - echo l10n('tn_no_support')." "; + echo l10n('Picture unreachable or no support')." "; if ( isset( $extenstion ) ) { - echo l10n('tn_format').' '.$extension; + echo l10n('for the file format').' '.$extension; } else { - echo l10n('tn_thisformat'); + echo l10n('for this file format'); } exit(); } @@ -233,11 +233,11 @@ if (isset($_POST['submit'])) // checking criteria if (!preg_match('/^[0-9]{2,3}$/', $_POST['width']) or $_POST['width'] < 10) { - array_push($page['errors'], l10n('tn_err_width').' 10'); + array_push($page['errors'], l10n('width must be a number superior to').' 10'); } if (!preg_match('/^[0-9]{2,3}$/', $_POST['height']) or $_POST['height'] < 10) { - array_push($page['errors'], l10n('tn_err_height').' 10'); + array_push($page['errors'], l10n('height must be a number superior to').' 10'); } // picture miniaturization -- cgit v1.2.3