Skip to content

Commit

Permalink
Re-enable translations to fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
godismyjudge95 committed Feb 28, 2024
1 parent 216f274 commit f4d636b
Showing 1 changed file with 42 additions and 42 deletions.
84 changes: 42 additions & 42 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -97,48 +97,48 @@ add_subdirectory(widgets)
add_subdirectory(tools)


# set(FLAMESHOT_TS_FILES
# ${CMAKE_SOURCE_DIR}/data/translations/Internationalization_bg.ts
# ${CMAKE_SOURCE_DIR}/data/translations/Internationalization_ca.ts
# ${CMAKE_SOURCE_DIR}/data/translations/Internationalization_cs.ts
# ${CMAKE_SOURCE_DIR}/data/translations/Internationalization_de_DE.ts
# ${CMAKE_SOURCE_DIR}/data/translations/Internationalization_el.ts
# ${CMAKE_SOURCE_DIR}/data/translations/Internationalization_es.ts
# ${CMAKE_SOURCE_DIR}/data/translations/Internationalization_eu.ts
# ${CMAKE_SOURCE_DIR}/data/translations/Internationalization_fa.ts
# ${CMAKE_SOURCE_DIR}/data/translations/Internationalization_fi.ts
# ${CMAKE_SOURCE_DIR}/data/translations/Internationalization_fr.ts
# ${CMAKE_SOURCE_DIR}/data/translations/Internationalization_gl.ts
# ${CMAKE_SOURCE_DIR}/data/translations/Internationalization_grc.ts
# ${CMAKE_SOURCE_DIR}/data/translations/Internationalization_he.ts
# ${CMAKE_SOURCE_DIR}/data/translations/Internationalization_hu.ts
# ${CMAKE_SOURCE_DIR}/data/translations/Internationalization_id.ts
# ${CMAKE_SOURCE_DIR}/data/translations/Internationalization_it_IT.ts
# ${CMAKE_SOURCE_DIR}/data/translations/Internationalization_ja.ts
# ${CMAKE_SOURCE_DIR}/data/translations/Internationalization_ka.ts
# ${CMAKE_SOURCE_DIR}/data/translations/Internationalization_ko.ts
# ${CMAKE_SOURCE_DIR}/data/translations/Internationalization_nb_NO.ts
# ${CMAKE_SOURCE_DIR}/data/translations/Internationalization_nl_NL.ts
# ${CMAKE_SOURCE_DIR}/data/translations/Internationalization_nl.ts
# ${CMAKE_SOURCE_DIR}/data/translations/Internationalization_pl.ts
# ${CMAKE_SOURCE_DIR}/data/translations/Internationalization_pt_BR.ts
# ${CMAKE_SOURCE_DIR}/data/translations/Internationalization_ru.ts
# ${CMAKE_SOURCE_DIR}/data/translations/Internationalization_sk.ts
# ${CMAKE_SOURCE_DIR}/data/translations/Internationalization_sr_SP.ts
# ${CMAKE_SOURCE_DIR}/data/translations/Internationalization_sv_SE.ts
# ${CMAKE_SOURCE_DIR}/data/translations/Internationalization_tr.ts
# ${CMAKE_SOURCE_DIR}/data/translations/Internationalization_uk.ts
# ${CMAKE_SOURCE_DIR}/data/translations/Internationalization_vi.ts
# ${CMAKE_SOURCE_DIR}/data/translations/Internationalization_zh_CN.ts
# ${CMAKE_SOURCE_DIR}/data/translations/Internationalization_zh_HK.ts
# ${CMAKE_SOURCE_DIR}/data/translations/Internationalization_zh_TW.ts
# )

# if (GENERATE_TS)
# qt5_create_translation(QM_FILES ${CMAKE_SOURCE_DIR} ${FLAMESHOT_TS_FILES})
# else ()
# qt5_add_translation(QM_FILES ${FLAMESHOT_TS_FILES})
# endif ()
set(FLAMESHOT_TS_FILES
${CMAKE_SOURCE_DIR}/data/translations/Internationalization_bg.ts
${CMAKE_SOURCE_DIR}/data/translations/Internationalization_ca.ts
${CMAKE_SOURCE_DIR}/data/translations/Internationalization_cs.ts
${CMAKE_SOURCE_DIR}/data/translations/Internationalization_de_DE.ts
${CMAKE_SOURCE_DIR}/data/translations/Internationalization_el.ts
${CMAKE_SOURCE_DIR}/data/translations/Internationalization_es.ts
${CMAKE_SOURCE_DIR}/data/translations/Internationalization_eu.ts
${CMAKE_SOURCE_DIR}/data/translations/Internationalization_fa.ts
${CMAKE_SOURCE_DIR}/data/translations/Internationalization_fi.ts
${CMAKE_SOURCE_DIR}/data/translations/Internationalization_fr.ts
${CMAKE_SOURCE_DIR}/data/translations/Internationalization_gl.ts
${CMAKE_SOURCE_DIR}/data/translations/Internationalization_grc.ts
${CMAKE_SOURCE_DIR}/data/translations/Internationalization_he.ts
${CMAKE_SOURCE_DIR}/data/translations/Internationalization_hu.ts
${CMAKE_SOURCE_DIR}/data/translations/Internationalization_id.ts
${CMAKE_SOURCE_DIR}/data/translations/Internationalization_it_IT.ts
${CMAKE_SOURCE_DIR}/data/translations/Internationalization_ja.ts
${CMAKE_SOURCE_DIR}/data/translations/Internationalization_ka.ts
${CMAKE_SOURCE_DIR}/data/translations/Internationalization_ko.ts
${CMAKE_SOURCE_DIR}/data/translations/Internationalization_nb_NO.ts
${CMAKE_SOURCE_DIR}/data/translations/Internationalization_nl_NL.ts
${CMAKE_SOURCE_DIR}/data/translations/Internationalization_nl.ts
${CMAKE_SOURCE_DIR}/data/translations/Internationalization_pl.ts
${CMAKE_SOURCE_DIR}/data/translations/Internationalization_pt_BR.ts
${CMAKE_SOURCE_DIR}/data/translations/Internationalization_ru.ts
${CMAKE_SOURCE_DIR}/data/translations/Internationalization_sk.ts
${CMAKE_SOURCE_DIR}/data/translations/Internationalization_sr_SP.ts
${CMAKE_SOURCE_DIR}/data/translations/Internationalization_sv_SE.ts
${CMAKE_SOURCE_DIR}/data/translations/Internationalization_tr.ts
${CMAKE_SOURCE_DIR}/data/translations/Internationalization_uk.ts
${CMAKE_SOURCE_DIR}/data/translations/Internationalization_vi.ts
${CMAKE_SOURCE_DIR}/data/translations/Internationalization_zh_CN.ts
${CMAKE_SOURCE_DIR}/data/translations/Internationalization_zh_HK.ts
${CMAKE_SOURCE_DIR}/data/translations/Internationalization_zh_TW.ts
)

if (GENERATE_TS)
qt5_create_translation(QM_FILES ${CMAKE_SOURCE_DIR} ${FLAMESHOT_TS_FILES})
else ()
qt5_add_translation(QM_FILES ${FLAMESHOT_TS_FILES})
endif ()

target_sources(
flameshot
Expand Down

0 comments on commit f4d636b

Please sign in to comment.