Page 1 of 1

Language Fallback

Posted: Mon Mar 13, 2017 5:03 pm
by mkoch227
The following change is present in the HESK 2.7.0 changelog:

Code: Select all

- improved language loading (fallback if not found, custom text)
I'm bringing this up since an issue was opened on the Mods for HESK issue tracker (https://gitlab.com/mike-koch/Mods-for-HESK/issues/529) that also occurs in HESK. If a language string is missing in a translated language file, the string displayed is blank. Should the fallback functionality use the English text instead? Or is the fallback functionality only supposed to work when the language file itself is not found?

Re: Language Fallback

Posted: Mon Mar 13, 2017 5:13 pm
by Klemen
Or is the fallback functionality only supposed to work when the language file itself is not found?
This is it. Only if the language file is not found.

If you wanted to fallback to English language strings, you would always need to load English first before any translation. This wouldn't be hard to do as far as coding is concerned, but for performance and because HESK language files contain missing strings in English, it was decided to not be implemented (for now).