feat:add no wrap for generate po

(cherry picked from commit 3b1cd21a1a9e7d3d7736294dbc21bff29c7754bf)

Change-Id: Ie185612f60b6135e7d5169701f40c9482146e6eb
This commit is contained in:
BBL\chuan.he 2025-03-13 12:22:02 +08:00 committed by lane.wei
parent 98dad923f8
commit e411563e13
1 changed files with 2 additions and 2 deletions

View File

@ -505,7 +505,7 @@ find_package(cereal REQUIRED)
set(L10N_DIR "${SLIC3R_RESOURCES_DIR}/i18n")
set(BBL_L18N_DIR "${CMAKE_CURRENT_SOURCE_DIR}/bbl/i18n")
add_custom_target(gettext_make_pot
COMMAND xgettext --keyword=L --keyword=_L --keyword=_u8L --keyword=L_CONTEXT:1,2c --keyword=_L_PLURAL:1,2 --add-comments=TRN --from-code=UTF-8 --no-location --debug --boost
COMMAND xgettext --keyword=L --no-wrap --keyword=_L --keyword=_u8L --keyword=L_CONTEXT:1,2c --keyword=_L_PLURAL:1,2 --add-comments=TRN --from-code=UTF-8 --no-location --debug --boost
-f "${BBL_L18N_DIR}/list.txt"
-o "${BBL_L18N_DIR}/BambuStudio.pot"
COMMAND hintsToPot ${SLIC3R_RESOURCES_DIR} ${BBL_L18N_DIR}
@ -522,7 +522,7 @@ foreach(po_file ${BBL_L10N_PO_FILES})
SET(po_new_file "${po_dir}/BambuStudio_.po")
add_custom_command(
TARGET gettext_merge_po_with_pot PRE_BUILD
COMMAND msgmerge -N -o ${po_file} ${po_file} "${BBL_L18N_DIR}/BambuStudio.pot"
COMMAND msgmerge --no-wrap -N -o ${po_file} ${po_file} "${BBL_L18N_DIR}/BambuStudio.pot"
DEPENDS ${po_file}
)
endforeach()