diff options
author | nikrou <nikrou@piwigo.org> | 2010-03-02 14:54:22 +0000 |
---|---|---|
committer | nikrou <nikrou@piwigo.org> | 2010-03-02 14:54:22 +0000 |
commit | 2e890e9597da29346a1fbe0db45f48e4a2be86e7 (patch) | |
tree | f189c8320f38340bc3d7a94d799e05e0587d95cb /profile.php | |
parent | 35694a636ef34dba5384e1a530b837208b9e55f9 (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 '')
-rw-r--r-- | profile.php | 12 |
1 files changed, 6 insertions, 6 deletions
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'])) |