* If utf8 is still NULL then either the encoding is utf-8 or
* we have been unable to convert the text to utf-8 from the encoding
* that was specified. So we check if the text is valid utf-8 then
* just copy it.
*/
if(utf8==NULL){
if(textlen!=0&&*text!='\0'
&&!g_utf8_validate(text,textlen,NULL))
utf8=g_strdup(_("(There was an error receiving this message. The buddy you are speaking with is probably using a different encoding than expected. If you know what encoding he is using, you can specify it in the advanced account options for your AIM/ICQ account.)"));
buf=g_strdup_printf(_("Unable to login: Could not sign on as %s because the screen name is invalid. Screen names must either start with a letter and contain only letters, numbers and spaces, or contain only numbers."),gaim_account_get_username(account));
gaim_connection_error(gc,_("Your account is currently suspended."));
break;
case0x14:
/* service temporarily unavailable */
gaim_connection_error(gc,_("The AOL Instant Messenger service is temporarily unavailable."));
break;
case0x18:
/* connecting too frequently */
gc->wants_to_die=TRUE;
gaim_connection_error(gc,_("You have been connecting and disconnecting too frequently. Wait ten minutes and try again. If you continue to try, you will need to wait even longer."));
break;
case0x1c:
/* client too old */
gc->wants_to_die=TRUE;
g_snprintf(buf,sizeof(buf),_("The client version you are using is too old. Please upgrade at %s"),GAIM_WEBSITE);
case0x07:{/* Someone has denied you authorization */
if(i>=1){
gchar*dialog_msg=g_strdup_printf(_("The user %u has denied your request to add them to your buddy list for the following reason:\n%s"),args->uin,msg2[0]?msg2[0]:_("No reason given."));
dialog_msg=g_strdup_printf(_("Error 0x%04x: Unable to format screen name because the requested screen name differs from the original."),err);
}break;
case0x0006:{
dialog_msg=g_strdup_printf(_("Error 0x%04x: Unable to format screen name because it is invalid."),err);
}break;
case0x000b:{
dialog_msg=g_strdup_printf(_("Error 0x%04x: Unable to format screen name because the requested screen name is too long."),err);
}break;
case0x001d:{
dialog_msg=g_strdup_printf(_("Error 0x%04x: Unable to change e-mail address because there is already a request pending for this screen name."),err);
}break;
case0x0021:{
dialog_msg=g_strdup_printf(_("Error 0x%04x: Unable to change e-mail address because the given address has too many screen names associated with it."),err);
}break;
case0x0023:{
dialog_msg=g_strdup_printf(_("Error 0x%04x: Unable to change e-mail address because the given address is invalid."),err);
buf=g_strdup_printf(_("Could not add the buddy %s because the screen name is invalid. Screen names must either start with a letter and contain only letters, numbers and spaces, or contain only numbers."),buddy->name);
gaim_notify_error(gc,NULL,_("Unable To Retrieve Buddy List"),
_("Gaim was temporarily unable to retrieve your buddy list from the AIM servers. Your buddy list is not lost, and will probably become available in a few hours."));
"ssi: status is 0x%04hx for a 0x%04hx action with name %s\n",retval->ack,retval->action,retval->item?(retval->item->name?retval->item->name:"no name"):"no item");
if(retval->ack!=0xffff)
switch(retval->ack){
case0x0000:{/* added successfully */
}break;
case0x000c:{/* you are over the limit, the cheat is to the limit, come on fhqwhgads */
gchar*buf;
buf=g_strdup_printf(_("Could not add the buddy %s because you have too many buddies in your buddy list. Please remove one and try again."),(retval->name?retval->name:_("(no name)")));
gaim_debug_error("oscar","ssi: Action 0x%04hx was unsuccessful with error 0x%04hx\n",retval->action,retval->ack);
buf=g_strdup_printf(_("Could not add the buddy %s for an unknown reason. The most common reason for this is that you have the maximum number of allowed buddies in your buddy list."),(retval->name?retval->name:_("(no name)")));
dialog_msg=g_strdup_printf(_("The user %s has denied your request to add them to your buddy list for the following reason:\n%s"),nombre,msg?msg:_("No reason given."));