aboutsummaryrefslogtreecommitdiffstats
path: root/install.php
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2008-01-30 22:07:07 +0000
committerrub <rub@piwigo.org>2008-01-30 22:07:07 +0000
commit69159c0e9238fd369dca2181af6fb9de47b14440 (patch)
tree545ea813c006506d1bde84e0da8cc5f7b686cd03 /install.php
parentd5015da6ec45bbb08732b28dfbfe9e089504c08d (diff)
Replace old use of $lang by l10n function.
git-svn-id: http://piwigo.org/svn/trunk@2201 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--install.php68
1 files changed, 34 insertions, 34 deletions
diff --git a/install.php b/install.php
index 89b8f8451..f423842a1 100644
--- a/install.php
+++ b/install.php
@@ -235,11 +235,11 @@ if ( isset( $_POST['install'] ))
{
if ( @mysql_select_db($_POST['dbname'] ) )
{
- array_push( $infos, $lang['step1_confirmation'] );
+ array_push( $infos, l10n('step1_confirmation') );
}
else
{
- array_push( $errors, $lang['step1_err_db'] );
+ array_push( $errors, l10n('step1_err_db') );
}
if ( version_compare(mysql_get_server_info(), '4.1.0', '>=') )
{
@@ -260,18 +260,18 @@ if ( isset( $_POST['install'] ))
}
else
{
- array_push( $errors, $lang['step1_err_server'] );
+ array_push( $errors, l10n('step1_err_server') );
}
$webmaster = trim(preg_replace( '/\s{2,}/', ' ', $admin_name ));
if ( empty($webmaster))
- array_push( $errors, $lang['step2_err_login1'] );
+ array_push( $errors, l10n('step2_err_login1') );
else if ( preg_match( '/[\'"]/', $webmaster ) )
- array_push( $errors, $lang['step2_err_login3'] );
+ array_push( $errors, l10n('step2_err_login3') );
if ( $admin_pass1 != $admin_pass2 || empty($admin_pass1) )
- array_push( $errors, $lang['step2_err_pass'] );
+ array_push( $errors, l10n('step2_err_pass') );
if ( empty($admin_mail))
- array_push( $errors, $lang['reg_err_mail_address'] );
+ array_push( $errors, l10n('reg_err_mail_address') );
else
{
$error_mail_address = validate_mail_address(null, $admin_mail);
@@ -384,33 +384,33 @@ $template->assign_vars(
array(
'RELEASE'=>PHPWG_VERSION,
- 'L_BASE_TITLE'=>$lang['Initial_config'],
- 'L_LANG_TITLE'=>$lang['Default_lang'],
- 'L_DB_TITLE'=>$lang['step1_title'],
- 'L_DB_HOST'=>$lang['step1_host'],
- 'L_DB_HOST_INFO'=>$lang['step1_host_info'],
- 'L_DB_USER'=>$lang['step1_user'],
- 'L_DB_USER_INFO'=>$lang['step1_user_info'],
- 'L_DB_PASS'=>$lang['step1_pass'],
- 'L_DB_PASS_INFO'=>$lang['step1_pass_info'],
- 'L_DB_NAME'=>$lang['step1_database'],
- 'L_DB_NAME_INFO'=>$lang['step1_database_info'],
- 'L_DB_PREFIX'=>$lang['step1_prefix'],
- 'L_DB_PREFIX_INFO'=>$lang['step1_prefix_info'],
- 'L_ADMIN_TITLE'=>$lang['step2_title'],
- 'L_ADMIN'=>$lang['install_webmaster'],
- 'L_ADMIN_INFO'=>$lang['install_webmaster_info'],
- 'L_ADMIN_PASSWORD'=>$lang['step2_pwd'],
- 'L_ADMIN_PASSWORD_INFO'=>$lang['step2_pwd_info'],
- 'L_ADMIN_CONFIRM_PASSWORD'=>$lang['step2_pwd_conf'],
- 'L_ADMIN_CONFIRM_PASSWORD_INFO'=>$lang['step2_pwd_conf_info'],
- 'L_ADMIN_EMAIL'=>$lang['conf_mail_webmaster'],
- 'L_ADMIN_EMAIL_INFO'=>$lang['conf_mail_webmaster_info'],
- 'L_SUBMIT'=>$lang['Start_Install'],
- 'L_INSTALL_HELP'=>sprintf($lang['install_help'], 'http://forum.'.PHPWG_DOMAIN.'/'),
- 'L_ERR_COPY'=>$lang['step1_err_copy'],
- 'L_END_TITLE'=>$lang['install_end_title'],
- 'L_END_MESSAGE'=>$lang['install_end_message'],
+ 'L_BASE_TITLE'=>l10n('Initial_config'),
+ 'L_LANG_TITLE'=>l10n('Default_lang'),
+ 'L_DB_TITLE'=>l10n('step1_title'),
+ 'L_DB_HOST'=>l10n('step1_host'),
+ 'L_DB_HOST_INFO'=>l10n('step1_host_info'),
+ 'L_DB_USER'=>l10n('step1_user'),
+ 'L_DB_USER_INFO'=>l10n('step1_user_info'),
+ 'L_DB_PASS'=>l10n('step1_pass'),
+ 'L_DB_PASS_INFO'=>l10n('step1_pass_info'),
+ 'L_DB_NAME'=>l10n('step1_database'),
+ 'L_DB_NAME_INFO'=>l10n('step1_database_info'),
+ 'L_DB_PREFIX'=>l10n('step1_prefix'),
+ 'L_DB_PREFIX_INFO'=>l10n('step1_prefix_info'),
+ 'L_ADMIN_TITLE'=>l10n('step2_title'),
+ 'L_ADMIN'=>l10n('install_webmaster'),
+ 'L_ADMIN_INFO'=>l10n('install_webmaster_info'),
+ 'L_ADMIN_PASSWORD'=>l10n('step2_pwd'),
+ 'L_ADMIN_PASSWORD_INFO'=>l10n('step2_pwd_info'),
+ 'L_ADMIN_CONFIRM_PASSWORD'=>l10n('step2_pwd_conf'),
+ 'L_ADMIN_CONFIRM_PASSWORD_INFO'=>l10n('step2_pwd_conf_info'),
+ 'L_ADMIN_EMAIL'=>l10n('conf_mail_webmaster'),
+ 'L_ADMIN_EMAIL_INFO'=>l10n('conf_mail_webmaster_info'),
+ 'L_SUBMIT'=>l10n('Start_Install'),
+ 'L_INSTALL_HELP'=>sprintf(l10n('install_help'), 'http://forum.'.PHPWG_DOMAIN.'/'),
+ 'L_ERR_COPY'=>l10n('step1_err_copy'),
+ 'L_END_TITLE'=>l10n('install_end_title'),
+ 'L_END_MESSAGE'=>l10n('install_end_message'),
'F_ACTION'=>'install.php',
'F_DB_HOST'=>$dbhost,