Re: i18n problems with comments from multiple files

From: Christian Neumair (chris_at_gnome-de.org)
Date: Fri Nov 07 2003 - 08:38:52 EST

  • Next message: Marc Maurer: "Re: Export as minimal XHTML?"

    Am Do, den 06.11.2003 schrieb Bruno Haible um 16:46:
    > Christian Neumair wrote:
    > > Over at AbiWord we have some serious problems:
    > > Comments are enourmous important for us since they contain keywords for
    > > our i18n mechanism that e.g. influence our i18n statistics.
    > > Today I tracked down a problem:
    > > If multiple files contain a comment that affects the same string,
    > > xgettext only writes the first file's comment into the resulting file,
    > > which means
    > > test1.h:
    > > /* first comment */
    > > N_("some string");
    > >
    > > test2.h:
    > > /* second comment */
    > > N_("some string");
    > > being in POTFILES.in will result in a POT file containing only "first
    > > comment" as some string's comment.
    > > Is this supposed to be a bug or am I doing something wrong?
    > It was supposed to work like it does, to avoid problems when the same
    > comment occurs in front of each occurrence of the string. But since you say
    > that it is a serious problem for you, I can change xgettext so that it
    > extracts the second comment as well if it is not identical to the first
    > comment.
    Thanks Bruno!
    This sounds like a great proposal that saves us a hacky extra script for
    i18n. And of course it is a good thing for other software projects, too
    - since their can be multiple explanations for one msgid.

    regs,
     Chris



    This archive was generated by hypermail 2.1.4 : Fri Nov 07 2003 - 08:44:19 EST