aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNils Dagsson Moskopp <nils@dieweltistgarnichtso.net>2011-07-21 07:33:34 -0700
committerNils Dagsson Moskopp <nils@dieweltistgarnichtso.net>2011-07-21 07:33:34 -0700
commit89bbff18e5a08825bf9f131d88b1c3fdcf031849 (patch)
tree5af7ab5a5bcab27175c6ab2486a0a04b91b03b75 /src
parent5388e8b1243183cbf1806a657d580621e6b9b7c8 (diff)
parent3f4f844eeb8ae8314c00fbd296997f761cd83e21 (diff)
downloadminetest-89bbff18e5a08825bf9f131d88b1c3fdcf031849.tar.gz
minetest-89bbff18e5a08825bf9f131d88b1c3fdcf031849.tar.bz2
minetest-89bbff18e5a08825bf9f131d88b1c3fdcf031849.zip
Merge pull request #29 from cisoun/master
Add french translation.
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 72f79976c..532ac9fee 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -257,7 +257,8 @@ if(BUILD_CLIENT)
install(FILES ${images} DESTINATION ${DATADIR})
install(FILES ${CMAKE_BINARY_DIR}/locale/de/LC_MESSAGES/minetest-c55.mo DESTINATION locale/de/LC_MESSAGES)
-
+ install(FILES ${CMAKE_BINARY_DIR}/locale/fr/LC_MESSAGES/minetest-c55.mo DESTINATION locale/fr/LC_MESSAGES)
+
if(WIN32)
if(DEFINED IRRLICHT_DLL)
install(FILES ${IRRLICHT_DLL} DESTINATION ${BINDIR})
@@ -285,6 +286,7 @@ else()
endif()
add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/locale/de/LC_MESSAGES COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/locale/de/LC_MESSAGES COMMENT "mo-update [de]: Creating locale directory.")
+add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/locale/fr/LC_MESSAGES COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/locale/fr/LC_MESSAGES COMMENT "mo-update [fr]: Creating locale directory.")
add_custom_command(
OUTPUT ${CMAKE_BINARY_DIR}/locale/de/LC_MESSAGES/minetest-c55.mo
@@ -295,7 +297,19 @@ add_custom_command(
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/po/de
COMMENT "mo-update [de]: Creating mo file."
)
+add_custom_command(
+ OUTPUT ${CMAKE_BINARY_DIR}/locale/fr/LC_MESSAGES/minetest-c55.mo
+ COMMAND ${GETTEXT_MSGFMT} -o ${CMAKE_BINARY_DIR}/locale/fr/LC_MESSAGES/minetest-c55.mo ${CMAKE_SOURCE_DIR}/po/fr/minetest-c55.po
+ DEPENDS
+ ${CMAKE_BINARY_DIR}/locale/fr/LC_MESSAGES
+ ${CMAKE_SOURCE_DIR}/po/fr/minetest-c55.po
+ WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/po/fr
+ COMMENT "mo-update [fr]: Creating mo file."
+ )
+
add_custom_target(translation_de ALL COMMENT "mo update [de]" DEPENDS ${CMAKE_BINARY_DIR}/locale/de/LC_MESSAGES/minetest-c55.mo)
+add_custom_target(translation_fr ALL COMMENT "mo update [fr]" DEPENDS ${CMAKE_BINARY_DIR}/locale/fr/LC_MESSAGES/minetest-c55.mo)
+
# Subdirectories