aboutsummaryrefslogtreecommitdiffstats
path: root/admin/plugins_new.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/plugins_new.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/plugins_new.php')
-rw-r--r--admin/plugins_new.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/admin/plugins_new.php b/admin/plugins_new.php
index 56b09d097..8ee9d26ed 100644
--- a/admin/plugins_new.php
+++ b/admin/plugins_new.php
@@ -50,26 +50,26 @@ if (isset($_GET['installstatus']))
{
case 'ok':
array_push($page['infos'],
- l10n('plugins_install_ok'),
- l10n('plugins_install_need_activate'));
+ l10n('Plugin has been successfully copied'),
+ l10n('You might go to plugin list to install and activate it.'));
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['installstatus']),
- l10n('plugins_check_chmod'));
+ sprintf(l10n('An error occured during extraction (%s).'), $_GET['installstatus']),
+ l10n('Please check \"plugins\" folder and sub-folders permissions (CHMOD).'));
}
}
@@ -81,7 +81,7 @@ $link = get_root_url().'admin.php?page='.$page['page'].'&amp;order=';
$template->assign('order_options',
array(
$link.'date' => l10n('Post date'),
- $link.'revision' => l10n('plugins_revisions'),
+ $link.'revision' => l10n('Last revisions'),
$link.'name' => l10n('Name'),
$link.'author' => l10n('Author'),
$link.'downloads' => l10n('Number of downloads')));
@@ -126,7 +126,7 @@ if ($plugins->get_server_plugins(true))
}
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');