Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Games
Kajongg
Commits
364f8964
Commit
364f8964
authored
Dec 15, 2017
by
Wolfgang Rohdewald
Browse files
MLocale.isLanguageInstalled now always returns True for en_US
parent
b9d94439
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/mi18n.py
View file @
364f8964
...
@@ -316,6 +316,8 @@ class MLocale:
...
@@ -316,6 +316,8 @@ class MLocale:
@
classmethod
@
classmethod
def
isLanguageInstalled
(
cls
,
lang
):
# TODO: should be is Available
def
isLanguageInstalled
(
cls
,
lang
):
# TODO: should be is Available
"""is any translation available for lang?"""
"""is any translation available for lang?"""
if
lang
==
'en_US'
:
return
True
for
directory
in
cls
.
localeDirectories
():
for
directory
in
cls
.
localeDirectories
():
if
os
.
path
.
exists
(
os
.
path
.
join
(
directory
,
lang
)):
if
os
.
path
.
exists
(
os
.
path
.
join
(
directory
,
lang
)):
return
True
return
True
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment