2011-05-10 17:44:41 +00:00
|
|
|
# This file is part of LyX, the document processor.
|
|
|
|
# Licence details can be found in the file COPYING.
|
|
|
|
#
|
|
|
|
# Copyright (c) 2008-2011 Peter Kümmel, <syntheticpp@gmx.net>
|
|
|
|
# Copyright (c) 2008-2011 Kornel Benko, <Kornel.Benko@berlin.de>
|
|
|
|
#
|
|
|
|
|
|
|
|
project(po)
|
|
|
|
|
|
|
|
include_directories(${TOP_SRC_DIR}/po)
|
|
|
|
|
|
|
|
SET(_lyxname ${PACKAGE})
|
|
|
|
SET(_py_sources)
|
2016-07-24 09:20:08 +00:00
|
|
|
|
2011-05-10 17:44:41 +00:00
|
|
|
macro(add_gettext_python _par _dir)
|
|
|
|
set(_sources)
|
|
|
|
foreach(_arg ${ARGN})
|
|
|
|
file(GLOB _s1 ${TOP_SRC_DIR}/${_dir}/${_arg})
|
|
|
|
list(SORT _s1)
|
|
|
|
list(APPEND _sources ${_s1})
|
|
|
|
endforeach(_arg)
|
|
|
|
if (${_par} MATCHES "layouttranslations")
|
|
|
|
SET(_dst "${CMAKE_CURRENT_BINARY_DIR}/${_par}")
|
|
|
|
else ()
|
|
|
|
SET(_dst "${CMAKE_CURRENT_BINARY_DIR}/${_par}_l10n.pot")
|
|
|
|
endif()
|
|
|
|
SET(_tmp_src_files "${CMAKE_CURRENT_BINARY_DIR}/${_par}_tmp_files")
|
|
|
|
SET(_src_files "${CMAKE_CURRENT_BINARY_DIR}/${_par}_files")
|
|
|
|
file(WRITE ${_tmp_src_files} "")
|
|
|
|
foreach(_s ${_sources})
|
|
|
|
FILE(APPEND ${_tmp_src_files} "${_s}\n")
|
|
|
|
endforeach()
|
|
|
|
if(${_par} MATCHES "^\(.*\)_[0-9]+$")
|
|
|
|
set(_par1 ${CMAKE_MATCH_1})
|
|
|
|
else()
|
|
|
|
set(_par1 ${_par})
|
|
|
|
endif()
|
|
|
|
ADD_CUSTOM_COMMAND(
|
|
|
|
OUTPUT ${_src_files}
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${_tmp_src_files} ${_src_files}
|
|
|
|
DEPENDS ${_tmp_src_files}
|
|
|
|
)
|
|
|
|
if (${_par} MATCHES "layouttranslations")
|
2016-07-24 09:20:08 +00:00
|
|
|
# lyx_pot.py requires the module "polib" if using target layouttranslations1,
|
|
|
|
# so we have to check for it
|
2016-07-27 05:34:50 +00:00
|
|
|
find_python_module("polib")
|
|
|
|
if ("${LYX_PY_POLIB}" STREQUAL "")
|
|
|
|
message(STATUS "You will be unable to update layouttranslations file")
|
|
|
|
endif()
|
2011-05-10 17:44:41 +00:00
|
|
|
ADD_CUSTOM_COMMAND(
|
|
|
|
OUTPUT "${_dst}"
|
2016-07-23 18:30:45 +00:00
|
|
|
COMMAND ${CMAKE_COMMAND}
|
|
|
|
"-DTOP_SRC_DIR=${TOP_SRC_DIR}"
|
|
|
|
"-DDestFile=${_dst}"
|
|
|
|
"-DLYX_PYTHON_EXECUTABLE=${LYX_PYTHON_EXECUTABLE}"
|
|
|
|
"-DParType=${_par1}"
|
|
|
|
"-DSources=${_src_files}"
|
2016-07-27 05:58:56 +00:00
|
|
|
"-DLYX_PY_POLIB=${LYX_PY_POLIB}"
|
2016-07-23 18:30:45 +00:00
|
|
|
-P "${TOP_SRC_DIR}/po/CreateLayoutTranslations.cmake"
|
2018-05-07 11:29:57 +00:00
|
|
|
DEPENDS ${_sources} ${_src_files} "${TOP_SRC_DIR}/lib/layouttranslations" "${TOP_SRC_DIR}/po/lyx_pot.py"
|
2011-05-10 17:44:41 +00:00
|
|
|
COMMENT "${LYX_PYTHON_EXECUTABLE} ${TOP_SRC_DIR}/po/lyx_pot.py -b ${TOP_SRC_DIR} -o ${_dst} -t ${_par1} --src_file=${_src_files}"
|
|
|
|
)
|
|
|
|
ADD_CUSTOM_TARGET(layouttranslations1 DEPENDS "${_dst}")
|
2012-10-22 16:12:29 +00:00
|
|
|
set_target_properties(layouttranslations1 PROPERTIES FOLDER "i18n")
|
2011-05-10 17:44:41 +00:00
|
|
|
if (LYX_DATA_SUBDIR STREQUAL "")
|
|
|
|
install(FILES "${TOP_SRC_DIR}/lib/layouttranslations" DESTINATION .)
|
|
|
|
else()
|
|
|
|
install(FILES "${TOP_SRC_DIR}/lib/layouttranslations" DESTINATION ${LYX_DATA_SUBDIR})
|
|
|
|
endif()
|
|
|
|
else()
|
|
|
|
ADD_CUSTOM_COMMAND(
|
|
|
|
OUTPUT "${_dst}"
|
|
|
|
COMMAND ${LYX_PYTHON_EXECUTABLE}
|
|
|
|
ARGS "${TOP_SRC_DIR}/po/lyx_pot.py" -b "${TOP_SRC_DIR}" -o "${_dst}" -t ${_par1} "--src_file=${_src_files}"
|
2018-05-07 11:29:57 +00:00
|
|
|
DEPENDS ${_sources} ${_src_files} "${TOP_SRC_DIR}/po/lyx_pot.py"
|
2011-05-10 17:44:41 +00:00
|
|
|
COMMENT "${LYX_PYTHON_EXECUTABLE} ${TOP_SRC_DIR}/po/lyx_pot.py -b ${TOP_SRC_DIR} -o ${_dst} -t ${_par1} --src_file=${_src_files}"
|
|
|
|
)
|
|
|
|
LIST(APPEND _py_sources "${_dst}")
|
|
|
|
endif()
|
|
|
|
SET_SOURCE_FILES_PROPERTIES("${_dst}" GENERATED)
|
|
|
|
SET_SOURCE_FILES_PROPERTIES("${_src_files}" GENERATED)
|
|
|
|
endmacro(add_gettext_python)
|
|
|
|
|
|
|
|
SET_SOURCE_FILES_PROPERTIES("${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.cat.pot" GENERATED)
|
|
|
|
SET_SOURCE_FILES_PROPERTIES("${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.fmt.pot" GENERATED)
|
|
|
|
SET_SOURCE_FILES_PROPERTIES("${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.pot" GENERATED)
|
2018-06-06 15:03:12 +00:00
|
|
|
if (UNIX)
|
|
|
|
# create symbolic links for external lokalizations programs
|
|
|
|
# to be able to find the referenced sources if used on
|
|
|
|
# built po-files
|
|
|
|
foreach (_dir lib src)
|
|
|
|
execute_process(
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E create_symlink "${TOP_SRC_DIR}/${_dir}" "${CMAKE_CURRENT_BINARY_DIR}/${_dir}")
|
|
|
|
endforeach()
|
|
|
|
endif()
|
2011-05-10 17:44:41 +00:00
|
|
|
|
2019-07-16 12:10:08 +00:00
|
|
|
add_gettext_python(layouttranslations lib layouts/*.layout layouts/*.inc layouts/*.module citeengines/*.citeengine)
|
2011-05-10 17:44:41 +00:00
|
|
|
add_gettext_python(languages lib languages)
|
2019-07-16 12:10:08 +00:00
|
|
|
add_gettext_python(layouts lib layouts/*.layout layouts/*.inc layouts/*.module citeengines/*.citeengine)
|
2012-08-16 20:36:32 +00:00
|
|
|
add_gettext_python(latexfonts lib latexfonts)
|
2011-05-10 17:44:41 +00:00
|
|
|
add_gettext_python(encodings lib encodings)
|
|
|
|
add_gettext_python(ui lib/ui *.ui *.inc)
|
2017-03-26 13:32:01 +00:00
|
|
|
add_gettext_python(external lib/xtemplates *.xtemplate)
|
2011-05-10 17:44:41 +00:00
|
|
|
add_gettext_python(formats lib configure.py)
|
2019-07-16 12:10:08 +00:00
|
|
|
add_gettext_python(tabletemplates lib tabletemplates/*.lyx)
|
2019-07-20 22:44:17 +00:00
|
|
|
add_gettext_python(qt src/frontends/qt/ui *.ui)
|
2020-09-07 19:12:22 +00:00
|
|
|
add_gettext_python(examples_templates lib examples/[a-zA-Z]* templates/[a-zA-Z]*)
|
2011-05-10 17:44:41 +00:00
|
|
|
|
|
|
|
ADD_CUSTOM_COMMAND(
|
|
|
|
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.cat.pot"
|
|
|
|
COMMAND ${LYX_PYTHON_EXECUTABLE}
|
2014-10-24 16:53:58 +00:00
|
|
|
ARGS "${TOP_CMAKE_PATH}/po/cat.py" ${_py_sources} > "${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.cat_tmp.pot"
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.cat_tmp.pot" "${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.cat.pot"
|
2011-05-10 17:44:41 +00:00
|
|
|
DEPENDS ${_py_sources}
|
|
|
|
)
|
|
|
|
|
|
|
|
ADD_CUSTOM_COMMAND(
|
|
|
|
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.fmt.pot"
|
|
|
|
COMMAND ${GETTEXT_MSGUNIQ_EXECUTABLE}
|
2014-10-24 16:53:58 +00:00
|
|
|
ARGS -o "${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.fmt_tmp.pot" "${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.cat.pot"
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.fmt_tmp.pot" "${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.fmt.pot"
|
2011-05-10 17:44:41 +00:00
|
|
|
DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.cat.pot"
|
|
|
|
)
|
|
|
|
|
|
|
|
SET(_potfiles_dep)
|
|
|
|
|
2014-10-24 16:53:58 +00:00
|
|
|
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/POTFILES.in.tmp "")
|
2011-05-10 17:44:41 +00:00
|
|
|
file(GLOB_RECURSE _tmp_potfiles RELATIVE ${TOP_SRC_DIR}/ ${TOP_SRC_DIR}/src/*.h ${TOP_SRC_DIR}/src/*.cpp ${TOP_SRC_DIR}/src/*.cpp.in)
|
|
|
|
list(SORT _tmp_potfiles)
|
2011-09-29 11:55:29 +00:00
|
|
|
# list(REMOVE_ITEM _tmp_potfiles src/support/Package.cpp)
|
2011-05-10 17:44:41 +00:00
|
|
|
|
|
|
|
foreach(_f ${_tmp_potfiles})
|
|
|
|
# we don't need to select only relevant files because the outcome of xgettext
|
|
|
|
# will stay the same.
|
|
|
|
# Relevant files are files containing the string '_(".*")'
|
|
|
|
LIST(APPEND _potfiles_dep "${TOP_SRC_DIR}/${_f}")
|
2014-10-24 16:53:58 +00:00
|
|
|
file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/POTFILES.in.tmp "${_f}\n")
|
2011-05-10 17:44:41 +00:00
|
|
|
endforeach(_f)
|
|
|
|
|
2014-10-24 16:53:58 +00:00
|
|
|
execute_process(
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_CURRENT_BINARY_DIR}/POTFILES.in.tmp" "${CMAKE_CURRENT_BINARY_DIR}/POTFILES.in"
|
2014-10-23 14:49:41 +00:00
|
|
|
)
|
|
|
|
|
2020-09-07 19:12:22 +00:00
|
|
|
if (GETTEXT_MSGCAT_EXECUTABLE)
|
|
|
|
ADD_CUSTOM_COMMAND(
|
|
|
|
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.pot"
|
|
|
|
COMMAND ${GETTEXT_XGETTEXT_EXECUTABLE}
|
|
|
|
--from-code=UTF-8
|
|
|
|
--default-domain=${_lyxname} --directory=${TOP_SRC_DIR}
|
|
|
|
--add-comments=TRANSLATORS:
|
|
|
|
--language=C++ --keyword=_ --keyword=N_ --keyword=B_ --keyword=qt_
|
|
|
|
--files-from=${CMAKE_CURRENT_BINARY_DIR}/POTFILES.in
|
|
|
|
--copyright-holder="LyX Developers" --msgid-bugs-address=lyx-devel@lists.lyx.org
|
|
|
|
-o "${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.src.pot"
|
|
|
|
COMMAND ${GETTEXT_MSGCAT_EXECUTABLE} "${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.src.pot" "${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.fmt.pot" -o "${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.pot"
|
|
|
|
DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.fmt.pot" ${_potfiles_dep}
|
|
|
|
)
|
2011-05-10 17:44:41 +00:00
|
|
|
|
2020-09-07 19:12:22 +00:00
|
|
|
else()
|
|
|
|
ADD_CUSTOM_COMMAND(
|
|
|
|
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.pot"
|
|
|
|
COMMAND ${CMAKE_COMMAD} -E copy "${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.fmt.pot" "${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.pot"
|
|
|
|
COMMAND ${GETTEXT_XGETTEXT_EXECUTABLE}
|
|
|
|
--from-code=UTF-8
|
|
|
|
--default-domain=${_lyxname} --directory=${TOP_SRC_DIR}
|
|
|
|
--add-comments=TRANSLATORS:
|
|
|
|
--language=C++ --join-existing --keyword=_ --keyword=N_ --keyword=B_ --keyword=qt_
|
|
|
|
--files-from=${CMAKE_CURRENT_BINARY_DIR}/POTFILES.in
|
|
|
|
--copyright-holder="LyX Developers" --msgid-bugs-address=lyx-devel@lists.lyx.org
|
|
|
|
-o "${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.pot"
|
|
|
|
DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.fmt.pot" ${_potfiles_dep}
|
|
|
|
)
|
|
|
|
|
|
|
|
endif()
|
2011-05-10 17:44:41 +00:00
|
|
|
#
|
|
|
|
# We have to copy the po-files first,
|
|
|
|
# otherwise they would be modified (inside the macro GETTEXT_CREATE_TRANSLATIONS())
|
2012-08-16 20:36:32 +00:00
|
|
|
# This makes the "git pull" on po-files work again
|
2011-05-10 17:44:41 +00:00
|
|
|
file(GLOB LYX_BASE_PO_FILES RELATIVE ${TOP_SRC_DIR}/po ${TOP_SRC_DIR}/po/*.po)
|
2012-07-19 09:54:22 +00:00
|
|
|
list(SORT LYX_BASE_PO_FILES)
|
2011-05-10 17:44:41 +00:00
|
|
|
set(LYX_PO_FILES)
|
|
|
|
SET(LYX_UPDATED_PO_FILES)
|
|
|
|
SET(LYX_DEST_PO ${TOP_SRC_DIR}/po)
|
|
|
|
|
2012-07-20 07:47:22 +00:00
|
|
|
set(CONFIGURED_LANGUAGES) # from file LINGUAS
|
|
|
|
set(INSTALLED_LANGUAGES) # from names of existing po-files
|
|
|
|
|
|
|
|
file(STRINGS "${TOP_SRC_DIR}/po/LINGUAS" _lang_lines)
|
|
|
|
foreach(_c_l ${_lang_lines})
|
|
|
|
if(NOT _c_l MATCHES "^#.*")
|
|
|
|
string(REPLACE " " ";" _c_l ${_c_l}) #Split ${_c_l}
|
|
|
|
list(APPEND CONFIGURED_LANGUAGES ${_c_l})
|
|
|
|
endif()
|
|
|
|
endforeach(_c_l)
|
|
|
|
|
2011-05-10 17:44:41 +00:00
|
|
|
foreach(_pofile ${LYX_BASE_PO_FILES})
|
2012-07-20 07:47:22 +00:00
|
|
|
string(REGEX REPLACE "^(.*)\\.po$" "\\1" _inst_lng ${_pofile})
|
|
|
|
list(FIND CONFIGURED_LANGUAGES ${_inst_lng} _lng_idx)
|
|
|
|
if(_lng_idx GREATER -1)
|
2013-06-02 09:38:27 +00:00
|
|
|
list(APPEND INSTALLED_LANGUAGES ${_inst_lng})
|
2012-07-20 07:47:22 +00:00
|
|
|
endif()
|
2011-05-10 17:44:41 +00:00
|
|
|
add_custom_command(
|
|
|
|
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_pofile}
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy ${TOP_SRC_DIR}/po/${_pofile} ${CMAKE_CURRENT_BINARY_DIR}/${_pofile}
|
2012-08-16 20:36:32 +00:00
|
|
|
DEPENDS ${TOP_SRC_DIR}/po/${_pofile}
|
2011-05-10 17:44:41 +00:00
|
|
|
)
|
|
|
|
list(APPEND LYX_PO_FILES ${CMAKE_CURRENT_BINARY_DIR}/${_pofile})
|
|
|
|
endforeach(_pofile)
|
|
|
|
|
2014-02-03 16:27:07 +00:00
|
|
|
FIND_PROGRAM(LYX_GITVERSION git)
|
2013-06-02 09:38:27 +00:00
|
|
|
set(LYX_UPDATED_GMO_FILES)
|
|
|
|
foreach(_gmo_base ${INSTALLED_LANGUAGES})
|
|
|
|
set(_gmo ${_gmo_base}.gmo)
|
2014-02-04 16:42:26 +00:00
|
|
|
set(_tobeupdated "${CMAKE_CURRENT_BINARY_DIR}/${_gmo}.tobeupdated")
|
|
|
|
list(APPEND LYX_UPDATED_GMO_FILES "${_tobeupdated}")
|
2014-02-03 16:27:07 +00:00
|
|
|
if(LYX_GITVERSION)
|
|
|
|
add_custom_command(
|
2014-02-04 16:42:26 +00:00
|
|
|
OUTPUT "${_tobeupdated}"
|
|
|
|
COMMAND "${LYX_GITVERSION}" "status" "--porcelain" "${_gmo_base}.po" ">" "${_tobeupdated}"
|
2014-02-03 16:27:07 +00:00
|
|
|
COMMAND ${LYX_PYTHON_EXECUTABLE} "${TOP_CMAKE_PATH}/po/update-gmo.py"
|
2014-02-04 16:42:26 +00:00
|
|
|
"${_tobeupdated}"
|
2014-02-03 16:27:07 +00:00
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/${_gmo}"
|
|
|
|
"${LYX_DEST_PO}/${_gmo}"
|
|
|
|
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
|
|
|
|
DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/${_gmo}"
|
|
|
|
)
|
|
|
|
else()
|
|
|
|
add_custom_command(
|
2014-02-04 16:42:26 +00:00
|
|
|
OUTPUT "${_tobeupdated}"
|
2014-02-03 16:27:07 +00:00
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_CURRENT_BINARY_DIR}/${_gmo}" "${LYX_DEST_PO}/${_gmo}"
|
2014-02-04 16:42:26 +00:00
|
|
|
COMMAND ${CMAKE_COMMAND} -E touch "${_tobeupdated}"
|
2014-02-03 16:27:07 +00:00
|
|
|
DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/${_gmo}"
|
|
|
|
)
|
|
|
|
endif()
|
2013-06-02 09:38:27 +00:00
|
|
|
endforeach()
|
|
|
|
|
2011-05-15 21:22:07 +00:00
|
|
|
set(LYX_UPDATED_PO_FILES)
|
2011-05-10 17:44:41 +00:00
|
|
|
foreach(_pofile ${LYX_BASE_PO_FILES})
|
2011-10-21 23:14:35 +00:00
|
|
|
if(WIN32)
|
|
|
|
add_custom_command(
|
|
|
|
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_pofile}.copied
|
|
|
|
COMMAND ${LYX_PYTHON_EXECUTABLE}
|
2012-11-02 12:33:22 +00:00
|
|
|
ARGS "${TOP_CMAKE_PATH}/po/unix2dos.py" "${CMAKE_CURRENT_BINARY_DIR}/${_pofile}"
|
2011-10-21 23:14:35 +00:00
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_BINARY_DIR}/${_pofile} ${LYX_DEST_PO}/${_pofile}
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E touch ${_pofile}.copied
|
|
|
|
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${_pofile}
|
|
|
|
)
|
|
|
|
else()
|
|
|
|
add_custom_command(
|
|
|
|
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_pofile}.copied
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_BINARY_DIR}/${_pofile} ${LYX_DEST_PO}/${_pofile}
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E touch ${_pofile}.copied
|
|
|
|
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${_pofile}
|
|
|
|
)
|
|
|
|
endif()
|
2011-05-10 17:44:41 +00:00
|
|
|
list(APPEND LYX_UPDATED_PO_FILES ${CMAKE_CURRENT_BINARY_DIR}/${_pofile}.copied)
|
|
|
|
endforeach(_pofile)
|
|
|
|
|
|
|
|
if(LYX_CPACK OR LYX_INSTALL)
|
|
|
|
set(_addALLOption ALL)
|
|
|
|
endif()
|
|
|
|
GETTEXT_CREATE_TRANSLATIONS(${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.pot ${_addALLOption} ${LYX_PO_FILES})
|
|
|
|
|
2011-05-15 21:22:07 +00:00
|
|
|
# Create a new target to remerge po files
|
2011-05-10 17:44:41 +00:00
|
|
|
# ALL omitted here, to prevent from automatic creation
|
2014-02-03 16:27:07 +00:00
|
|
|
ADD_CUSTOM_TARGET(update-gmo DEPENDS ${LYX_UPDATED_GMO_FILES})
|
2013-06-02 09:38:27 +00:00
|
|
|
ADD_CUSTOM_TARGET(update-po DEPENDS ${LYX_UPDATED_PO_FILES} ${LYX_UPDATED_GMO_FILES})
|
2014-02-03 16:27:07 +00:00
|
|
|
set_target_properties(update-po update-gmo PROPERTIES FOLDER "i18n")
|
2011-05-15 21:22:07 +00:00
|
|
|
add_dependencies(update-po translations)
|
2024-03-20 10:44:22 +00:00
|
|
|
add_dependencies(update-gmo translations)
|
|
|
|
add_dependencies(update-gmo update-po)
|
2011-05-10 17:44:41 +00:00
|
|
|
|