Sophie

Sophie

distrib > Mageia > cauldron > i586 > by-pkgid > 800c022e767c60d6d1a06297e5ea0900 > files > 1

autohint-onoff-1.7-9.mga7.src.rpm

--- autohint-onoff-1.6.orig/autohint-onoff.py	2014-04-20 07:57:22.490217057 +0200
+++ autohint-onoff-1.6/autohint-onoff.py	2014-04-20 08:03:22.425754412 +0200
@@ -230,11 +230,19 @@
     filePath = os.path.dirname(os.path.realpath(__file__))
     locale = QLocale.system().name()
     appTranslator = QTranslator()
-    appTranslator.load(filePath + "/translations/autohint-onoff_" + locale)
-    app.installTranslator(appTranslator)
+    if appTranslator.load(filePath +
+       "/translations/autohint-onoff_" + locale):
+        app.installTranslator(appTranslator)
+    if appTranslator.load(
+       "/../../usr/share/autohint-onoff/translations/autohint-onoff_" + locale):
+        app.installTranslator(appTranslator)
     qtTranslator = QTranslator()
-    qtTranslator.load(filePath + "/translations/qt_" + locale)
-    app.installTranslator(qtTranslator)
+    if qtTranslator.load(filePath + "/translations/qt_" + locale):
+        app.installTranslator(qtTranslator)
+    if qtTranslator.load(
+        "/../../usr/share/autohint-onoff/translations/qt_" + locale):
+        app.installTranslator(qtTranslator)
+
 
     ui = Autohint()
     ui.show()