How to set the right language automatically?

  • #10, z afrlmeMonday, 13. June 2016, 21:37 hodinky 8 years ago
    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.

    Imperátor

    7285 Posts


  • #11, z sebastianMonday, 13. June 2016, 22:48 hodinky 8 years ago
    Ok. So get systemlanguage and set to its most matching language.
    Then overwrite language if language= line is set to german or english...

    Kapitán

    2346 Posts

  • #12, z afrlmeTuesday, 14. June 2016, 01:02 hodinky 8 years ago
    Yeah that pretty much sums it up. smile

    Imperátor

    7285 Posts

  • #13, z sebastianTuesday, 14. June 2016, 10:41 hodinky 8 years ago
    Coolio. Thanks gor the good suggestions.

    Kapitán

    2346 Posts