Replace some $lang by l10n

git-svn-id: http://piwigo.org/svn/trunk@2014 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rub 2007-05-15 20:23:09 +00:00
commit 75bfe8b667
7 changed files with 20 additions and 28 deletions

View file

@ -2,10 +2,9 @@
// +-----------------------------------------------------------------------+ // +-----------------------------------------------------------------------+
// | PhpWebGallery - a PHP based picture gallery | // | PhpWebGallery - a PHP based picture gallery |
// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
// | Copyright (C) 2003-2005 PhpWebGallery Team - http://phpwebgallery.net | // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
// +-----------------------------------------------------------------------+ // +-----------------------------------------------------------------------+
// | branch : BSF (Best So Far) // | file : $Id$
// | file : $RCSfile$
// | last update : $Date$ // | last update : $Date$
// | last modifier : $Author$ // | last modifier : $Author$
// | revision : $Revision$ // | revision : $Revision$
@ -38,7 +37,7 @@ check_status(ACCESS_GUEST);
// //
// Start output of page // Start output of page
// //
$title= $lang['about_page_title']; $title= l10n('about_page_title');
$page['body_id'] = 'theAboutPage'; $page['body_id'] = 'theAboutPage';
include(PHPWG_ROOT_PATH.'include/page_header.php'); include(PHPWG_ROOT_PATH.'include/page_header.php');

View file

@ -2,10 +2,9 @@
// +-----------------------------------------------------------------------+ // +-----------------------------------------------------------------------+
// | PhpWebGallery - a PHP based picture gallery | // | PhpWebGallery - a PHP based picture gallery |
// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
// | Copyright (C) 2003-2005 PhpWebGallery Team - http://phpwebgallery.net | // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
// +-----------------------------------------------------------------------+ // +-----------------------------------------------------------------------+
// | branch : BSF (Best So Far) // | file : $Id$
// | file : $RCSfile$
// | last update : $Date$ // | last update : $Date$
// | last modifier : $Author$ // | last modifier : $Author$
// | revision : $Revision$ // | revision : $Revision$
@ -43,7 +42,7 @@ if ( !empty($_GET['redirect']) )
$redirect_to = urldecode($_GET['redirect']); $redirect_to = urldecode($_GET['redirect']);
if ( $user['is_the_guest'] ) if ( $user['is_the_guest'] )
{ {
array_push($errors, $lang['access_forbiden']); array_push($errors, l10n('access_forbiden'));
} }
} }
@ -57,7 +56,7 @@ if (isset($_POST['login']))
} }
else else
{ {
array_push( $errors, $lang['invalid_pwd'] ); array_push( $errors, l10n('invalid_pwd') );
} }
} }
@ -65,7 +64,7 @@ if (isset($_POST['login']))
// //
// Start output of page // Start output of page
// //
$title = $lang['identification']; $title = l10n('identification');
$page['body_id'] = 'theIdentificationPage'; $page['body_id'] = 'theIdentificationPage';
include(PHPWG_ROOT_PATH.'include/page_header.php'); include(PHPWG_ROOT_PATH.'include/page_header.php');

View file

@ -5,8 +5,7 @@
// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
// | Copyright (C) 2006-2007 Ruben ARNAUD - team@phpwebgallery.net | // | Copyright (C) 2006-2007 Ruben ARNAUD - team@phpwebgallery.net |
// +-----------------------------------------------------------------------+ // +-----------------------------------------------------------------------+
// | branch : BSF (Best So Far) // | file : $Id$
// | file : $RCSfile$
// | last update : $Date$ // | last update : $Date$
// | last modifier : $Author$ // | last modifier : $Author$
// | revision : $Revision$ // | revision : $Revision$
@ -61,15 +60,13 @@ if (isset($_GET['unsubscribe'])
} }
else else
{ {
/* echo l10n('nbm_unknown_identifier');
exit();*/
array_push($page['errors'], l10n('nbm_unknown_identifier')); array_push($page['errors'], l10n('nbm_unknown_identifier'));
} }
// +-----------------------------------------------------------------------+ // +-----------------------------------------------------------------------+
// | template initialization | // | template initialization |
// +-----------------------------------------------------------------------+ // +-----------------------------------------------------------------------+
$title = $lang['nbm_item_notification']; $title = l10n('nbm_item_notification');
$page['body_id'] = 'theNBMPage'; $page['body_id'] = 'theNBMPage';
include(PHPWG_ROOT_PATH.'include/page_header.php'); include(PHPWG_ROOT_PATH.'include/page_header.php');

View file

