Browse Source

Removed redundant language loading code, and debug statements. Added direct call to i18n to set language type

pull/29/head
chriskiehl 10 years ago
parent
commit
639f1b9771
1 changed files with 1 additions and 8 deletions
  1. 9
      gooey/gooey_decorator.py

9
gooey/gooey_decorator.py

@ -40,9 +40,7 @@ def Gooey(f=None, advanced=True,
# Must be called before anything else
app = wx.App(False)
print i18n_config.LANG
load_language_pack(language)
print i18n_config.LANG
i18n.load(language)
if config:
parser = get_parser(module_path)
@ -86,11 +84,6 @@ def get_caller_path():
tmp_sys = __import__('sys')
return tmp_sys.argv[0]
def load_language_pack(language):
i18n.load(language)
# i18n_config.LANG = language
if __name__ == '__main__':
pass
Loading…
Cancel
Save