src/protocols/jabber/jabber.c

changeset 8402
111951d7c7f4
parent 8401
9fe6cadf2581
child 8562
7e73676d1772
equal deleted inserted replaced
8401:9fe6cadf2581 8402:111951d7c7f4
1203 } else if(xmlnode_get_child(error, "temporary-auth-failure")) { 1203 } else if(xmlnode_get_child(error, "temporary-auth-failure")) {
1204 text = _("Temporary Authentication Failure"); 1204 text = _("Temporary Authentication Failure");
1205 } else { 1205 } else {
1206 text = _("Authentication Failure"); 1206 text = _("Authentication Failure");
1207 } 1207 }
1208 } else if(!strcmp(packet->name, "stream:error")) {
1209 if(xmlnode_get_child(packet, "bad-format")) {
1210 text = _("Bad Format");
1211 } else if(xmlnode_get_child(packet, "bad-namespace-prefix")) {
1212 text = _("Bad Namespace Prefix");
1213 } else if(xmlnode_get_child(packet, "conflict")) {
1214 js->gc->wants_to_die = TRUE;
1215 text = _("Resource Conflict");
1216 } else if(xmlnode_get_child(packet, "connection-timeout")) {
1217 text = _("Connection Timeout");
1218 } else if(xmlnode_get_child(packet, "host-gone")) {
1219 text = _("Host Gone");
1220 } else if(xmlnode_get_child(packet, "host-unknown")) {
1221 text = _("Host Unknown");
1222 } else if(xmlnode_get_child(packet, "improper-addressing")) {
1223 text = _("Improper Addressing");
1224 } else if(xmlnode_get_child(packet, "internal-server-error")) {
1225 text = _("Internal Server Error");
1226 } else if(xmlnode_get_child(packet, "invalid-id")) {
1227 text = _("Invalid ID");
1228 } else if(xmlnode_get_child(packet, "invalid-namespace")) {
1229 text = _("Invalid Namespace");
1230 } else if(xmlnode_get_child(packet, "invalid-xml")) {
1231 text = _("Invalid XML");
1232 } else if(xmlnode_get_child(packet, "nonmatching-hosts")) {
1233 text = _("Non-matching Hosts");
1234 } else if(xmlnode_get_child(packet, "not-authorized")) {
1235 text = _("Not Authorized");
1236 } else if(xmlnode_get_child(packet, "policy-violation")) {
1237 text = _("Policy Violation");
1238 } else if(xmlnode_get_child(packet, "remote-connection-failed")) {
1239 text = _("Remote Connection Failed");
1240 } else if(xmlnode_get_child(packet, "resource-constraint")) {
1241 text = _("Resource Constraint");
1242 } else if(xmlnode_get_child(packet, "restricted-xml")) {
1243 text = _("Restricted XML");
1244 } else if(xmlnode_get_child(packet, "see-other-host")) {
1245 text = _("See Other Host");
1246 } else if(xmlnode_get_child(packet, "system-shutdown")) {
1247 text = _("System Shutdown");
1248 } else if(xmlnode_get_child(packet, "undefined-condition")) {
1249 text = _("Undefined Condition");
1250 } else if(xmlnode_get_child(packet, "unsupported-encoding")) {
1251 text = _("Unsupported Encoding");
1252 } else if(xmlnode_get_child(packet, "unsupported-stanza-type")) {
1253 text = _("Unsupported Stanza Type");
1254 } else if(xmlnode_get_child(packet, "unsupported-version")) {
1255 text = _("Unsupported Version");
1256 } else if(xmlnode_get_child(packet, "xml-not-well-formed")) {
1257 text = _("XML Not Well Formed");
1258 } else {
1259 text = _("Stream Error");
1260 }
1208 } 1261 }
1209 1262
1210 if(text || cdata) { 1263 if(text || cdata) {
1211 char *ret = g_strdup_printf("%s%s%s", code ? code : "", 1264 char *ret = g_strdup_printf("%s%s%s", code ? code : "",
1212 code ? ": " : "", text ? text : cdata); 1265 code ? ": " : "", text ? text : cdata);

mercurial