Menu
Login
Language
DE EN FR ES IT CZ
Back

How to set the right language automatically?

  • #10, by afrlme Monday, 13. June 2016, 21:37 10 years ago Quote
    I wouldn't use the system language line at all. Your idea about running the system language function / query first isn't a bad idea at all...

    I would query something like...

    if sytem language is german or austrian or belgian (whichever countries / languages would prefer german over english as default language) then language = german else language = english end

    As you've probably noticed, I've not written it out as it's supposed to be as it's more sort of a suggestion as to what you could query / do for the system language function.

    For the language just query if it's english then set english elseif it's german set german. That way if it's neither then your system language function will have automatically taken care of it beforehand. wink

    Hopefully this will have been some help towards a step in the right direction. If not then let me know.

    Imperator

    7290 Posts

  • #11, by sebastian Monday, 13. June 2016, 22:48 10 years ago Quote
    Ok. So get systemlanguage and set to its most matching language.
    Then overwrite language if language= line is set to german or english...

    Thread Captain

    2346 Posts

  • #12, by afrlme Tuesday, 14. June 2016, 01:02 10 years ago Quote
    Yeah that pretty much sums it up. smile

    Imperator

    7290 Posts

  • #13, by sebastian Tuesday, 14. June 2016, 10:41 10 years ago Quote
    Coolio. Thanks gor the good suggestions.

    Thread Captain

    2346 Posts