mirror of
https://github.com/edubart/otclient.git
synced 2025-10-20 06:23:26 +02:00
Fix translations, there were all broken
This commit is contained in:
@@ -102,12 +102,16 @@ function installLocale(locale)
|
||||
end
|
||||
|
||||
if locale.name ~= defaultLocaleName then
|
||||
local updatesNeeded = 0
|
||||
for _i,k in pairs(neededTranslations) do
|
||||
if locale.translation[k] == nil then
|
||||
local ktext = string.gsub(k, "\n", "\\n")
|
||||
pwarning('Translation for locale \'' .. locale.name .. '\' not found: \"' .. ktext .. '\"')
|
||||
updatesNeeded = updatesNeeded + 1
|
||||
end
|
||||
end
|
||||
|
||||
if updatesNeeded > 0 then
|
||||
pwarning('Locale \'' .. locale.name .. '\' is missing ' .. updatesNeeded .. ' translations.')
|
||||
end
|
||||
end
|
||||
|
||||
local installedLocale = installedLocales[locale.name]
|
||||
|
Reference in New Issue
Block a user