[krb5-auth-dialog] better match the output to the handcrafted version we shipped
- From: Guido Günther <guidog src gnome org>
- To: svn-commits-list gnome org
- Subject: [krb5-auth-dialog] better match the output to the handcrafted version we shipped
- Date: Fri, 15 May 2009 13:40:21 -0400 (EDT)
commit 0ed20a2f652ab45c57c9369b8dad08ae2edb3605
Author: Guido Günther <agx sigxcpu org>
Date: Fri May 15 18:21:59 2009 +0200
better match the output to the handcrafted version we shipped
---
ChangeLog | 5 +++++
etpo/lexer.l | 4 ++--
src/dummy-strings.c | 5 ++++-
3 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 9c7df22..20e2b55 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri May 15 19:08:22 CEST 2009 Guido Günther <agx sigxcpu org>
+
+ * etpo/lexer.l: better match the output to the handcrafted version we
+ shipped before.
+
Fri May 15 19:06:09 CEST 2009 Guido Günther <agx sigxcpu org>
Reduce number of translations by filtering the error messages
diff --git a/etpo/lexer.l b/etpo/lexer.l
index a5f21f3..9bc4b75 100644
--- a/etpo/lexer.l
+++ b/etpo/lexer.l
@@ -104,14 +104,14 @@ yywrap(void)
static void
header(void)
{
- const char *boilerplate = "const char *dummy = {\n";
+ const char *boilerplate = "#include <glib/gi18n.h>\n\nconst char *dummy[] = {\n";
printf("%s", boilerplate);
}
static void
tail(void)
{
- const char *boilerplate = "};\n";
+ const char *boilerplate = "\tNULL\n};\n";
printf("%s", boilerplate);
}
diff --git a/src/dummy-strings.c b/src/dummy-strings.c
index 196ff09..b5009ad 100644
--- a/src/dummy-strings.c
+++ b/src/dummy-strings.c
@@ -1,5 +1,7 @@
/* Generated by hand via "cd etpo; make update-etpo" from /tmp/krb5-1.6.dfsg.4~beta1/ */
-const char *dummy = {
+#include <glib/gi18n.h>
+
+const char *dummy[] = {
N_("ASN.1 failed call to system time library"), /* asn1_err.et:asn1:ASN1_BAD_TIMEFORMAT */
N_("ASN.1 structure is missing a required field"), /* asn1_err.et:asn1:ASN1_MISSING_FIELD */
N_("ASN.1 unexpected field number"), /* asn1_err.et:asn1:ASN1_MISPLACED_FIELD */
@@ -262,4 +264,5 @@ const char *dummy = {
N_("Bad magic number for passwd_phrase_element"), /* kv5m_err.et:kv5m:KV5M_PASSWD_PHRASE_ELEMENT */
N_("Bad magic number for GSSAPI OID"), /* kv5m_err.et:kv5m:KV5M_GSS_OID */
N_("Bad magic number for GSSAPI QUEUE"), /* kv5m_err.et:kv5m:KV5M_GSS_QUEUE */
+ NULL
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]