diff options
-rw-r--r-- | lib/private/l10n.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/private/l10n.php b/lib/private/l10n.php index 175360e27a3..a397945b829 100644 --- a/lib/private/l10n.php +++ b/lib/private/l10n.php @@ -419,6 +419,14 @@ class OC_L10N implements \OCP\IL10N { } /** + * 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 * @returns string language |