Mercurial > pidgin
diff 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 |
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c Sat May 17 04:10:16 2003 +0000 +++ b/src/protocols/oscar/oscar.c Sat May 17 05:41:18 2003 +0000 @@ -2911,7 +2911,7 @@ (reason < msgerrreasonlen) ? msgerrreason[reason] : "unknown"); m = g_strdup_printf(_("SNAC threw error: %s\n"), - reason < msgerrreasonlen ? gettext(msgerrreason[reason]) : _("Unknown error")); + reason < msgerrreasonlen ? _(msgerrreason[reason]) : _("Unknown error")); do_error_dialog(m, NULL, GAIM_ERROR); g_free(m); @@ -2947,7 +2947,7 @@ /* Data is assumed to be the destination sn */ buf = g_strdup_printf(_("Your message to %s did not get sent:"), data); - do_error_dialog(buf, (reason < msgerrreasonlen) ? gettext(msgerrreason[reason]) : _("No reason given."), GAIM_ERROR); + do_error_dialog(buf, (reason < msgerrreasonlen) ? _(msgerrreason[reason]) : _("No reason given."), GAIM_ERROR); g_free(buf); return 1; @@ -2998,7 +2998,7 @@ va_end(ap); snprintf(buf, sizeof(buf), _("User information for %s unavailable:"), destn); - do_error_dialog(buf, (reason < msgerrreasonlen) ? gettext(msgerrreason[reason]) : _("No reason given."), GAIM_ERROR); + do_error_dialog(buf, (reason < msgerrreasonlen) ? _(msgerrreason[reason]) : _("No reason given."), GAIM_ERROR); return 1; }
