packages: clementine/unbundle-po.patch - use qtinfo
glen
glen at pld-linux.org
Wed Oct 20 11:48:31 CEST 2010
Author: glen Date: Wed Oct 20 09:48:31 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- use qtinfo
---- Files affected:
packages/clementine:
unbundle-po.patch (1.3 -> 1.4)
---- Diffs:
================================================================
Index: packages/clementine/unbundle-po.patch
diff -u packages/clementine/unbundle-po.patch:1.3 packages/clementine/unbundle-po.patch:1.4
--- packages/clementine/unbundle-po.patch:1.3 Tue Oct 19 11:12:12 2010
+++ packages/clementine/unbundle-po.patch Wed Oct 20 11:48:26 2010
@@ -52,10 +52,10 @@
- // The regex captures the "ru" from "clementine_ru.qm"
- if (!lang_re.exactMatch(filename))
+// QDir dir(":/translations/");
-+ QDir localeDir("/usr/share/locale");
++ QDir localeDir(QLibraryInfo::location(QLibraryInfo::TranslationsPath));
+ QStringList dirList = localeDir.entryList(QDir::Dirs | QDir::NoDotAndDotDot, QDir::Name);
+ foreach (const QString& code, dirList) {
-+ if (!QFile::exists( "/usr/share/locale/" + code + "/LC_MESSAGES/clementine.qm")) {
++ if (!QFile::exists(QLibraryInfo::location(QLibraryInfo::TranslationsPath) + "/" + code + "/LC_MESSAGES/clementine.qm")) {
continue;
+ }
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/clementine/unbundle-po.patch?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list