diff --git a/lib/installer.php b/lib/installer.php index 97f4e2b5fb89f5ddb19f8e4cb8a0b0a1a826759b..dcd29f9e1ade6571e44f49f62c0aa1f14df1da7d 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 6744c2d37bdde2535f20a7646d8a307a2ccd1a17..cad1c5fd64e0995e7ed8fa6b79edd1520fbce4e9 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