diff options
Diffstat (limited to 'lib/private/server.php')
-rw-r--r-- | lib/private/server.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/private/server.php b/lib/private/server.php index ef2007663c6..e4cc0c6da81 100644 --- a/lib/private/server.php +++ b/lib/private/server.php @@ -102,6 +102,9 @@ class Server extends SimpleContainer implements IServerContainer { $this->registerService('AllConfig', function($c) { return new \OC\AllConfig(); }); + $this->registerService('L10NFactory', function($c) { + return new \OC\L10N\Factory(); + }); $this->registerService('UserCache', function($c) { return new UserCache(); }); @@ -218,6 +221,15 @@ class Server extends SimpleContainer implements IServerContainer { } /** + * get an L10N instance + * @param $app string appid + * @return \OC_L10N + */ + function getL10N($app) { + return $this->query('L10NFactory')->get($app); + } + + /** * Returns an ICache instance * * @return \OCP\ICache |