From e411563e1381c8a36f3babe4a1e84a4abd0fa440 Mon Sep 17 00:00:00 2001 From: "BBL\\chuan.he" Date: Thu, 13 Mar 2025 12:22:02 +0800 Subject: [PATCH] feat:add no wrap for generate po (cherry picked from commit 3b1cd21a1a9e7d3d7736294dbc21bff29c7754bf) Change-Id: Ie185612f60b6135e7d5169701f40c9482146e6eb --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 040317889..19a973357 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()