Translations update
This commit is contained in:
parent
e0eef1de2a
commit
241c258489
|
@ -8,6 +8,14 @@ find_package(Git)
|
||||||
find_package(Gettext)
|
find_package(Gettext)
|
||||||
|
|
||||||
if (GIT_FOUND)
|
if (GIT_FOUND)
|
||||||
|
# detect current git branch
|
||||||
|
execute_process(
|
||||||
|
COMMAND ${GIT_EXECUTABLE} symbolic-ref --short -q HEAD
|
||||||
|
COMMAND tr -d '[:space:]'
|
||||||
|
OUTPUT_VARIABLE CURRENT_BRANCH
|
||||||
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
# output _weblate-clone is never created so the clonning of weblate repo is always processed
|
# output _weblate-clone is never created so the clonning of weblate repo is always processed
|
||||||
# and fresh *.po files are used
|
# and fresh *.po files are used
|
||||||
add_custom_command(OUTPUT _weblate-clone
|
add_custom_command(OUTPUT _weblate-clone
|
||||||
|
@ -20,8 +28,8 @@ if (GIT_FOUND)
|
||||||
add_custom_target(gettext-update
|
add_custom_target(gettext-update
|
||||||
COMMENT "Updating translation files from weblate repo"
|
COMMENT "Updating translation files from weblate repo"
|
||||||
|
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy ${WEBLATE_REPO_PATH}/*.po .
|
COMMAND ${CMAKE_COMMAND} -E copy ${WEBLATE_REPO_PATH}/${CURRENT_BRANCH}/*.po .
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy ${WEBLATE_REPO_PATH}/${PROJECT_NAME}.pot .
|
COMMAND ${CMAKE_COMMAND} -E copy ${WEBLATE_REPO_PATH}/${CURRENT_BRANCH}/${PROJECT_NAME}.pot .
|
||||||
COMMAND ${CMAKE_SOURCE_DIR}/scripts/sanitize_po_files.py *.po
|
COMMAND ${CMAKE_SOURCE_DIR}/scripts/sanitize_po_files.py *.po
|
||||||
|
|
||||||
DEPENDS _weblate-clone
|
DEPENDS _weblate-clone
|
||||||
|
|
667
po/dnf.pot
667
po/dnf.pot
File diff suppressed because it is too large
Load Diff
698
po/en_GB.po
698
po/en_GB.po
File diff suppressed because it is too large
Load Diff
739
po/pt_BR.po
739
po/pt_BR.po
File diff suppressed because it is too large
Load Diff
672
po/sr@latin.po
672
po/sr@latin.po
File diff suppressed because it is too large
Load Diff
693
po/zh_CN.po
693
po/zh_CN.po
File diff suppressed because it is too large
Load Diff
726
po/zh_TW.po
726
po/zh_TW.po
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue