Skip to content

Commit

Permalink
Update all TS files when updating translation files
Browse files Browse the repository at this point in the history
  • Loading branch information
Bionus committed Jul 14, 2022
1 parent 4e1edfd commit 077553b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/languages/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set_directory_properties(PROPERTIES CLEAN_NO_CUSTOM 1) # Don't delete TS files
find_package(Qt5 COMPONENTS LinguistTools REQUIRED)

# Get two separate lists of TS files: one with only 'YourLanguage', and another with all other translations
set(TS_FILES_FOR_TS "${CMAKE_CURRENT_SOURCE_DIR}/YourLanguage.ts")
file(GLOB TS_FILES_FOR_TS "*.ts")
file(GLOB TS_FILES_FOR_QM "*.ts")
include(ListFilterRegex)
listFilterRegex(TS_FILES_FOR_QM "YourLanguage.ts$")
Expand Down

0 comments on commit 077553b

Please sign in to comment.