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/plugins_new.php

    r3282 r5021  
    5151    case 'ok':
    5252      array_push($page['infos'],
    53         l10n('plugins_install_ok'),
    54         l10n('plugins_install_need_activate'));
     53        l10n('Plugin has been successfully copied'),
     54        l10n('You might go to plugin list to install and activate it.'));
    5555      break;
    5656
    5757    case 'temp_path_error':
    58       array_push($page['errors'], l10n('plugins_temp_path_error'));
     58      array_push($page['errors'], l10n('Can\'t create temporary file.'));
    5959      break;
    6060
    6161    case 'dl_archive_error':
    62       array_push($page['errors'], l10n('plugins_dl_archive_error'));
     62      array_push($page['errors'], l10n('Can\'t download archive.'));
    6363      break;
    6464
    6565    case 'archive_error':
    66       array_push($page['errors'], l10n('plugins_archive_error'));
     66      array_push($page['errors'], l10n('Can\'t read or extract archive.'));
    6767      break;
    6868
    6969    default:
    7070      array_push($page['errors'],
    71         sprintf(l10n('plugins_extract_error'), $_GET['installstatus']),
    72         l10n('plugins_check_chmod'));
     71        sprintf(l10n('An error occured during extraction (%s).'), $_GET['installstatus']),
     72        l10n('Please check \"plugins\" folder and sub-folders permissions (CHMOD).'));
    7373  } 
    7474}
     
    8282  array(
    8383    $link.'date' => l10n('Post date'),
    84     $link.'revision' => l10n('plugins_revisions'),
     84    $link.'revision' => l10n('Last revisions'),
    8585    $link.'name' => l10n('Name'),
    8686    $link.'author' => l10n('Author'),
     
    127127else
    128128{
    129   array_push($page['errors'], l10n('plugins_server_error'));
     129  array_push($page['errors'], l10n('Can\'t connect to server.'));
    130130}
    131131
Note: See TracChangeset for help on using the changeset viewer.