summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/ajax/share.php6
-rw-r--r--core/ajax/translations.php2
-rw-r--r--core/js/config.php2
-rw-r--r--core/setup/controller.php2
-rw-r--r--core/strings.php2
5 files changed, 7 insertions, 7 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()));
diff --git a/core/js/config.php b/core/js/config.php
index b61694522db..6994f2ed8a2 100644
--- a/core/js/config.php
+++ b/core/js/config.php
@@ -14,7 +14,7 @@ header("Cache-Control: no-cache, must-revalidate");
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
// Enable l10n support
-$l = OC_L10N::get('core');
+$l = \OC::$server->getL10N('core');
// Enable OC_Defaults support
$defaults = new OC_Defaults();
diff --git a/core/setup/controller.php b/core/setup/controller.php
index e764b232e89..91b90e0adef 100644
--- a/core/setup/controller.php
+++ b/core/setup/controller.php
@@ -132,7 +132,7 @@ class Controller {
}
if (\OC_Util::runningOnMac()) {
- $l10n = \OC_L10N::get('core');
+ $l10n = \OC::$server->getL10N('core');
$themeName = \OC_Util::getTheme();
$theme = new \OC_Defaults();
$errors[] = array(
diff --git a/core/strings.php b/core/strings.php
index 01ab3866089..ebae63bf928 100644
--- a/core/strings.php
+++ b/core/strings.php
@@ -1,7 +1,7 @@
<?php
//some strings that are used in /lib but wont be translatable unless they are in /core too
-$l=OC_L10N::get('core');
+$l = \OC::$server->getL10N('core');
$l->t("Personal");
$l->t("Users");
$l->t("Apps");