summaryrefslogtreecommitdiff
path: root/debian/patches/kubuntu_add_langpack_path.diff
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/kubuntu_add_langpack_path.diff')
-rw-r--r--debian/patches/kubuntu_add_langpack_path.diff18
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/patches/kubuntu_add_langpack_path.diff b/debian/patches/kubuntu_add_langpack_path.diff
new file mode 100644
index 0000000..1c4dee8
--- /dev/null
+++ b/debian/patches/kubuntu_add_langpack_path.diff
@@ -0,0 +1,18 @@
+Description: Ensure KDE applications are checking langpack paths for l10n
+Author: Jonathan Riddell <jriddell@ubuntu.com>
+Forwarded: not-needed
+
+Index: kde4libs-4.13.0/kdecore/kernel/kstandarddirs.cpp
+===================================================================
+--- kde4libs-4.13.0.orig/kdecore/kernel/kstandarddirs.cpp 2014-05-20 13:22:57.000000000 +0100
++++ kde4libs-4.13.0/kdecore/kernel/kstandarddirs.cpp 2014-05-20 13:24:33.099360291 +0100
+@@ -1875,6 +1875,9 @@
+
+ addResourceDir("home", QDir::homePath(), false);
+
++ addResourceDir("locale", QLatin1String("/usr/share/locale-langpack/"), true);
++ addResourceDir("locale", QLatin1String("/usr/share/locale-kdelibs4/"), true);
++
+ addResourceType("autostart", "xdgconf-autostart", "/"); // merge them, start with xdg autostart
+ addResourceType("autostart", NULL, "share/autostart"); // KDE ones are higher priority
+ }