Commit 6a145ccf2c1576b6ad4bc244d04d234923f0f1e8

Authored by oliverhaag
1 parent 8efca783

New portuguese translation and automatic qm generation

Showing 1 changed file with 15 additions and 1 deletions
openhantek/OpenHantek.pro
... ... @@ -86,7 +86,9 @@ DISTFILES += \
86 86 $${DOXYFILES}
87 87  
88 88 # Translations
89   -TRANSLATIONS += translations/openhantek_de.ts
  89 +TRANSLATIONS += \
  90 + translations/openhantek_de.ts \
  91 + translations/openhantek_pt.ts
90 92  
91 93 # Program version
92 94 VERSION = 0.2.0
... ... @@ -172,6 +174,18 @@ INSTALLS += \
172 174 target \
173 175 translations
174 176  
  177 +# Custom compiler "lrelease" for qm generation
  178 +isEmpty(QMAKE_LRELEASE) {
  179 + win32: QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\lrelease.exe
  180 + else: QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
  181 +}
  182 +lrelease.input = TRANSLATIONS
  183 +lrelease.output = ${QMAKE_FILE_PATH}/${QMAKE_FILE_BASE}.qm
  184 +lrelease.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN} -qm ${QMAKE_FILE_PATH}/${QMAKE_FILE_BASE}.qm
  185 +lrelease.CONFIG += no_link
  186 +QMAKE_EXTRA_COMPILERS += lrelease
  187 +PRE_TARGETDEPS += compiler_lrelease_make_all
  188 +
175 189 # Custom target "cppcheck" for Cppcheck
176 190 INCLUDEPARAMETERS = $$surround($${INCLUDEPATH} $${INCLUDEPATH_QUOTE}, "-I \"", "\"")
177 191 cppcheck.commands = "cppcheck --enable=all $${INCLUDEPARAMETERS} -q $${SOURCES} --template=\"{file}:{line}: {severity}: {message}\""
... ...