Skip to content

Commit

Permalink
[PATCH] kconfig: kxgettext: message fix
Browse files Browse the repository at this point in the history
The gettext doesn't handle the {CONFIG}:00000 markers as sources.  I added a
simple comment prefix for them.

Signed-off-by: Egry Gabor <gaboregry@t-online.hu>
Cc: Arnaldo Carvalho de Melo <acme@conectiva.com.br>
Cc: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Egry Gabor authored and Linus Torvalds committed Sep 5, 2005
1 parent c07e02d commit c196eff
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/kconfig/kxgettext.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,17 +179,18 @@ static void message__print_file_lineno(struct message *self)
{
struct file_line *fl = self->files;

printf("\n#: %s:%d", fl->file, fl->lineno);
putchar('\n');
if (self->option != NULL)
printf("# %s:00000\n", self->option);

printf("#: %s:%d", fl->file, fl->lineno);
fl = fl->next;

while (fl != NULL) {
printf(", %s:%d", fl->file, fl->lineno);
fl = fl->next;
}

if (self->option != NULL)
printf(", %s:00000", self->option);

putchar('\n');
}

Expand Down

0 comments on commit c196eff

Please sign in to comment.