Skip to content

Commit

Permalink
[Language] Fix global text domain not set
Browse files Browse the repository at this point in the history
This leads to untranslated texts in plugins when they rely on default translations from Enigma2.

If this really happened or not was unpredictable because some plugins already contained the above statement and fixed the whole system that way as a side effect ;) .
If NO such plugin was installed, default translations where broken for ALL plugins.
  • Loading branch information
Schimmelreiter authored and koivo committed Oct 13, 2016
1 parent 26b114c commit 4f80884
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/python/Components/Language.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
class Language:
def __init__(self):
gettext.install('enigma2', resolveFilename(SCOPE_LANGUAGE, ""), unicode=0, codeset="utf-8")
gettext.textdomain("enigma2")
self.activeLanguage = 0
self.catalog = None
self.lang = {}
Expand Down

0 comments on commit 4f80884

Please sign in to comment.