mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 06:08:46 -04:00
Add OC_L10N to public api
This commit is contained in:
parent
9379cbf602
commit
a22940d3cd
2 changed files with 10 additions and 0 deletions
|
|
@ -451,6 +451,7 @@ class OC_Installer{
|
|||
'OC_Hook::',
|
||||
'OC_Image::',
|
||||
'OC_JSON::',
|
||||
'OC_L10N::',
|
||||
'OC_Log::',
|
||||
'OC_Mail::',
|
||||
'OC_Preferences::',
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue