File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ TEMPLATE = subdirs
33SUBDIRS += src
44
55include (version.pri )
6- include (qm_gen.pri )
76
87# Make target to create release tarball. Use 'make tarball'
98tarball.commands += rm -fR ../ $${PROJECT_NAME }- $${PROJECT_VERSION }/ &&
Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ find_package(Qt5 COMPONENTS LinguistTools REQUIRED)
3131qt5_add_translation (QBT_QM_FILES ${QBT_TS_FILES} )
3232
3333get_filename_component (_lang_qrc_src "${CMAKE_CURRENT_SOURCE_DIR } /../lang/lang.qrc" ABSOLUTE )
34- get_filename_component (_lang_qrc_dst "${CMAKE_CURRENT_BINARY_DIR } /../lang.qrc" ABSOLUTE )
35- get_filename_component (_lang_qrc_dst_dir "${CMAKE_CURRENT_BINARY_DIR } /../" ABSOLUTE )
34+ get_filename_component (_lang_qrc_dst "${CMAKE_CURRENT_BINARY_DIR } /../lang/lang .qrc" ABSOLUTE )
35+ get_filename_component (_lang_qrc_dst_dir "${CMAKE_CURRENT_BINARY_DIR } /../lang " ABSOLUTE )
3636
3737message (STATUS "copying ${_lang_qrc_src} -> ${_lang_qrc_dst} " )
3838file (COPY ${_lang_qrc_src} DESTINATION ${_lang_qrc_dst_dir} )
Original file line number Diff line number Diff line change 1- TS_IN = $$fromfile ( src/src.pro , TRANSLATIONS )
2- TS_IN_NOEXT = $$replace (TS_IN ," .ts" ," " )
1+ TRANSLATIONS + = $$files ( qbittorrent_ * .ts )
2+ TS_IN_NOEXT = $$replace (TRANSLATIONS ," .ts" ," " )
33
44isEmpty (QMAKE_LRELEASE ) {
55 win32 :QMAKE_LRELEASE = $$[QT_INSTALL_BINS ]\ \lrelease.exe
@@ -16,6 +16,6 @@ isEmpty(QMAKE_LRELEASE) {
1616message ("Building translations" )
1717for (L,TS_IN_NOEXT ) {
1818 message ("Processing $${L}" )
19- system ("$$QMAKE_LRELEASE -silent src/ $${L}.ts -qm src/ $${L}.qm" )
20- !exists ("src/ $${L}.qm" ):error ("Building translations failed, cannot continue" )
19+ system ("$$QMAKE_LRELEASE -silent $${L}.ts -qm $${L}.qm" )
20+ !exists ("$${L}.qm" ):error ("Building translations failed, cannot continue" )
2121}
Original file line number Diff line number Diff line change @@ -78,6 +78,6 @@ RESOURCES += \
7878 searchengine/searchengine.qrc
7979
8080# Translations
81- TRANSLATIONS += $$ files (lang/qbittorrent_ * .ts )
81+ include (lang/lang.pri )
8282
8383DESTDIR = .
You can’t perform that action at this time.
0 commit comments