diff options
Diffstat (limited to 'debian/patches/0003-Create-a-rule-to-compile-.ts-into-.qm.patch')
-rw-r--r-- | debian/patches/0003-Create-a-rule-to-compile-.ts-into-.qm.patch | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/debian/patches/0003-Create-a-rule-to-compile-.ts-into-.qm.patch b/debian/patches/0003-Create-a-rule-to-compile-.ts-into-.qm.patch new file mode 100644 index 0000000..cf9cc94 --- /dev/null +++ b/debian/patches/0003-Create-a-rule-to-compile-.ts-into-.qm.patch @@ -0,0 +1,95 @@ +From 609a2b0e91612c76294b44495b8322079d5fd66a Mon Sep 17 00:00:00 2001 +From: Thomas Preud'homme <robotux@celest.fr> +Date: Thu, 3 Jan 2013 14:58:39 +0100 +Subject: Create a rule to compile *.ts into *.qm + +Add a new compiler to compile *.ts files into *.qm. + +Origin: vendor +Forwarded: no +Last-Update: 2013-01-03 +--- + plugins-alternative/Themes/Clean/interface.pro | 1 + + plugins-alternative/Themes/Teracopy/interface.pro | 1 + + plugins/CopyEngine/Ultracopier-0.3/copyEngine.pro | 1 + + plugins/Themes/Oxygen/interface.pro | 1 + + ultracopier.pro | 1 + + updateqm.pri | 10 ++++++++++ + 6 files changed, 15 insertions(+) + create mode 100644 updateqm.pri + +diff --git a/plugins-alternative/Themes/Clean/interface.pro b/plugins-alternative/Themes/Clean/interface.pro +index 3057d5b..4330f74 100644 +--- a/plugins-alternative/Themes/Clean/interface.pro ++++ b/plugins-alternative/Themes/Clean/interface.pro +@@ -8,6 +8,7 @@ HEADERS = interface.h \ + SOURCES = interface.cpp \ + factory.cpp + TARGET = $$qtLibraryTarget(interface) ++include(../../../updateqm.pri) + TRANSLATIONS += Languages/ar/translation.ts \ + Languages/de/translation.ts \ + Languages/el/translation.ts \ +diff --git a/plugins-alternative/Themes/Teracopy/interface.pro b/plugins-alternative/Themes/Teracopy/interface.pro +index 268021b..7c05519 100644 +--- a/plugins-alternative/Themes/Teracopy/interface.pro ++++ b/plugins-alternative/Themes/Teracopy/interface.pro +@@ -11,6 +11,7 @@ HEADERS = interface.h \ + SOURCES = interface.cpp \ + factory.cpp + TARGET = $$qtLibraryTarget(interface) ++include(../../../updateqm.pri) + TRANSLATIONS += Languages/ar/translation.ts \ + Languages/de/translation.ts \ + Languages/el/translation.ts \ +diff --git a/plugins/CopyEngine/Ultracopier-0.3/copyEngine.pro b/plugins/CopyEngine/Ultracopier-0.3/copyEngine.pro +index f198ff8..03a5f3f 100644 +--- a/plugins/CopyEngine/Ultracopier-0.3/copyEngine.pro ++++ b/plugins/CopyEngine/Ultracopier-0.3/copyEngine.pro +@@ -39,6 +39,7 @@ SOURCES = copyEngine.cpp \ + copyEngine-collision-and-error.cpp \ + ListThread.cpp + TARGET = $$qtLibraryTarget(copyEngine) ++include(../../../updateqm.pri) + TRANSLATIONS += Languages/ar/translation.ts \ + Languages/de/translation.ts \ + Languages/el/translation.ts \ +diff --git a/plugins/Themes/Oxygen/interface.pro b/plugins/Themes/Oxygen/interface.pro +index c86e422..97b44b9 100644 +--- a/plugins/Themes/Oxygen/interface.pro ++++ b/plugins/Themes/Oxygen/interface.pro +@@ -14,6 +14,7 @@ SOURCES = interface.cpp \ + factory.cpp \ + TransferModel.cpp + TARGET = $$qtLibraryTarget(interface) ++include(../../../updateqm.pri) + TRANSLATIONS += Languages/ar/translation.ts \ + Languages/de/translation.ts \ + Languages/el/translation.ts \ +diff --git a/ultracopier.pro b/ultracopier.pro +index ed336fd..e69ab7f 100644 +--- a/ultracopier.pro ++++ b/ultracopier.pro +@@ -1,5 +1,6 @@ + TEMPLATE = app + QT += network xml ++include(updateqm.pri) + TRANSLATIONS += plugins/Languages/ar/translation.ts \ + plugins/Languages/de/translation.ts \ + plugins/Languages/el/translation.ts \ +diff --git a/updateqm.pri b/updateqm.pri +new file mode 100644 +index 0000000..4fc4ebc +--- /dev/null ++++ b/updateqm.pri +@@ -0,0 +1,10 @@ ++isEmpty(QMAKE_LRELEASE) { ++ win32:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\lrelease.exe ++ else:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease ++} ++updateqm.input = TRANSLATIONS ++updateqm.output = ${QMAKE_FILE_PATH}/${QMAKE_FILE_BASE}.qm ++updateqm.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN} -qm ${QMAKE_FILE_OUT} ++updateqm.CONFIG += no_link ++QMAKE_EXTRA_COMPILERS += updateqm ++PRE_TARGETDEPS += compiler_updateqm_make_all |