Home GnuPG
Diffusion GnuPG 686f31c3d5ae

gpg: Avoid extra translation strings.
686f31c3d5aeUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

gpg: Avoid extra translation strings.

* g10/keyedit.c (menu_expire): Use only one prompt.

The old code was anyway not fully i18n because it did not used
ngettext. Further we ran into const char*/char* conflicts on Windows
where we use a different gettext implementation.

FWIW: A better pattern in the case of a static and a malloced string
w/o error return on malloc failure would be:

const char *s;
char *s_buf;
s_buf = xtryasprintf ("%d foo", n);
if (!s_buf)
  s = "several foo";
else
  s = s_buf;
bar (s);
xfree (s_buf);

Details

Provenance
wernerAuthored on Nov 27 2015, 6:23 PM
Parents
rG436a154ea85e: kbx: Include gpg-error prior to mischelp.h.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG686f31c3d5ae: gpg: Avoid extra translation strings. (authored by Werner Koch <wk@gnupg.org>).Nov 27 2015, 6:32 PM