Commit 979f3fe49bc5dab4e9db11908bdddba520cb4ee4

Authored by DarkGod
1 parent fa93a4cc

make translation have to ask fo character breaking

... ... @@ -115,6 +115,12 @@ function _M:loadLocale(file)
115 115 print("[I18N] Loaded locale file:", file)
116 116 end
117 117
  118 +function _M:resetBreakTextAllCharacter()
  119 + if _getFlagI18N("break_text_all_character") then
  120 + core.display.breakTextAllCharacter(true)
  121 + end
  122 +end
  123 +
118 124 function _M:setLocale(lc)
119 125 cur_locale_name = lc
120 126 if not locales[lc] then locales[lc] = {} end
... ...
... ... @@ -925,7 +925,7 @@ function _M:instanciate(mod, name, new_game, no_reboot, extra_module_info)
925 925 core.game.resetLocale()
926 926
927 927 -- Reset white space breaking
928   - core.display.breakTextAllCharacter(true)
  928 + core.display.breakTextAllCharacter(false)
929 929
930 930 -- Turn based by default
931 931 core.game.setRealtime(0)
... ... @@ -946,6 +946,7 @@ function _M:instanciate(mod, name, new_game, no_reboot, extra_module_info)
946 946 -- Load localizations
947 947 if mod.i18n_support and config.settings.locale then
948 948 I18N:loadLocale("/data/locales/"..config.settings.locale..".lua")
  949 + I18N:resetBreakTextAllCharacter()
949 950 end
950 951
951 952 -- Load font packages
... ...