Skip to content
Snippets Groups Projects
Commit e125dc60 authored by Thomas Müller's avatar Thomas Müller
Browse files

introduce new function to force a language

parent 2eeab603
No related branches found
No related tags found
No related merge requests found
......@@ -418,6 +418,14 @@ class OC_L10N implements \OCP\IL10N {
return $text[$lang];
}
/**
* The given language is forced to be used while executing the current request
* @param string $lang
*/
public static function forceLanguage($lang) {
self::$language = $lang;
}
/**
* @brief find the best language
* @param array|string $app details below
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment