aboutsummaryrefslogtreecommitdiffstats
path: root/admin/thumbnail.php
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2010-03-02 14:54:22 +0000
committernikrou <nikrou@piwigo.org>2010-03-02 14:54:22 +0000
commit2e890e9597da29346a1fbe0db45f48e4a2be86e7 (patch)
treef189c8320f38340bc3d7a94d799e05e0587d95cb /admin/thumbnail.php
parent35694a636ef34dba5384e1a530b837208b9e55f9 (diff)
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
Diffstat (limited to 'admin/thumbnail.php')
-rw-r--r--admin/thumbnail.php12
1 files changed, 6 insertions, 6 deletions
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