diff options
| -rw-r--r-- | CMakeScripts/ConfigPaths.cmake | 2 | ||||
| -rw-r--r-- | CMakeScripts/DefineDependsandFlags.cmake | 2 | ||||
| -rw-r--r-- | po/CMakeLists.txt | 4 |
3 files changed, 5 insertions, 3 deletions
diff --git a/CMakeScripts/ConfigPaths.cmake b/CMakeScripts/ConfigPaths.cmake index e10625294..dd45ccf1c 100644 --- a/CMakeScripts/ConfigPaths.cmake +++ b/CMakeScripts/ConfigPaths.cmake @@ -8,7 +8,7 @@ if(WIN32) set(INKSCAPE_DATADIR "") # can be set via the environment variable INKSCAPE_DATADIR at runtime - set(PACKAGE_LOCALE_DIR "\\\\share\\\\locale") + set(PACKAGE_LOCALE_DIR "share/locale") set(SHARE_INSTALL "share" CACHE STRING "Data file install path. Must be a relative path (from CMAKE_INSTALL_PREFIX), with no trailing slash.") set(INKSCAPE_SHARE_INSTALL "${SHARE_INSTALL}") # share/inkscape goes directly into /share on Windows diff --git a/CMakeScripts/DefineDependsandFlags.cmake b/CMakeScripts/DefineDependsandFlags.cmake index 801612c6b..a8230fea7 100644 --- a/CMakeScripts/DefineDependsandFlags.cmake +++ b/CMakeScripts/DefineDependsandFlags.cmake @@ -340,7 +340,7 @@ if(WITH_NLS) if(INTLTOOL-UPDATE) message(STATUS "Found íntltool. inkscape.pot will be re-created if missing.") else() - message(STATUS "Did not find íntltool. inkscape.pot can't be re-created.") + message(STATUS "Did not find intltool. inkscape.pot can't be re-created.") endif() endif(WITH_NLS) diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt index 5abdc91bf..e24407634 100644 --- a/po/CMakeLists.txt +++ b/po/CMakeLists.txt @@ -4,7 +4,9 @@ foreach(language ${LANGUAGES}) string(REGEX REPLACE "(.+(\\\\|/))+" "" language ${language}) string(REGEX REPLACE "\\.po$" "" language ${language}) set(pofile ${CMAKE_CURRENT_SOURCE_DIR}/${language}.po) - GETTEXT_PROCESS_PO_FILES(${language} ALL INSTALL_DESTINATION "share/locale/" PO_FILES ${pofile}) + set(gmofile ${CMAKE_CURRENT_BINARY_DIR}/${language}.gmo) + GETTEXT_PROCESS_PO_FILES(${language} ALL PO_FILES ${pofile}) + install(FILES ${gmofile} DESTINATION "${PACKAGE_LOCALE_DIR}/${language}/LC_MESSAGES/" RENAME ${CMAKE_PROJECT_NAME}.mo) endforeach(language) |
