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/plugins_update.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'admin/plugins_update.php') diff --git a/admin/plugins_update.php b/admin/plugins_update.php index e6d6705fe..3d550d154 100644 --- a/admin/plugins_update.php +++ b/admin/plugins_update.php @@ -68,26 +68,26 @@ if (isset($_GET['upgradestatus']) and isset($_GET['plugin'])) case 'ok': array_push($page['infos'], sprintf( - l10n('plugins_upgrade_ok'), + l10n('%s has been successfully upgraded.'), $plugins->fs_plugins[$_GET['plugin']]['name'])); break; case 'temp_path_error': - array_push($page['errors'], l10n('plugins_temp_path_error')); + array_push($page['errors'], l10n('Can\'t create temporary file.')); break; case 'dl_archive_error': - array_push($page['errors'], l10n('plugins_dl_archive_error')); + array_push($page['errors'], l10n('Can\'t download archive.')); break; case 'archive_error': - array_push($page['errors'], l10n('plugins_archive_error')); + array_push($page['errors'], l10n('Can\'t read or extract archive.')); break; default: array_push($page['errors'], - sprintf(l10n('plugins_extract_error'), $_GET['upgradestatus']), - l10n('plugins_check_chmod')); + sprintf(l10n('An error occured during extraction (%s).'), $_GET['upgradestatus']), + l10n('Please check \"plugins\" folder and sub-folders permissions (CHMOD).')); } } @@ -157,7 +157,7 @@ if ($plugins->get_server_plugins()) } else { - array_push($page['errors'], l10n('plugins_server_error')); + array_push($page['errors'], l10n('Can\'t connect to server.')); } $template->assign_var_from_handle('ADMIN_CONTENT', 'plugins'); -- cgit v1.2.3