Skip to content

Commit

Permalink
Exclude .js files from translations
Browse files Browse the repository at this point in the history
Those are not Qt-related files, so we don't want it to run over those,
spew errors about not understanding new JS syntax and create bogus
strings to torture translators.
  • Loading branch information
askmeaboutlo0m committed Jul 14, 2024
1 parent efd9951 commit 25be954
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/DrawpileTranslations.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ function(target_add_translations target prefix)

if(UPDATE_TRANSLATIONS)
_create_translation(qm_files "${CMAKE_CURRENT_SOURCE_DIR}/.." ${ts_files}
OPTIONS -no-obsolete -locations relative
OPTIONS -no-obsolete -locations relative -extensions
# Default extensions without .js, those are not Qt-related files.
java,jui,ui,c,c++,cc,cpp,cxx,ch,h,h++,hh,hpp,hxx,qs,qml,qrc
)
else()
_add_translation(qm_files ${ts_files})
Expand Down

0 comments on commit 25be954

Please sign in to comment.