Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuSanka <yusanka@gmail.com>2022-01-21 14:34:14 +0300
committerYuSanka <yusanka@gmail.com>2022-01-21 17:31:01 +0300
commitc9dbc1cbbacd2b0c154dcf1e70a8d04723c868cb (patch)
tree409b71340b37b16542cca080837ef641ff7b6367 /CMakeLists.txt
parentfa9a0beec72f180a5226bb2f1203276dc7f37a64 (diff)
Localization: Added missed phrases -> Updated POT and dictionaries for CZ, PL, IT, ES, DE, FR
+ Command to remove obsolite lines is added to gettext_concat_wx_po_with_po and gettext_merge_po_with_pot scripts + POs for CA, KR, NL, BR, RU, TR, UK, ZH are merged with new POT + Updated all MO files
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 095f6f3d1..a37e7a1b9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -496,6 +496,8 @@ foreach(po_file ${L10N_PO_FILES})
add_custom_command(
TARGET gettext_merge_po_with_pot PRE_BUILD
COMMAND msgmerge -N -o ${po_file} ${po_file} "${L10N_DIR}/PrusaSlicer.pot"
+ # delete obsolit lines from resulting PO to avoid conflicts after a merging of it with wxWidgets.po
+ COMMAND msgattrib --no-obsolete -o ${po_file} ${po_file}
DEPENDS ${po_file}
)
endforeach()
@@ -513,7 +515,9 @@ foreach(po_file ${L10N_PO_FILES})
#SET(po_new_file "${po_dir}/PrusaSlicer_.po")
add_custom_command(
TARGET gettext_concat_wx_po_with_po PRE_BUILD
- COMMAND msgcat --use-first -o ${po_file} ${po_file} ${wx_po_file}
+ COMMAND msgcat --use-first -o ${po_file} ${po_file} ${wx_po_file}
+ # delete obsolit lines from resulting PO
+ COMMAND msgattrib --no-obsolete -o ${po_file} ${po_file}
DEPENDS ${po_file}
)
endforeach()