mirror of
https://github.com/moparisthebest/minetest
synced 2024-12-25 00:48:52 -05:00
Gettext domain should match the project name
This partially reverts 023cc0d37776976b4b192b7363f73a5d2debdef6, goes back to using PROJECT_NAME for the filename and also uses PROJECT_NAME as text domain in the source code.
This commit is contained in:
parent
4ffba76bb3
commit
d4e7faca21
@ -327,7 +327,7 @@ if (GETTEXT_FOUND AND USE_GETTEXT)
|
|||||||
COMMAND ${CMAKE_COMMAND} -E make_directory ${MO_BUILD_PATH}
|
COMMAND ${CMAKE_COMMAND} -E make_directory ${MO_BUILD_PATH}
|
||||||
COMMENT "mo-update [${LOCALE}]: Creating locale directory.")
|
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(
|
add_custom_command(
|
||||||
OUTPUT ${MO_FILE_PATH}
|
OUTPUT ${MO_FILE_PATH}
|
||||||
|
@ -1134,8 +1134,8 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
#ifdef LC_MESSAGES
|
#ifdef LC_MESSAGES
|
||||||
setlocale(LC_MESSAGES, "");
|
setlocale(LC_MESSAGES, "");
|
||||||
bindtextdomain("minetest", (porting::path_userdata+"/locale").c_str());
|
bindtextdomain(PROJECT_NAME, (porting::path_userdata+"/locale").c_str());
|
||||||
textdomain("minetest");
|
textdomain(PROJECT_NAME);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Initialize debug streams
|
// Initialize debug streams
|
||||||
|
Loading…
Reference in New Issue
Block a user