diff options
author | Ajay Garg <ajay@activitycentral.com> | 2013-02-13 14:29:41 (GMT) |
---|---|---|
committer | Ajay Garg <ajay@activitycentral.com> | 2013-02-13 14:29:41 (GMT) |
commit | 86b4c7690441e5e96e344a5733ef4216885f9f2d (patch) | |
tree | 2391cb1253516555d6757a381e1980757a6a5849 /extensions | |
parent | 38f4ecf8b7d366137b03140ab336aa729003aced (diff) |
sdxo#3006: Calculating the logic in a spaghetti way; but it makes OOB maintenance easier.
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/cpsection/language/model.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/extensions/cpsection/language/model.py b/extensions/cpsection/language/model.py index 812a4bf..8617693 100644 --- a/extensions/cpsection/language/model.py +++ b/extensions/cpsection/language/model.py @@ -49,7 +49,13 @@ def read_all_languages(): # OLPC, but are not in Glibc yet. from gi.repository import GConf client = GConf.Client.get_default() - if client.get_bool('/desktop/sugar/extensions/language/show_additional_olpc_languages'): + + show_additional_languages = True + gconf_key = client.get_bool('/desktop/sugar/extensions/language/disable_showing_additional_olpc_languages') + if gconf_key is True: + show_additional_languages = False + + if show_additional_languages is True: locales.append(('Kreyol', 'Haiti', 'ht_HT.utf8')) locales.append(('Dari', 'Afghanistan', 'fa_AF.utf8')) locales.append(('Pashto', 'Afghanistan', 'ps_AF.utf8')) |