File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ if(GETTEXT_FOUND)
23
23
COMMAND ${XGETTEXT} -C -k_ -s -o "wxMaxima.pot" ${POT_SOURCE_FILES}
24
24
COMMAND ${CMAKE_COMMAND} -E copy "wxMaxima.pot" "${CMAKE_CURRENT_SOURCE_DIR} /wxMaxima.pot"
25
25
COMMENT "Updating the POT-file from the current sourcecode" )
26
-
26
+
27
27
foreach (POFILE ${TRANSLATION_FILES} )
28
28
string (REGEX REPLACE ".*locales/wxMaxima/(.*).po$" "\\ 1" LANG ${POFILE} )
29
29
@@ -36,7 +36,10 @@ if(GETTEXT_FOUND)
36
36
# 'install' message files in the directory "${CMAKE_BINARY_DIR}/locale/..."
37
37
# too (at build time, not at install time), so that running ./wxmaxima-local
38
38
# (without installing it) can find the message files and i18n works.
39
- file (MAKE_DIRECTORY "${CMAKE_BINARY_DIR} /locale/${LANG} " )
39
+ file (MAKE_DIRECTORY "${CMAKE_BINARY_DIR} /locale/${LANG} /LC_MESSAGES" )
40
+ add_custom_target (wxmaxima-local-${LANG} ALL
41
+ COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_BINARY_DIR} /${LANG} .gmo" "${CMAKE_BINARY_DIR} /locale/${LANG} /LC_MESSAGES/wxMaxima.mo"
42
+ DEPENDS "${CMAKE_CURRENT_BINARY_DIR} /${LANG} .gmo" )
40
43
41
44
add_custom_target (
42
45
${LANG} _po
You can’t perform that action at this time.
0 commit comments