Fix translations, there were all broken

This commit is contained in:
Eduardo Bart
2013-01-23 15:35:43 -02:00
parent 1674575dc0
commit 992acd8873
16 changed files with 1182 additions and 586 deletions

View File

@@ -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]