mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-02 19:42:54 +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:
@@ -1182,7 +1182,7 @@ function create_virtual_category($category_name, $parent_id=null)
|
||||
// is the given category name only containing blank spaces ?
|
||||
if (preg_match('/^\s*$/', $category_name))
|
||||
{
|
||||
return array('error' => l10n('cat_error_name'));
|
||||
return array('error' => l10n('The name of a category should not be empty'));
|
||||
}
|
||||
|
||||
$parent_id = !empty($parent_id) ? $parent_id : 'NULL';
|
||||
@@ -1268,7 +1268,7 @@ UPDATE
|
||||
pwg_query($query);
|
||||
|
||||
return array(
|
||||
'info' => l10n('cat_virtual_added'),
|
||||
'info' => l10n('Virtual category added'),
|
||||
'id' => $inserted_id,
|
||||
);
|
||||
}
|
||||
@@ -1666,7 +1666,7 @@ SELECT id
|
||||
|
||||
return array(
|
||||
'info' => sprintf(
|
||||
l10n('Tag "%s" was added'),
|
||||
l10n('Tag \"%s\" was added'),
|
||||
stripslashes($tag_name)
|
||||
),
|
||||
'id' => $inserted_id,
|
||||
@@ -1676,7 +1676,7 @@ SELECT id
|
||||
{
|
||||
return array(
|
||||
'error' => sprintf(
|
||||
l10n('Tag "%s" already exists'),
|
||||
l10n('Tag \"%s\" already exists'),
|
||||
stripslashes($tag_name)
|
||||
)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user