1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-17 10:25:21 +02:00

Fix various cases of double-escaped error messages

This commit is contained in:
Gregor Parzefall
2023-06-01 20:35:40 +02:00
committed by sfan5
parent 29b7aea38b
commit e5a5d5a672
7 changed files with 18 additions and 18 deletions

View File

@@ -89,7 +89,7 @@ local function download_and_extract(param)
if filename == "" or not core.download_file(param.url, filename) then
core.log("error", "Downloading " .. dump(param.url) .. " failed")
return {
msg = fgettext("Failed to download \"$1\"", package.title)
msg = fgettext_ne("Failed to download \"$1\"", package.title)
}
end
@@ -105,7 +105,7 @@ local function download_and_extract(param)
os.remove(filename)
if not tempfolder then
return {
msg = fgettext("Failed to extract \"$1\" (unsupported file type or broken archive)", package.title),
msg = fgettext_ne("Failed to extract \"$1\" (unsupported file type or broken archive)", package.title),
}
end
@@ -129,7 +129,7 @@ local function start_install(package, reason)
local path, msg = pkgmgr.install_dir(package.type, result.path, package.name, package.path)
core.delete_dir(result.path)
if not path then
gamedata.errormessage = fgettext("Error installing \"$1\": $2", package.title, msg)
gamedata.errormessage = fgettext_ne("Error installing \"$1\": $2", package.title, msg)
else
core.log("action", "Installed package to " .. path)
@@ -184,7 +184,7 @@ local function start_install(package, reason)
if not core.handle_async(download_and_extract, params, callback) then
core.log("error", "ERROR: async event failed")
gamedata.errormessage = fgettext("Failed to download $1", package.name)
gamedata.errormessage = fgettext_ne("Failed to download $1", package.name)
return
end
end