From 2e890e9597da29346a1fbe0db45f48e4a2be86e7 Mon Sep 17 00:00:00 2001 From: nikrou Date: Tue, 2 Mar 2010 14:54:22 +0000 Subject: 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 --- profile.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'profile.php') diff --git a/profile.php b/profile.php index 636dcd29c..489b0bd90 100644 --- a/profile.php +++ b/profile.php @@ -61,7 +61,7 @@ SELECT '.implode(',', $fields).' save_profile_from_post($userdata, $errors); - $title= l10n('customize_page_title'); + $title= l10n('Your Gallery Customization '); $page['body_id'] = 'theProfilePage'; include(PHPWG_ROOT_PATH.'include/page_header.php'); @@ -108,32 +108,32 @@ function save_profile_from_post($userdata, &$errors) if (empty($_POST['nb_image_line']) or (!preg_match($int_pattern, $_POST['nb_image_line']))) { - $errors[] = l10n('nb_image_line_error'); + $errors[] = l10n('The number of images per row must be a not null scalar'); } if (empty($_POST['nb_line_page']) or (!preg_match($int_pattern, $_POST['nb_line_page']))) { - $errors[] = l10n('nb_line_page_error'); + $errors[] = l10n('The number of rows per page must be a not null scalar'); } if ($_POST['maxwidth'] != '' and (!preg_match($int_pattern, $_POST['maxwidth']) or $_POST['maxwidth'] < 50)) { - $errors[] = l10n('maxwidth_error'); + $errors[] = l10n('Maximum width must be a number superior to 50'); } if ($_POST['maxheight'] and (!preg_match($int_pattern, $_POST['maxheight']) or $_POST['maxheight'] < 50)) { - $errors[] = l10n('maxheight_error'); + $errors[] = l10n('Maximum height must be a number superior to 50'); } // periods must be integer values, they represents number of days if (!preg_match($int_pattern, $_POST['recent_period']) or $_POST['recent_period'] <= 0) { - $errors[] = l10n('periods_error') ; + $errors[] = l10n('Recent period must be a positive integer value') ; } if (isset($_POST['mail_address'])) -- cgit v1.2.3