diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-08-31 10:05:59 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-08-31 10:08:22 +0200 |
commit | d0266c0bf85e431a3b1b39cbfaced4e8df52a264 (patch) | |
tree | dfea49fa907a3b7543f8849077d75cfc29a54279 /core/ajax | |
parent | 23137f4798cb89b188329050a85f2f3a706947c5 (diff) | |
download | nextcloud-server-d0266c0bf85e431a3b1b39cbfaced4e8df52a264.tar.gz nextcloud-server-d0266c0bf85e431a3b1b39cbfaced4e8df52a264.zip |
Use public api for getting l10n
Diffstat (limited to 'core/ajax')
-rw-r--r-- | core/ajax/share.php | 6 | ||||
-rw-r--r-- | core/ajax/translations.php | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/core/ajax/share.php b/core/ajax/share.php index 451c761c2cd..c6da79a8a42 100644 --- a/core/ajax/share.php +++ b/core/ajax/share.php @@ -90,7 +90,7 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo } break; case 'informRecipients': - $l = OC_L10N::get('core'); + $l = \OC::$server->getL10N('core'); $shareType = (int) $_POST['shareType']; $itemType = $_POST['itemType']; $itemSource = $_POST['itemSource']; @@ -153,7 +153,7 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo if(empty($result)) { \OCP\JSON::success(); } else { - $l = OC_L10N::get('core'); + $l = \OC::$server->getL10N('core'); OCP\JSON::error(array( 'data' => array( 'message' => $l->t("Couldn't send mail to following users: %s ", @@ -287,7 +287,7 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo $count = 0; // enable l10n support - $l = OC_L10N::get('core'); + $l = \OC::$server->getL10N('core'); foreach ($groups as $group) { if ($count < 15) { diff --git a/core/ajax/translations.php b/core/ajax/translations.php index e829453dbcc..c296cea572a 100644 --- a/core/ajax/translations.php +++ b/core/ajax/translations.php @@ -25,6 +25,6 @@ $app = isset($_POST["app"]) ? $_POST["app"] : ""; $app = OC_App::cleanAppId($app); -$l = OC_L10N::get( $app ); +$l = \OC::$server->getL10N($app); OC_JSON::success(array('data' => $l->getTranslations(), 'plural_form' => $l->getPluralFormString())); |