Locale/oxmysql

MUST UPDATE OXMYSQL TO 1.9 OR HIGHER
This commit is contained in:
Kakarot
2022-01-10 01:52:59 -06:00
parent e151194643
commit d786a3cd07
8 changed files with 115 additions and 81 deletions
+1 -3
View File
@@ -21,9 +21,7 @@ local function translateKey(phrase, subs)
-- Initial Scan over result looking for substituions
for k, v in pairs(subs) do
local templateToFind = '%%{' .. k .. '}'
print('Template to find:', templateToFind)
print('Replace val:', v)
result = result:gsub(templateToFind, v)
result = result:gsub(templateToFind, tostring(v)) -- string to allow all types
end
return result