ENH: copy pt-BR/BamabuStudio.mo to pt_br

JIRA: NONE

Signed-off-by: Kunlong Ma <kunlong.ma@bambulab.com>
Change-Id: Ib974d498a6a38402a8d5c3252741d4d7d2850af3
This commit is contained in:
Kunlong Ma 2024-03-21 19:10:18 +08:00 committed by Lane.Wei
parent 2c1b0d6510
commit c8f7b3db6f
1 changed files with 8 additions and 0 deletions

View File

@ -538,6 +538,14 @@ foreach(po_file ${BBL_L10N_PO_FILES})
)
endforeach()
# copy pt-BR/BamabuStudio.mo to pt_br/
SET(PT_BR "${L10N_DIR}/pt-BR/BambuStudio.mo")
SET(PT_BR_DST "${L10N_DIR}/pt_br/")
add_custom_command(
TARGET gettext_po_to_mo POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${PT_BR} ${PT_BR_DST}
)
find_package(NLopt 1.4 REQUIRED)