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

Fix josa support

parent 6e50fdad
No related branches found
No related tags found
1 merge request!638Chinese localization keep updating
......@@ -80,7 +80,7 @@ _G.default_tformat = function(s, tag, ...)
end
end
function string.tformat(s, ...)
if cur_locale_special[s] then
if cur_locale_special["nil"][s] then
local args_proc = _getFlagI18N("tformat_special") or default_tformat
return args_proc(s, "tformat", get(cur_locale_args, s, nil), get(cur_locale_special, s, "tformat"), ...)
end
......
......@@ -94,7 +94,7 @@ setFlag("noun_target_sub", function(str, type, noun)
end
end)
setFlag("tformat_special", function(s, locales_args, special, ...)
setFlag("tformat_special", function(s, tag, locales_args, special, ...)
local args
if locales_args then
local sargs = {...}
......@@ -105,7 +105,7 @@ setFlag("tformat_special", function(s, locales_args, special, ...)
else
args = {...}
end
s = _t(s)
s = _t(s, tag)
for k, v in pairs(special) do
args[k] = addJosa(args[k], v)
end
......
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