Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/lobby/XmppClient.cpp
Show First 20 Lines • Show All 1,088 Lines • ▼ Show 20 Lines | #define DEBUG_CASE(X, Y) case gloox::X: return g_L10n.Translate("Error") + " (" + Y + ")" | ||||
CASE(RegistrationConflict, g_L10n.Translate("Username already exists")); | CASE(RegistrationConflict, g_L10n.Translate("Username already exists")); | ||||
DEBUG_CASE(RegistrationNotAuthorized, "Account removal timeout or insufficiently secure channel for password change"); | DEBUG_CASE(RegistrationNotAuthorized, "Account removal timeout or insufficiently secure channel for password change"); | ||||
DEBUG_CASE(RegistrationBadRequest, "Server recieved incomplete request"); | DEBUG_CASE(RegistrationBadRequest, "Server recieved incomplete request"); | ||||
DEBUG_CASE(RegistrationForbidden, "This client has insufficient permissions to remove an account"); | DEBUG_CASE(RegistrationForbidden, "This client has insufficient permissions to remove an account"); | ||||
DEBUG_CASE(RegistrationRequired, "Account cannot be removed as it does not exist"); | DEBUG_CASE(RegistrationRequired, "Account cannot be removed as it does not exist"); | ||||
DEBUG_CASE(RegistrationUnexpectedRequest, "This client is unregistered with the server"); | DEBUG_CASE(RegistrationUnexpectedRequest, "This client is unregistered with the server"); | ||||
DEBUG_CASE(RegistrationNotAllowed, "Server does not permit password changes"); | DEBUG_CASE(RegistrationNotAllowed, "Server does not permit password changes"); | ||||
default: | default: | ||||
return g_L10n.Translate("Unknown error"); | return ""; | ||||
} | } | ||||
#undef DEBUG_CASE | #undef DEBUG_CASE | ||||
#undef CASE | #undef CASE | ||||
} | } |
Wildfire Games · Phabricator