@ -4,7 +4,6 @@
// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
// +-----------------------------------------------------------------------+ // +-----------------------------------------------------------------------+
// | branch : BSF (Best So Far)
// | file : $Id$ // | file : $Id$
// | last update : $Date$ // | last update : $Date$
// | last modifier : $Author$ // | last modifier : $Author$
@ -598,8 +597,8 @@ SELECT COUNT(*) AS nb_fav
array( array(
'FAVORITE_IMG' => 'FAVORITE_IMG' =>
get_root_url().get_themeconf('icon_dir').'/favorite.png', get_root_url().get_themeconf('icon_dir').'/favorite.png',
'FAVORITE_HINT' => $lang['add_favorites_hint'], 'FAVORITE_HINT' => l10n('add_favorites_hint'),
'FAVORITE_ALT' => $lang['add_favorites_alt'], 'FAVORITE_ALT' => l10n('add_favorites_alt'),
'U_FAVORITE' => add_url_params( 'U_FAVORITE' => add_url_params(
$url_self, $url_self,
array('action'=>'add_to_favorites') array('action'=>'add_to_favorites')
@ -614,8 +613,8 @@ SELECT COUNT(*) AS nb_fav
array( array(
'FAVORITE_IMG' => 'FAVORITE_IMG' =>
get_root_url().get_themeconf('icon_dir').'/del_favorite.png', get_root_url().get_themeconf('icon_dir').'/del_favorite.png',
'FAVORITE_HINT' => $lang['del_favorites_hint'], 'FAVORITE_HINT' => l10n('del_favorites_hint'),
'FAVORITE_ALT' => $lang['del_favorites_alt'], 'FAVORITE_ALT' => l10n('del_favorites_alt'),
'U_FAVORITE' => add_url_params( 'U_FAVORITE' => add_url_params(
$url_self, $url_self,
array('action'=>'remove_from_favorites') array('action'=>'remove_from_favorites')

View file

@ -4,7 +4,6 @@
// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
// +-----------------------------------------------------------------------+ // +-----------------------------------------------------------------------+
// | branch : BSF (Best So Far)
// | file : $Id$ // | file : $Id$
// | last update : $Date$ // | last update : $Date$
// | last modifier : $Author$ // | last modifier : $Author$
@ -44,7 +43,7 @@ if (!defined('PHPWG_ROOT_PATH'))
save_profile_from_post($userdata, $errors); save_profile_from_post($userdata, $errors);
$title= $lang['customize_page_title']; $title= l10n('customize_page_title');
$page['body_id'] = 'theProfilePage'; $page['body_id'] = 'theProfilePage';
include(PHPWG_ROOT_PATH.'include/page_header.php'); include(PHPWG_ROOT_PATH.'include/page_header.php');

View file

@ -45,7 +45,7 @@ if (isset($_POST['submit']))
{ {
if ($_POST['password'] != $_POST['password_conf']) if ($_POST['password'] != $_POST['password_conf'])
{ {
array_push($errors, $lang['reg_err_pass']); array_push($errors, l10n('reg_err_pass'));
} }
$errors = $errors =
@ -91,7 +91,7 @@ $email = !empty($_POST['mail_address'])?$_POST['mail_address']:'';
// //
// Start output of page // Start output of page
// //
$title= $lang['register_page_title']; $title= l10n('register_page_title');
$page['body_id'] = 'theRegisterPage'; $page['body_id'] = 'theRegisterPage';
include(PHPWG_ROOT_PATH.'include/page_header.php'); include(PHPWG_ROOT_PATH.'include/page_header.php');

View file

@ -4,8 +4,7 @@
// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
// +-----------------------------------------------------------------------+ // +-----------------------------------------------------------------------+
// | branch : BSF (Best So Far) // | file : $Id$
// | file : $RCSfile$
// | last update : $Date$ // | last update : $Date$
// | last modifier : $Author$ // | last modifier : $Author$
// | revision : $Revision$ // | revision : $Revision$
@ -144,7 +143,7 @@ INSERT INTO '.SEARCH_TABLE.'
} }
else else
{ {
array_push($errors, $lang['search_one_clause_at_least']); array_push($errors, l10n('search_one_clause_at_least'));
} }
} }
//----------------------------------------------------------------- redirection //----------------------------------------------------------------- redirection
@ -171,7 +170,7 @@ get_month_list('end_month', @$_POST['end_month']);
// //
// Start output of page // Start output of page
// //
$title= $lang['search_title']; $title= l10n('search_title');
$page['body_id'] = 'theSearchPage'; $page['body_id'] = 'theSearchPage';
$template->set_filenames( array('search'=>'search.tpl') ); $template->set_filenames( array('search'=>'search.tpl') );