Dont use boost locale anymore

This commit is contained in:
Eduardo Bart
2013-02-22 18:49:36 -03:00
parent e4e3d7d053
commit 09c937998f
8 changed files with 146 additions and 36 deletions

View File

@@ -111,7 +111,12 @@ end
function onGameConnectionError(message, code)
CharacterList.destroyLoadBox()
local text = tr('Your connection has been lost. (err: %d)', code)
local text
if g_game.getProtocolGame() and g_game.getProtocolGame():isConnecting() then
text = tr('Unable to establish a connection. (err: %d)%s', code)
else
text = tr('Your connection has been lost. (err: %d)', code)
end
errorBox = displayErrorBox(tr("Connection Error"), text)
errorBox.onOk = function()
errorBox = nil