1
0
mirror of https://github.com/minetest-mods/intllib.git synced 2025-01-23 08:20:19 +01:00

Update init.lua

This commit is contained in:
Rui 2015-05-12 18:18:52 +09:00
parent 475711f7f7
commit b3aacf4649

View File

@ -18,6 +18,8 @@ if not (LANG and (LANG ~= "")) then LANG = os.getenv("LANG") end
if not (LANG and (LANG ~= "")) then LANG = "en" end
LANG = LANG:sub(1, 2)
if PLATFORM ~= "Windows" and LANG == "ja" then LANG = "ja_utf8" end
local INS_CHAR = intllib.INSERTION_CHAR
local insertion_pattern = "("..INS_CHAR.."?)"..INS_CHAR.."(%(?)(%d+)(%)?)"