Obes, Til wrote:
I dont know exactly what locale variant openca uses, so i generate all the locales of the languages.
from: .../OpenCA/lib/functions/initServer line 321 ff there is the detection code and setting code
## supported languages so far
%supportedLanguages = (
C => { LANG => 'C', CHARSET => 'iso-8859-1'},
de => { LANG => 'de_DE', CHARSET => 'iso-8859-1'},
el => { LANG => 'el_GR', CHARSET => 'iso-8859-7'},
en => { LANG => 'en_GB', CHARSET => 'utf-8'},
es => { LANG => 'es_ES', CHARSET => 'iso-8859-1'},
fr => { LANG => 'fr_FR', CHARSET => 'iso-8859-1'},
it => { LANG => 'it_IT', CHARSET => 'iso-8859-1'},
pl => { LANG => 'pl_PL', CHARSET => 'iso-8859-2'},
sl => { LANG => 'sl_SI', CHARSET => 'utf-8'},
ja => { LANG => 'ja_JP', CHARSET => 'EUC-JP'}
);improvements always welcome ;)
so the code below this definitions tries to determine the browsersupported languages and switch to the first-matched one, if not a default is set or the user did choose one... if none is found, default gets used...
more comments are in the code itself, since i was not sure about how to handle all things...
greetings dalini
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Openca-Users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openca-users
