Ignore:
Timestamp:
Mar 2, 2010, 3:54:22 PM (14 years ago)
Author:
nikrou
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/thumbnail.php

    r4325 r5021  
    116116    if (!is_writable($tndir))
    117117    {
    118       array_push($page['errors'], '['.$tndir.'] : '.l10n('no_write_access'));
     118      array_push($page['errors'], '['.$tndir.'] : '.l10n('no write access'));
    119119      return false;
    120120    }
     
    137137  else
    138138  {
    139     echo l10n('tn_no_support')." ";
     139    echo l10n('Picture unreachable or no support')." ";
    140140    if ( isset( $extenstion ) )
    141141    {
    142       echo l10n('tn_format').' '.$extension;
     142      echo l10n('for the file format').' '.$extension;
    143143    }
    144144    else
    145145    {
    146       echo l10n('tn_thisformat');
     146      echo l10n('for this file format');
    147147    }
    148148    exit();
     
    234234  if (!preg_match('/^[0-9]{2,3}$/', $_POST['width']) or $_POST['width'] < 10)
    235235  {
    236     array_push($page['errors'], l10n('tn_err_width').' 10');
     236    array_push($page['errors'], l10n('width must be a number superior to').' 10');
    237237  }
    238238  if (!preg_match('/^[0-9]{2,3}$/', $_POST['height']) or $_POST['height'] < 10)
    239239  {
    240     array_push($page['errors'], l10n('tn_err_height').' 10');
     240    array_push($page['errors'], l10n('height must be a number superior to').' 10');
    241241  }
    242242 
Note: See TracChangeset for help on using the changeset viewer.