COMMAND ${CMAKE_COMMAND} -E make_directory ${MO_BUILD_PATH}
COMMENT "mo-update [${LOCALE}]: Creating locale directory.")
- set(MO_FILE_PATH "${MO_BUILD_PATH}/minetest.mo")
+ set(MO_FILE_PATH "${MO_BUILD_PATH}/${PROJECT_NAME}.mo")
add_custom_command(
OUTPUT ${MO_FILE_PATH}
\r
#ifdef LC_MESSAGES\r
setlocale(LC_MESSAGES, "");
- bindtextdomain("minetest", (porting::path_userdata+"/locale").c_str());\r
- textdomain("minetest");\r
+ bindtextdomain(PROJECT_NAME, (porting::path_userdata+"/locale").c_str());\r
+ textdomain(PROJECT_NAME);\r
#endif\r
\r
// Initialize debug streams\r