Make it easier to subclass OC_L10N.

remotes/origin/stable45
Thomas Tanghus 13 years ago
parent 14e1be56a0
commit c696f449a2
  1. 4
      lib/l10n.php

@ -77,6 +77,10 @@ class OC_L10N{
* language.
*/
public function __construct($app, $lang = null){
$this->init($app, $lang);
}
protected function init($app, $lang = null){
// Find the right language
if(is_null($lang)){
$lang = self::findLanguage($app);

Loading…
Cancel
Save