Advertisement
david_david

blender-2.73a-localedir.patch

Feb 1st, 2015
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1. diff -urN blender-2.73a/source/blender/blenfont/intern/blf_lang.c blender-2.73a-patched/source/blender/blenfont/intern/blf_lang.c
  2. --- blender-2.73a/source/blender/blenfont/intern/blf_lang.c 2015-01-13 06:58:28.000000000 +0100
  3. +++ blender-2.73a-patched/source/blender/blenfont/intern/blf_lang.c 2015-02-01 14:50:15.385678190 +0100
  4. @@ -80,7 +80,6 @@
  5.  
  6. static void fill_locales(void)
  7. {
  8. - const char * const languages_path = BKE_appdir_folder_id(BLENDER_DATAFILES, "locale");
  9. char languages[FILE_MAX];
  10. LinkNode *lines = NULL, *line;
  11. char *str;
  12. @@ -88,8 +87,7 @@
  13.  
  14. free_locales();
  15.  
  16. - BLI_join_dirfile(languages, FILE_MAX, languages_path, "languages");
  17. - line = lines = BLI_file_read_as_lines(languages);
  18. + line = lines = BLI_file_read_as_lines("/usr/share/blender/locale/languages");
  19.  
  20. /* This whole "parsing" code is a bit weak, in that it expects strictly formated input file...
  21. * Should not be a problem, though, as this file is script-generated! */
  22. @@ -188,7 +186,7 @@
  23. void BLF_lang_init(void)
  24. {
  25. #ifdef WITH_INTERNATIONAL
  26. - const char * const messagepath = BKE_appdir_folder_id(BLENDER_DATAFILES, "locale");
  27. + const char * const messagepath = "/usr/share/locale";;
  28.  
  29. if (messagepath) {
  30. bl_locale_init(messagepath, TEXT_DOMAIN_NAME);
  31. diff -urN blender-2.73a/source/creator/CMakeLists.txt blender-2.73a-patched/source/creator/CMakeLists.txt
  32. --- blender-2.73a/source/creator/CMakeLists.txt 2015-01-20 10:18:02.000000000 +0100
  33. +++ blender-2.73a-patched/source/creator/CMakeLists.txt 2015-02-01 15:56:33.356405592 +0100
  34. @@ -333,7 +333,8 @@
  35. )
  36.  
  37. set(_locale_dir "${CMAKE_SOURCE_DIR}/release/datafiles/locale")
  38. - set(_locale_target_dir ${TARGETDIR_VER}/datafiles/locale)
  39. + set(_locale_target_dir "share/locale")
  40. + set(_languages_target_dir "share/blender/locale")
  41.  
  42. file(GLOB _po_files "${_locale_dir}/po/*.po")
  43. foreach(_po_file ${_po_files})
  44. @@ -350,7 +351,7 @@
  45. # Generate INSTALL rules
  46. install(
  47. FILES ${_locale_dir}/languages
  48. - DESTINATION ${_locale_target_dir}
  49. + DESTINATION ${_languages_target_dir}
  50. )
  51.  
  52. foreach(_mo_file ${_all_mo_files})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement