diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-02-07 16:49:36 +0100 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-02-07 16:49:36 +0100 |
commit | 5f92d269dc83762bbf200158149eec1e605c98a6 (patch) | |
tree | b857c99f2e6816c6b92dbea46467872bdb73333a /core | |
parent | e0212c11747423abc3720901cf69e69171aa5f9d (diff) | |
download | nextcloud-server-5f92d269dc83762bbf200158149eec1e605c98a6.tar.gz nextcloud-server-5f92d269dc83762bbf200158149eec1e605c98a6.zip |
l10n support enhanced in core
Diffstat (limited to 'core')
-rw-r--r-- | core/ajax/vcategories/add.php | 2 | ||||
-rw-r--r-- | core/ajax/vcategories/removeFromFavorites.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/core/ajax/vcategories/add.php b/core/ajax/vcategories/add.php index 23d00af70ab..16a1461be08 100644 --- a/core/ajax/vcategories/add.php +++ b/core/ajax/vcategories/add.php @@ -34,7 +34,7 @@ debug(print_r($category, true)); $categories = new OC_VCategories($type); if($categories->hasCategory($category)) { - bailOut(OC_Contacts_App::$l10n->t('This category already exists: '.$category)); + bailOut($l->t('This category already exists: %s', array($category))); } else { $categories->add($category, true); } diff --git a/core/ajax/vcategories/removeFromFavorites.php b/core/ajax/vcategories/removeFromFavorites.php index ba6e95c2497..78a528caa86 100644 --- a/core/ajax/vcategories/removeFromFavorites.php +++ b/core/ajax/vcategories/removeFromFavorites.php @@ -27,12 +27,12 @@ if(is_null($type)) { } if(is_null($id)) { - bailOut($l->t('%s ID not provided.', $type)); + bailOut($l->t('%s ID not provided.', array($type))); } $categories = new OC_VCategories($type); if(!$categories->removeFromFavorites($id, $type)) { - bailOut($l->t('Error removing %s from favorites.', $id)); + bailOut($l->t('Error removing %s from favorites.', array($id))); } OC_JSON::success(); |