2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-30 22:05:46 +00:00

Translate help / usage strings.

This commit is contained in:
Todd C. Miller
2011-05-19 16:07:14 -04:00
parent d2384297a0
commit 67cc4ff025
6 changed files with 107 additions and 84 deletions

View File

@@ -1546,7 +1546,10 @@ sudo_ldap_display_entry_long(LDAP *ld, LDAPMessage *entry, struct lbuf *lbuf)
/* extract the dn, only show the first rdn */
rdn = sudo_ldap_get_first_rdn(ld, entry);
lbuf_append(lbuf, "\nLDAP Role: ", rdn ? rdn : "UNKNOWN", "\n", NULL);
if (rdn != NULL)
lbuf_append(lbuf, _("\nLDAP Role: "), rdn, "\n", NULL);
else
lbuf_append(lbuf, _("\nLDAP Role: UNKNOWN\n"), NULL);
if (rdn)
ldap_memfree(rdn);