[apper] fix translations in the updater applet

Lukas Tinkl ltinkl at fedoraproject.org
Mon Aug 26 14:07:24 UTC 2013


commit 645648e8c68a4cd903ed03bddc78be91a8b13eaa
Author: Lukáš Tinkl <lukas at kde.org>
Date:   Mon Aug 26 16:07:09 2013 +0200

    fix translations in the updater applet

 apper-updater-l10n.patch |   21 +++++++++++++++++++++
 apper.spec               |    9 +++++++--
 2 files changed, 28 insertions(+), 2 deletions(-)
---
diff --git a/apper-updater-l10n.patch b/apper-updater-l10n.patch
new file mode 100644
index 0000000..3eb96b4
--- /dev/null
+++ b/apper-updater-l10n.patch
@@ -0,0 +1,21 @@
+commit 5abe135b5907ab10ed52be0046a3de0d52d98f22
+Author: Lukáš Tinkl <lukas at kde.org>
+Date:   Fri Aug 23 19:35:56 2013 +0200
+
+    load the main apper catalog for the applet
+    
+    for a 3rd time, make this thing show up translated...
+
+diff --git a/declarative-plugins/qmlplugins.cpp b/declarative-plugins/qmlplugins.cpp
+index 9deb29f..b39b3d2 100644
+--- a/declarative-plugins/qmlplugins.cpp
++++ b/declarative-plugins/qmlplugins.cpp
+@@ -35,6 +35,8 @@
+ #include <Daemon>
+ #include <QDeclarativeEngine>
+ 
++static const KCatalogLoader loader(QLatin1String("apper"));
++
+ void QmlPlugins::registerTypes(const char* uri)
+ {
+     Q_ASSERT(uri == QLatin1String("org.kde.apper"));
diff --git a/apper.spec b/apper.spec
index 40b6a47..5156688 100644
--- a/apper.spec
+++ b/apper.spec
@@ -5,7 +5,7 @@
 
 Name:    apper
 Version: 0.8.1
-Release: 1%{?dist}
+Release: 2%{?dist}
 Summary: KDE interface for PackageKit
 
 License: GPLv2+
@@ -27,6 +27,8 @@ BuildRequires: git-core
 %endif
 # hack around https://bugzilla.redhat.com/948099
 Patch200: 0100-pk-cache-update-debugging.patch
+# fix translations in the updater applet
+Patch201: apper-updater-l10n.patch
 
 
 Obsoletes: kpackagekit < 0.7.0
@@ -72,7 +74,7 @@ git am -p1 %{patches} < /dev/null
 %else
 %patch200 -p1 -b .pk_cache_update
 %endif
-
+%patch201 -p1 -b .applet-l10n
 
 %build
 mkdir -p %{_target_platform}
@@ -149,6 +151,9 @@ fi
 
 
 %changelog
+* Mon Aug 26 2013 Lukáš Tinkl <ltinkl at redhat.com> 0.8.1-2
+- fix translations in the updater applet
+
 * Tue Jul 30 2013 Rex Dieter <rdieter at fedoraproject.org> 0.8.1-1
 - 0.8.1 (final)
 


More information about the scm-commits mailing list