Commit 364f8964 authored by Wolfgang Rohdewald's avatar Wolfgang Rohdewald
Browse files

MLocale.isLanguageInstalled now always returns True for en_US

parent b9d94439
......@@ -316,6 +316,8 @@ class MLocale:
@classmethod
def isLanguageInstalled(cls, lang): # TODO: should be is Available
"""is any translation available for lang?"""
if lang == 'en_US':
return True
for directory in cls.localeDirectories():
if os.path.exists(os.path.join(directory, lang)):
return True
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment