mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
Enable i18n for W32.
This commit is contained in:
parent
cc99c37549
commit
25b1e76b44
@ -1,3 +1,7 @@
|
||||
2010-10-20 Werner Koch <wk@g10code.com>
|
||||
|
||||
* i18n.c (i18n_init) [USE_SIMPLE_GETTEXT]: Call textdomain.
|
||||
|
||||
2010-10-14 Werner Koch <wk@g10code.com>
|
||||
|
||||
* asshelp.c (start_new_gpg_agent): Print a notice once the agent
|
||||
|
@ -34,6 +34,7 @@ i18n_init (void)
|
||||
{
|
||||
#ifdef USE_SIMPLE_GETTEXT
|
||||
bindtextdomain (PACKAGE_GT, gnupg_localedir ());
|
||||
textdomain (PACKAGE_GT);
|
||||
#else
|
||||
# ifdef ENABLE_NLS
|
||||
setlocale (LC_ALL, "" );
|
||||
|
@ -1,5 +1,8 @@
|
||||
2010-10-20 Werner Koch <wk@g10code.com>
|
||||
|
||||
* verify.c (verify_signatures): Use gpg_strerror on open failure
|
||||
for consistency of error messages.
|
||||
|
||||
* packet.h (PKT_public_key): s/mdc_feature/flags.mdc/. Change all
|
||||
users.
|
||||
(PKT_public_key): Split is_disabled into flags.disabled_valid and
|
||||
|
@ -96,7 +96,7 @@ verify_signatures (ctrl_t ctrl, int nfiles, char **files )
|
||||
if( !fp ) {
|
||||
rc = gpg_error_from_syserror ();
|
||||
log_error(_("can't open `%s': %s\n"),
|
||||
print_fname_stdin(sigfile), strerror (errno));
|
||||
print_fname_stdin(sigfile), gpg_strerror (rc));
|
||||
goto leave;
|
||||
}
|
||||
handle_progress (pfx, fp, sigfile);
|
||||
|
@ -190,6 +190,9 @@ main (int argc, char **argv)
|
||||
if (log_get_errorcount (0))
|
||||
exit (2);
|
||||
|
||||
fprintf (stderr, "My error: %d (%s)\n", GPG_ERR_ENOENT,
|
||||
gpg_strerror (GPG_ERR_ENOENT));
|
||||
|
||||
fname = argc ? *argv : NULL;
|
||||
|
||||
switch (cmd)
|
||||
|
Loading…
x
Reference in New Issue
Block a user