How to set the right language automatically?

  • #10, by afrlmeMonday, 13. June 2016, 21:37 5 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.

    Imperator

    7036 Posts


  • #11, by sebastianMonday, 13. June 2016, 22:48 5 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...

    Thread Captain

    2346 Posts

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

    Imperator

    7036 Posts

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

    Thread Captain

    2346 Posts