Can i set as default a language? or set it with the "flag button" on the header?
when i run the file testlang.php i get this outpu, can someone help me?
Your browser preferred language is: 'en'<br>PHP Notice: Undefined variable: lang_dialect in /var/www/osticket/testlang.php on line 53
PHP Notice: Undefined variable: lang_dialect in /var/www/osticket/testlang.php on line 56
PHP Notice: Undefined variable: lang_dialect in /var/www/osticket/testlang.php on line 59
PHP Notice: Undefined variable: lang_dialect in /var/www/osticket/testlang.php on line 62
The following folder will be used to translate your osticket: 'en'
You can ignore the PHP Notices i'll fix that in the next update.
The site tells you
Your browser preferred language is: 'en'
The following folder will be used to translate your osticket: 'en'
That means 'en' will be used as the osticket language for you. You'll have to either set your browser preferred language or set a fixed language in gettext-conf.php. For example in firefox(20.0.1) you can set it by Clicking on Firefox->Preferences->Content->In the Section 'Languages' on Choose->Set your Language. Osticket will use the first in that list.
If you want to set a fixed language code open the file '/include/gettext-conf.php' and change the line
$language=getDefaultLanguage();
To
$language='yourlangcode';
Example
$language='de-de';
Setting a fixed language is a global configuration, setting your browser preferred language is (obviously) only effective for you and only in that browser. Also, testlang isn't affected by the fixed language setting.