Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -urN blender-2.73a/source/blender/blenfont/intern/blf_lang.c blender-2.73a-patched/source/blender/blenfont/intern/blf_lang.c
- --- blender-2.73a/source/blender/blenfont/intern/blf_lang.c 2015-01-13 06:58:28.000000000 +0100
- +++ blender-2.73a-patched/source/blender/blenfont/intern/blf_lang.c 2015-02-01 14:50:15.385678190 +0100
- @@ -80,7 +80,6 @@
- static void fill_locales(void)
- {
- - const char * const languages_path = BKE_appdir_folder_id(BLENDER_DATAFILES, "locale");
- char languages[FILE_MAX];
- LinkNode *lines = NULL, *line;
- char *str;
- @@ -88,8 +87,7 @@
- free_locales();
- - BLI_join_dirfile(languages, FILE_MAX, languages_path, "languages");
- - line = lines = BLI_file_read_as_lines(languages);
- + line = lines = BLI_file_read_as_lines("/usr/share/blender/locale/languages");
- /* This whole "parsing" code is a bit weak, in that it expects strictly formated input file...
- * Should not be a problem, though, as this file is script-generated! */
- @@ -188,7 +186,7 @@
- void BLF_lang_init(void)
- {
- #ifdef WITH_INTERNATIONAL
- - const char * const messagepath = BKE_appdir_folder_id(BLENDER_DATAFILES, "locale");
- + const char * const messagepath = "/usr/share/locale";;
- if (messagepath) {
- bl_locale_init(messagepath, TEXT_DOMAIN_NAME);
- diff -urN blender-2.73a/source/creator/CMakeLists.txt blender-2.73a-patched/source/creator/CMakeLists.txt
- --- blender-2.73a/source/creator/CMakeLists.txt 2015-01-20 10:18:02.000000000 +0100
- +++ blender-2.73a-patched/source/creator/CMakeLists.txt 2015-02-01 15:56:33.356405592 +0100
- @@ -333,7 +333,8 @@
- )
- set(_locale_dir "${CMAKE_SOURCE_DIR}/release/datafiles/locale")
- - set(_locale_target_dir ${TARGETDIR_VER}/datafiles/locale)
- + set(_locale_target_dir "share/locale")
- + set(_languages_target_dir "share/blender/locale")
- file(GLOB _po_files "${_locale_dir}/po/*.po")
- foreach(_po_file ${_po_files})
- @@ -350,7 +351,7 @@
- # Generate INSTALL rules
- install(
- FILES ${_locale_dir}/languages
- - DESTINATION ${_locale_target_dir}
- + DESTINATION ${_languages_target_dir}
- )
- foreach(_mo_file ${_all_mo_files})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement