Language Fallback

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Language Fallback

Post 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?
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Language Fallback

Post 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).
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply