diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2007-06-10 14:38:27 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2007-07-16 15:15:53 -0400 |
commit | b70e325cfe824ea0f6a1666b8b8db986e99c9603 (patch) | |
tree | 96f4be83537b3daa37c42a96c688550c435ea13f /scripts/kconfig/kxgettext.c | |
parent | 4c6f2eb979c314b6362e655f3ff15749af565f86 (diff) |
kconfig: fix update-po-config
Massimo Maiurana <maiurana@gmail.com> reported that
update-po-config was broken:
1) spelling errors in Makefile so arch/um failed
2) UTF-8 was not supported
The following patch address the above problems.
kxgettext now append the output to the .pot file
generated by xgettext - so we have a header.
In all places UFT-8 is specifed so we now flawlessly
support UTF-8.
The Kconfig files had an empty string in a few cases -
these are now supressed in kxgettext.
With this the translators can now pick up where they left
and get it all translated.
There are ~11000 strings to be translated...
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Massimo Maiurana <maiurana@gmail.com>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Diffstat (limited to 'scripts/kconfig/kxgettext.c')
-rw-r--r-- | scripts/kconfig/kxgettext.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/kconfig/kxgettext.c b/scripts/kconfig/kxgettext.c index abee55ca6174..11f7dab94715 100644 --- a/scripts/kconfig/kxgettext.c +++ b/scripts/kconfig/kxgettext.c | |||
@@ -212,7 +212,9 @@ void menu__xgettext(void) | |||
212 | struct message *m = message__list; | 212 | struct message *m = message__list; |
213 | 213 | ||
214 | while (m != NULL) { | 214 | while (m != NULL) { |
215 | message__print_gettext_msgid_msgstr(m); | 215 | /* skip empty lines ("") */ |
216 | if (strlen(m->msg) > sizeof("\"\"")) | ||
217 | message__print_gettext_msgid_msgstr(m); | ||
216 | m = m->next; | 218 | m = m->next; |
217 | } | 219 | } |
218 | } | 220 | } |