]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add OC_L10N to public api
authorBart Visscher <bartv@thisnet.nl>
Fri, 19 Jul 2013 09:40:11 +0000 (11:40 +0200)
committerBart Visscher <bartv@thisnet.nl>
Fri, 19 Jul 2013 09:40:11 +0000 (11:40 +0200)
lib/installer.php
lib/public/util.php

index 97f4e2b5fb89f5ddb19f8e4cb8a0b0a1a826759b..dcd29f9e1ade6571e44f49f62c0aa1f14df1da7d 100644 (file)
@@ -451,6 +451,7 @@ class OC_Installer{
                        'OC_Hook::',
                        'OC_Image::',
                        'OC_JSON::',
+                       'OC_L10N::',
                        'OC_Log::',
                        'OC_Mail::',
                        'OC_Preferences::',
index 6744c2d37bdde2535f20a7646d8a307a2ccd1a17..cad1c5fd64e0995e7ed8fa6b79edd1520fbce4e9 100644 (file)
@@ -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