aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gpgconf-comp.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2008-05-09 09:54:35 +0000
committerWerner Koch <[email protected]>2008-05-09 09:54:35 +0000
commitd9405f0c490e09e2a9918e7d30002fbbdcb5e9f1 (patch)
tree94d0bd9a283c396e5cceddca9f04e93404eeb828 /tools/gpgconf-comp.c
parentPrint a note for revoked signing keys. (diff)
downloadgnupg-d9405f0c490e09e2a9918e7d30002fbbdcb5e9f1.tar.gz
gnupg-d9405f0c490e09e2a9918e7d30002fbbdcb5e9f1.zip
Updated German translation.
Fix in gpgconf for W32.
Diffstat (limited to 'tools/gpgconf-comp.c')
-rw-r--r--tools/gpgconf-comp.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/tools/gpgconf-comp.c b/tools/gpgconf-comp.c
index b4c78cdf9..664589b9c 100644
--- a/tools/gpgconf-comp.c
+++ b/tools/gpgconf-comp.c
@@ -1027,7 +1027,27 @@ gpg_agent_runtime_change (void)
static const char *
my_dgettext (const char *domain, const char *msgid)
{
-#ifdef ENABLE_NLS
+#ifdef USE_SIMPLE_GETTEXT
+ if (domain)
+ {
+ static int switched_codeset;
+ char *text;
+
+ if (!switched_codeset)
+ {
+ switched_codeset = 1;
+ gettext_select_utf8 (1);
+ }
+
+ if (!strcmp (domain, "gnupg"))
+ domain = PACKAGE_GT;
+
+ /* FIXME: we have no dgettext, thus we can't switch. */
+
+ text = gettext (msgid);
+ return text ? text : msgid;
+ }
+#elif defined(ENABLE_NLS)
if (domain)
{
static int switched_codeset;