Login / Registrieren
DE EN FR ES IT CZ
Zurück Nach oben

How to set the right language automatically?

  • #10, by afrlme 10 years ago Zitieren
    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.
  • #11, by sebastian 10 years ago Zitieren
    Ok. So get systemlanguage and set to its most matching language.
    Then overwrite language if language= line is set to german or english...
  • #12, by afrlme 10 years ago Zitieren
    Yeah that pretty much sums it up. smile
  • #13, by sebastian 10 years ago Zitieren
    Coolio. Thanks gor the good suggestions.