2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

Call gettext() in sudoerserror() in the user's locale and pass the untranslated string to it.

This commit is contained in:
Todd C. Miller
2012-11-25 09:33:58 -05:00
parent 90147bb605
commit 15c69e0e3f
7 changed files with 73 additions and 32 deletions

View File

@@ -122,7 +122,7 @@ alias_add(char *name, int type, struct member *members)
/* a->seqno = 0; */
list2tq(&a->members, members);
if (rbinsert(aliases, a)) {
snprintf(errbuf, sizeof(errbuf), _("Alias `%s' already defined"), name);
snprintf(errbuf, sizeof(errbuf), N_("Alias `%s' already defined"), name);
alias_free(a);
debug_return_str(errbuf);
}