summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-02-07 16:49:36 +0100
committerThomas Mueller <thomas.mueller@tmit.eu>2013-02-07 16:49:36 +0100
commit5f92d269dc83762bbf200158149eec1e605c98a6 (patch)
treeb857c99f2e6816c6b92dbea46467872bdb73333a /core
parente0212c11747423abc3720901cf69e69171aa5f9d (diff)
downloadnextcloud-server-5f92d269dc83762bbf200158149eec1e605c98a6.tar.gz
nextcloud-server-5f92d269dc83762bbf200158149eec1e605c98a6.zip
l10n support enhanced in core
Diffstat (limited to 'core')
-rw-r--r--core/ajax/vcategories/add.php2
-rw-r--r--core/ajax/vcategories/removeFromFavorites.php4
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();