Advertisement
not_anonymous

translations.pri.diff

Feb 27th, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. --- translations/translations.pri
  2. +++ translations/translations.pri
  3. @@ -0,0 +1,22 @@
  4. +# This voodoo comes from the Arora project
  5. +
  6. +INCLUDEPATH += $$PWD
  7. +DEPENDPATH += $$PWD
  8. +VPATH += $$PWD
  9. +
  10. +# ls -1 *.ts | tr '\n' ' '
  11. +TRANSLATIONS += klog_ca.ts klog_es.ts klog_it.ts klog_ja.ts
  12. +isEmpty(QMAKE_LRELEASE) {
  13. + win32:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\lrelease.exe
  14. + else:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
  15. +}
  16. +
  17. +updateqm.input = TRANSLATIONS
  18. +updateqm.output = build/target/translations/${QMAKE_FILE_BASE}.qm
  19. +updateqm.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN} -qm build/target/translations/${QMAKE_FILE_BASE}.qm
  20. +updateqm.CONFIG += no_link target_predeps
  21. +QMAKE_EXTRA_COMPILERS += updateqm
  22. +
  23. +#qmfiles.files = TRANSLATIONS
  24. +#qmfiles.path = Content/Resources
  25. +#QMAKE_BUNDLE_DATA += qmfiles
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement