summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2013-01-03 14:58:39 +0100
committerThomas Preud'homme <robotux@celest.fr>2013-03-21 17:13:12 +0100
commitf788a1a901d7cc6794906591ca12c8630183f33c (patch)
treeaeec69cfea3c78144d22577b604c7dfeaf6f055f
parent2e38eecc0ce22daa8dd41f7d12a61570f62ce631 (diff)
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-03-21
-rw-r--r--plugins-alternative/CopyEngine/Rsync/copyEngine.pro1
-rw-r--r--plugins-alternative/Themes/Clean/interface.pro1
-rw-r--r--plugins-alternative/Themes/Teracopy/interface.pro1
-rw-r--r--plugins/CopyEngine/Ultracopier-0.3/copyEngine.pro1
-rwxr-xr-xplugins/PluginLoader/catchcopy-v0002/pluginLoader.pro1
-rw-r--r--plugins/Themes/Oxygen/interface.pro1
-rw-r--r--ultracopier.pro1
-rw-r--r--updateqm.pri10
8 files changed, 17 insertions, 0 deletions
diff --git a/plugins-alternative/CopyEngine/Rsync/copyEngine.pro b/plugins-alternative/CopyEngine/Rsync/copyEngine.pro
index 13ab523..68b7eb2 100644
--- a/plugins-alternative/CopyEngine/Rsync/copyEngine.pro
+++ b/plugins-alternative/CopyEngine/Rsync/copyEngine.pro
@@ -46,6 +46,7 @@ SOURCES = copyEngine.cpp \
RenamingRules.cpp \
ListThread_InodeAction.cpp
TARGET = $$qtLibraryTarget(copyEngine)
+include(../../../updateqm.pri)
TRANSLATIONS += Languages/fr/translation.ts \
Languages/ar/translation.ts \
Languages/zh/translation.ts \
diff --git a/plugins-alternative/Themes/Clean/interface.pro b/plugins-alternative/Themes/Clean/interface.pro
index 316eb4e..a794407 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/fr/translation.ts \
Languages/ar/translation.ts \
Languages/zh/translation.ts \
diff --git a/plugins-alternative/Themes/Teracopy/interface.pro b/plugins-alternative/Themes/Teracopy/interface.pro
index 37f352d..de396b6 100644
--- a/plugins-alternative/Themes/Teracopy/interface.pro
+++ b/plugins-alternative/Themes/Teracopy/interface.pro
@@ -13,6 +13,7 @@ SOURCES = interface.cpp \
factory.cpp \
TransferModel.cpp
TARGET = $$qtLibraryTarget(interface)
+include(../../../updateqm.pri)
TRANSLATIONS += Languages/fr/translation.ts \
Languages/ar/translation.ts \
Languages/zh/translation.ts \
diff --git a/plugins/CopyEngine/Ultracopier-0.3/copyEngine.pro b/plugins/CopyEngine/Ultracopier-0.3/copyEngine.pro
index 13ab523..68b7eb2 100644
--- a/plugins/CopyEngine/Ultracopier-0.3/copyEngine.pro
+++ b/plugins/CopyEngine/Ultracopier-0.3/copyEngine.pro
@@ -46,6 +46,7 @@ SOURCES = copyEngine.cpp \
RenamingRules.cpp \
ListThread_InodeAction.cpp
TARGET = $$qtLibraryTarget(copyEngine)
+include(../../../updateqm.pri)
TRANSLATIONS += Languages/fr/translation.ts \
Languages/ar/translation.ts \
Languages/zh/translation.ts \
diff --git a/plugins/PluginLoader/catchcopy-v0002/pluginLoader.pro b/plugins/PluginLoader/catchcopy-v0002/pluginLoader.pro
index f383793..9229f31 100755
--- a/plugins/PluginLoader/catchcopy-v0002/pluginLoader.pro
+++ b/plugins/PluginLoader/catchcopy-v0002/pluginLoader.pro
@@ -13,6 +13,7 @@ SOURCES = \
pluginLoader.cpp \
OptionsWidget.cpp
TARGET = $$qtLibraryTarget(pluginLoader)
+include(../../../updateqm.pri)
TRANSLATIONS += Languages/fr/translation.ts \
Languages/ar/translation.ts \
Languages/zh/translation.ts \
diff --git a/plugins/Themes/Oxygen/interface.pro b/plugins/Themes/Oxygen/interface.pro
index dda4098..f0ac34f 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/fr/translation.ts \
Languages/ar/translation.ts \
Languages/zh/translation.ts \
diff --git a/ultracopier.pro b/ultracopier.pro
index dd33bc5..dfdad84 100644
--- a/ultracopier.pro
+++ b/ultracopier.pro
@@ -1,5 +1,6 @@
TEMPLATE = app
QT += network xml
+include(updateqm.pri)
TRANSLATIONS += plugins/Languages/fr/translation.ts \
plugins/Languages/ar/translation.ts \
plugins/Languages/zh/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