[i18n] Make gateway strings translateable (#9933)

See <https://www.mobileread.com/forums/showthread.php?p=4282773#post4282773>.
pull/9938/head
Frans de Jonge 1 year ago committed by GitHub
parent 5e28ab10a4
commit 99df719562
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -495,12 +495,12 @@ function Device:retrieveNetworkInfo()
pingok = os.execute("ping -q -w 3 -c 2 `ip r | grep default | tail -n 1 | cut -d ' ' -f 3` > /dev/null") pingok = os.execute("ping -q -w 3 -c 2 `ip r | grep default | tail -n 1 | cut -d ' ' -f 3` > /dev/null")
end end
if pingok == 0 then if pingok == 0 then
result = result .. "Gateway ping successful" result = result .. _("Gateway ping successful")
else else
result = result .. "Gateway ping FAILED" result = result .. _("Gateway ping FAILED")
end end
else else
result = result .. "No default gateway to ping" result = result .. _("No default gateway to ping")
end end
return result return result
end end

Loading…
Cancel
Save