]> git.pld-linux.org Git - packages/clementine.git/commitdiff
- use qtinfo
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 20 Oct 2010 09:48:26 +0000 (09:48 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    unbundle-po.patch -> 1.4

unbundle-po.patch

index 317abfdd503aa1cc208f4736bcd418fb32c66762..45e2b3c319c35757b0d7389561a6bffce69582a7 100644 (file)
@@ -52,10 +52,10 @@ Author: Elan Ruusamäe <glen@pld-linux.org>
 -    // 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;
 +    }
  
This page took 0.07105 seconds and 4 git commands to generate.