Skip to content
Snippets Groups Projects
Commit 4081c828 authored by Otowa Kotori's avatar Otowa Kotori
Browse files

Merge remote-tracking branch 'upstream/master' into i18n

parents 644b0b8b 979f3fe4
No related branches found
No related tags found
No related merge requests found
......@@ -115,6 +115,12 @@ function _M:loadLocale(file)
print("[I18N] Loaded locale file:", file)
end
function _M:resetBreakTextAllCharacter()
if _getFlagI18N("break_text_all_character") then
core.display.breakTextAllCharacter(true)
end
end
function _M:setLocale(lc)
cur_locale_name = lc
if not locales[lc] then locales[lc] = {} end
......
......@@ -925,7 +925,7 @@ function _M:instanciate(mod, name, new_game, no_reboot, extra_module_info)
core.game.resetLocale()
-- Reset white space breaking
core.display.breakTextAllCharacter(true)
core.display.breakTextAllCharacter(false)
-- Turn based by default
core.game.setRealtime(0)
......@@ -946,6 +946,7 @@ function _M:instanciate(mod, name, new_game, no_reboot, extra_module_info)
-- Load localizations
if mod.i18n_support and config.settings.locale then
I18N:loadLocale("/data/locales/"..config.settings.locale..".lua")
I18N:resetBreakTextAllCharacter()
end
-- Load font packages
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment