aboutsummaryrefslogtreecommitdiffstats
path: root/upgrade.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 /upgrade.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 'upgrade.php')
-rw-r--r--upgrade.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/upgrade.php b/upgrade.php
index 394bed440..ec379432d 100644
--- a/upgrade.php
+++ b/upgrade.php
@@ -194,7 +194,7 @@ $template = new Template(PHPWG_ROOT_PATH.'admin/template/goto', 'roma');
$template->set_filenames(array('upgrade'=>'upgrade.tpl'));
$template->assign(array(
'RELEASE' => PHPWG_VERSION,
- 'L_UPGRADE_HELP' => sprintf(l10n('install_help'), PHPWG_URL.'/forum'),
+ 'L_UPGRADE_HELP' => sprintf(l10n('Need help ? Ask your question on <a href=\"%s\">Piwigo message board</a>.'), PHPWG_URL.'/forum'),
)
);
@@ -278,9 +278,11 @@ if (isset($_POST['submit']) and check_upgrade())
if (!@file_put_contents($config_file, $config_file_contents))
{
array_push($page['infos'],
- l10n('in include/config_database.inc.php, before ?>, insert:') . '
-<p><textarea rows="4" cols="40">'.implode("\r\n" , $mysql_changes).'</textarea></p>'
- );
+ l10n_args('in <i>%s</i>, before <b>?></b>, insert:',
+ 'include/config_database.inc.php') .
+ '<p><textarea rows="4" cols="40">' .
+ implode("\r\n" , $mysql_changes).'</textarea></p>'
+ );
}
}
@@ -314,7 +316,7 @@ if (isset($_POST['submit']) and check_upgrade())
);
array_push($page['infos'],
- l10n('perform a maintenance check')
+ l10n('Perform a maintenance check in [Administration>Specials>Maintenance] if you encounter any problem.')
);
// Save $page['infos'] in order to restore after maintenance actions