comparison src/protocols/oscar/oscar.c @ 5411:2c4188300aba

[gaim-migrate @ 5787] This fixes an i18n thing, I think. I changed some stuff in oscar.c to use _() instead of calling gettext directly. That's ok, right? I like the macro better. I also fixed a compile warning or two. If that function declaration isn't supposed to be there, feel free to move it, or remove it, or lemme know and I'll do it. Viva 0.63! committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 17 May 2003 05:41:18 +0000
parents f3cf3bff72f0
children c54cb8f8655f
comparison
equal deleted inserted replaced
5410:326136c49036 5411:2c4188300aba
2909 gaim_debug(GAIM_DEBUG_ERROR, "oscar", 2909 gaim_debug(GAIM_DEBUG_ERROR, "oscar",
2910 "snac threw error (reason 0x%04hx: %s)\n", reason, 2910 "snac threw error (reason 0x%04hx: %s)\n", reason,
2911 (reason < msgerrreasonlen) ? msgerrreason[reason] : "unknown"); 2911 (reason < msgerrreasonlen) ? msgerrreason[reason] : "unknown");
2912 2912
2913 m = g_strdup_printf(_("SNAC threw error: %s\n"), 2913 m = g_strdup_printf(_("SNAC threw error: %s\n"),
2914 reason < msgerrreasonlen ? gettext(msgerrreason[reason]) : _("Unknown error")); 2914 reason < msgerrreasonlen ? _(msgerrreason[reason]) : _("Unknown error"));
2915 do_error_dialog(m, NULL, GAIM_ERROR); 2915 do_error_dialog(m, NULL, GAIM_ERROR);
2916 g_free(m); 2916 g_free(m);
2917 2917
2918 return 1; 2918 return 1;
2919 } 2919 }
2945 } 2945 }
2946 #endif 2946 #endif
2947 2947
2948 /* Data is assumed to be the destination sn */ 2948 /* Data is assumed to be the destination sn */
2949 buf = g_strdup_printf(_("Your message to %s did not get sent:"), data); 2949 buf = g_strdup_printf(_("Your message to %s did not get sent:"), data);
2950 do_error_dialog(buf, (reason < msgerrreasonlen) ? gettext(msgerrreason[reason]) : _("No reason given."), GAIM_ERROR); 2950 do_error_dialog(buf, (reason < msgerrreasonlen) ? _(msgerrreason[reason]) : _("No reason given."), GAIM_ERROR);
2951 g_free(buf); 2951 g_free(buf);
2952 2952
2953 return 1; 2953 return 1;
2954 } 2954 }
2955 2955
2996 reason = (fu16_t) va_arg(ap, unsigned int); 2996 reason = (fu16_t) va_arg(ap, unsigned int);
2997 destn = va_arg(ap, char *); 2997 destn = va_arg(ap, char *);
2998 va_end(ap); 2998 va_end(ap);
2999 2999
3000 snprintf(buf, sizeof(buf), _("User information for %s unavailable:"), destn); 3000 snprintf(buf, sizeof(buf), _("User information for %s unavailable:"), destn);
3001 do_error_dialog(buf, (reason < msgerrreasonlen) ? gettext(msgerrreason[reason]) : _("No reason given."), GAIM_ERROR); 3001 do_error_dialog(buf, (reason < msgerrreasonlen) ? _(msgerrreason[reason]) : _("No reason given."), GAIM_ERROR);
3002 3002
3003 return 1; 3003 return 1;
3004 } 3004 }
3005 3005
3006 static char *images(int flags) { 3006 static char *images(int flags) {