forked from Wavyzz/dolibarr
Add property shortlang
This commit is contained in:
@@ -32,6 +32,7 @@ class Translate
|
||||
public $dir; // Directories that contains /langs subdirectory
|
||||
|
||||
public $defaultlang; // Current language for current user
|
||||
public $shortlang; // Short language for current user
|
||||
public $charset_output = 'UTF-8'; // Codage used by "trans" method outputs
|
||||
|
||||
public $tab_translate = array(); // Array of all translations key=>value
|
||||
@@ -122,6 +123,7 @@ class Translate
|
||||
}
|
||||
|
||||
$this->defaultlang = $srclang;
|
||||
$this->shortlang = substr($srclang, 0, 2);
|
||||
//print 'this->defaultlang='.$this->defaultlang;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user