[rkward] i18n: Installation destination for translations was not yet correct.
Thomas Friedrichsmeier
null at kde.org
Wed Apr 18 08:40:21 UTC 2018
Git commit 134d592a7916e10b1ec0d2a1dbdc9c17b79e523a by Thomas Friedrichsmeier.
Committed on 18/04/2018 at 08:40.
Pushed by tfry into branch 'master'.
Installation destination for translations was not yet correct.
CCBUG: 393195
M +2 -2 i18n/CMakeLists.txt
M +1 -1 i18n/compile_po.cmake
https://commits.kde.org/rkward/134d592a7916e10b1ec0d2a1dbdc9c17b79e523a
diff --git a/i18n/CMakeLists.txt b/i18n/CMakeLists.txt
index bf3a4d65..b1c1fce3 100644
--- a/i18n/CMakeLists.txt
+++ b/i18n/CMakeLists.txt
@@ -12,9 +12,9 @@ MACRO(RKHandlePO _PO_FILES)
# Sort files into a proper tree layout during generation, so they can be installed using INSTALL(DIRECTORY ...)
# INSTALL(FILES ... OPTIONAL) will leave empty directories, if file does not exist (was not generated)
IF(${_poid} STREQUAL "rkward")
- SET(_gmoFile ${CMAKE_CURRENT_BINARY_DIR}/main/${_lang}/rkward.mo)
+ SET(_gmoFile ${CMAKE_CURRENT_BINARY_DIR}/main/${_lang}/LC_MESSAGES/rkward.mo)
ELSE(${_poid} STREQUAL "rkward")
- SET(_gmoFile ${CMAKE_CURRENT_BINARY_DIR}/plugins/${_lang}/${_poid}.mo)
+ SET(_gmoFile ${CMAKE_CURRENT_BINARY_DIR}/plugins/${_lang}/LC_MESSAGES/${_poid}.mo)
ENDIF(${_poid} STREQUAL "rkward")
# making the gmo be re-built, when the po changes, but not every time is surprsingly difficult
diff --git a/i18n/compile_po.cmake b/i18n/compile_po.cmake
index 9bcb9a73..ddf29c3b 100644
--- a/i18n/compile_po.cmake
+++ b/i18n/compile_po.cmake
@@ -2,7 +2,7 @@
# this is basically, because ADD_CUSTOM_COMMAND won't capture stdout, and EXECUTE_PROCESS
# can't be made to re-run when the po-file changes.
-# NOTE: Our mutli-step rename strategy may seem convoluted, but it needed to make sure files do not get mixed
+# NOTE: Our multi-step rename strategy may seem convoluted, but it is needed to make sure files do not get mixed
# up during parallel builds!
GET_FILENAME_COMPONENT(TARGETDIR ${_gmoFile} DIRECTORY)
GET_FILENAME_COMPONENT(TARGETNAME ${_gmoFile} NAME)
More information about the rkward-tracker
mailing list