← Back to team overview

openlp-core team mailing list archive

[Merge] lp:~googol-hush/openlp/trivial2 into lp:openlp

 

Andreas Preikschat has proposed merging lp:~googol-hush/openlp/trivial2 into lp:openlp.

Requested reviews:
  OpenLP Core (openlp-core)

For more details, see:
https://code.launchpad.net/~googol-hush/openlp/trivial2/+merge/55953

Hello,

- reload the ui module after setting up the language, so that those strings will be translated
-- 
https://code.launchpad.net/~googol-hush/openlp/trivial2/+merge/55953
Your team OpenLP Core is requested to review the proposed merge of lp:~googol-hush/openlp/trivial2 into lp:openlp.
=== modified file 'openlp.pyw'
--- openlp.pyw	2011-03-28 20:56:36 +0000
+++ openlp.pyw	2011-04-01 15:30:59 +0000
@@ -241,6 +241,9 @@
     language = LanguageManager.get_language()
     appTranslator = LanguageManager.get_translator(language)
     app.installTranslator(appTranslator)
+    # Reload the ui module to update the translations in the UiStrings class.
+    import openlp.core.lib.ui as ui
+    reload(ui)
     if not options.no_error_form:
         sys.excepthook = app.hookException
     sys.exit(app.run())


Follow ups