From: | "Sergey Popov (pinkbyte)" <pinkbyte@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-p2p/transmission/files: transmission-2.77-translations-path-fix.patch |
Date: | Wed, 27 Feb 2013 01:31:11 |
Message-Id: | 20130227013107.D7EE12171D@flycatcher.gentoo.org |
1 | pinkbyte 13/02/27 01:31:07 |
2 | |
3 | Added: transmission-2.77-translations-path-fix.patch |
4 | Log: |
5 | Add patch with fixing path for locale-specific files |
6 | |
7 | (Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key 0x1F357D42) |
8 | |
9 | Revision Changes Path |
10 | 1.1 net-p2p/transmission/files/transmission-2.77-translations-path-fix.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/transmission/files/transmission-2.77-translations-path-fix.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/transmission/files/transmission-2.77-translations-path-fix.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: transmission-2.77-translations-path-fix.patch |
16 | =================================================================== |
17 | Fix path for finding locale-specific files: |
18 | QCoreApplication::applicationDirPath() transforms to '/usr/bin' |
19 | and locale files are in '/usr/share/qt4/translations' |
20 | |
21 | --- qt/app.cc.orig 2013-02-27 05:23:30.512860807 +0400 |
22 | +++ qt/app.cc 2013-02-27 05:23:56.424861629 +0400 |
23 | @@ -97,7 +97,7 @@ |
24 | installTranslator( &qtTranslator ); |
25 | |
26 | // install the transmission translator |
27 | - appTranslator.load( QString(MY_CONFIG_NAME) + "_" + QLocale::system().name(), QCoreApplication::applicationDirPath() + "/translations" ); |
28 | + appTranslator.load( QString(MY_CONFIG_NAME) + "_" + QLocale::system().name(), QLibraryInfo::location(QLibraryInfo::TranslationsPath) ); |
29 | installTranslator( &appTranslator ); |
30 | |
31 | Formatter::initUnits( ); |