mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-09 18:23:18 +02:00
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
This commit is contained in:
+7
-5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user