summaryrefslogtreecommitdiff
path: root/net-p2p/transmission-qt4/files/transmission-qt4-2.80-translations-path-fix.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2015-06-26 15:06:24 +0100
committerV3n3RiX <venerix@rogentos.ro>2015-06-26 15:06:24 +0100
commit2b921eb19ef0520542ed7ae4a5beae9da9749d4c (patch)
tree63a7822210385c6042491a4bfa0d82301699c8f9 /net-p2p/transmission-qt4/files/transmission-qt4-2.80-translations-path-fix.patch
parentc2b0d275a42869258071fa3571652bb4c10f254e (diff)
parentfee9d49c73ebb43de8f12c73f7d502044850818e (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'net-p2p/transmission-qt4/files/transmission-qt4-2.80-translations-path-fix.patch')
-rw-r--r--net-p2p/transmission-qt4/files/transmission-qt4-2.80-translations-path-fix.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/net-p2p/transmission-qt4/files/transmission-qt4-2.80-translations-path-fix.patch b/net-p2p/transmission-qt4/files/transmission-qt4-2.80-translations-path-fix.patch
new file mode 100644
index 00000000..48638010
--- /dev/null
+++ b/net-p2p/transmission-qt4/files/transmission-qt4-2.80-translations-path-fix.patch
@@ -0,0 +1,17 @@
+This patch was adapted from -2.77-transmations-path-fix.patch for 2.80
+
+Fix path for finding locale-specific files:
+QCoreApplication::applicationDirPath() transforms to '/usr/bin'
+and locale files are in '/usr/share/qt4/translations'
+
+--- qt/app.cc
++++ qt/app.cc
+@@ -98,7 +98,7 @@
+ installTranslator (&qtTranslator);
+
+ // install the transmission translator
+- appTranslator.load (QString (MY_CONFIG_NAME) + "_" + QLocale::system ().name (), QCoreApplication::applicationDirPath () + "/translations");
++ appTranslator.load (QString (MY_CONFIG_NAME) + "_" + QLocale::system ().name (), QLibraryInfo::location(QLibraryInfo::TranslationsPath) );
+ installTranslator (&appTranslator);
+
+ Formatter::initUnits ();