From a22940d3cd461a4d8f48b9bbd6eecbb380837d21 Mon Sep 17 00:00:00 2001
From: Bart Visscher <bartv@thisnet.nl>
Date: Fri, 19 Jul 2013 11:40:11 +0200
Subject: [PATCH] Add OC_L10N to public api

---
 lib/installer.php   | 1 +
 lib/public/util.php | 9 +++++++++
 2 files changed, 10 insertions(+)

diff --git a/lib/installer.php b/lib/installer.php
index 97f4e2b5fb..dcd29f9e1a 100644
--- a/lib/installer.php
+++ b/lib/installer.php
@@ -451,6 +451,7 @@ class OC_Installer{
 			'OC_Hook::',
 			'OC_Image::',
 			'OC_JSON::',
+			'OC_L10N::',
 			'OC_Log::',
 			'OC_Mail::',
 			'OC_Preferences::',
diff --git a/lib/public/util.php b/lib/public/util.php
index 6744c2d37b..cad1c5fd64 100644
--- a/lib/public/util.php
+++ b/lib/public/util.php
@@ -77,6 +77,15 @@ class Util {
 		\OC_LOG::write( $app, $message, $level );
 	}
 
+	/**
+	 * @brief get l10n object
+	 * @param string $app
+	 * @return OC_L10N
+	 */
+	public static function getL10N( $application ) {
+		\OC_L10N::get( $application );
+	}
+
 	/**
 	 * @brief add a css file
 	 * @param string $url
-- 
GitLab