mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-08 16:57:47 +00:00
16 lines
820 B
CMake
16 lines
820 B
CMake
INCLUDE(TranslationTargets)
|
|
set(XGETTEXT_OPTIONS "--from-code=UTF-8 --sort-by-file --keyword=sgettext --keyword=vgettext --keyword=_n:1,2 --keyword=sngettext:1,2 --keyword=vngettext:1,2")
|
|
|
|
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/pot-update.sh.in ${CMAKE_CURRENT_BINARY_DIR}/pot-update.sh)
|
|
|
|
add_custom_target(update-pot)
|
|
add_custom_target(update-po)
|
|
add_custom_target(update-po4a)
|
|
add_custom_target(update-gmo)
|
|
|
|
set(TRANSLATION_DIRS wesnoth wesnoth-anl wesnoth-aoi wesnoth-did wesnoth-editor wesnoth-ei wesnoth-httt wesnoth-l wesnoth-lib wesnoth-manpages wesnoth-manual wesnoth-multiplayer wesnoth-nr wesnoth-sof wesnoth-sotbe wesnoth-tb wesnoth-thot wesnoth-trow wesnoth-tsg wesnoth-tutorial wesnoth-units wesnoth-utbs)
|
|
|
|
foreach(DIR ${TRANSLATION_DIRS})
|
|
add_subdirectory(${DIR})
|
|
endforeach(DIR ${TRANSLATION_DIRS})
|