[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: msgfilter and msgids
From: |
Pavel Janík |
Subject: |
Re: msgfilter and msgids |
Date: |
Fri, 14 Jan 2005 22:17:00 +0100 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) |
From: Bruno Haible <address@hidden>
Date: Fri, 14 Jan 2005 22:05:03 +0100
> > msgfilter allows me to modify all msgstrs. But it can't modify
> > msgids. Could be very valuable...
>
> How could this be useful? The msgids are extracted from the program's
source
> code.
gettext is no longer only used like it was designed ;-)
Image a huge project that many lines like this:
msgstr "\\<image id=\\\"img_id3154571\\\"
src=\\\"res/commandimagelist/sc_square_rounded_unfilled.png\\\"
width=\\\"0.222inch\\\" height=\\\"0.222inch\\\"\\>\\<alt
id=\\\"alt_id3154571\\\" xml-lang=\\\"en-US\\\"\\>Icon\\</alt\\>\\</image\\>"
msgstr "\\<image id=\\\"img_id3154571\\\"
src=\\\"res/commandimagelist/sc_square_rounded_unfilled.png\\\"
width=\\\"0.222inch\\\" height=\\\"0.222inch\\\"\\>\\<alt
id=\\\"alt_id3154571\\\" xml-lang=\\\"cs\\\"\\>Ikonka\\</alt\\>\\</image\\>"
Now, we would like to filter xml-lang="xx" out of both msgid and
msgstr. Easy task when msgid and also msgstrs are on one line, but the are
often wrapped depending on the PO editor translators used.
If I use msgfilter to filter xml-lang away from msgstr and do next round of
updates from POT files, I'll lost all translations (previous translations
will be marked as old).
--
Pavel Janík
Indent to show the logical structure of a program.
-- The Elements of Programming Style (Kernighan & Plaugher)
- msgfilter and msgids, Pavel Janík, 2005/01/15
- Re: msgfilter and msgids, Bruno Haible, 2005/01/14
- Re: msgfilter and msgids,
Pavel Janík <=
- Re: msgfilter and msgids, Bruno Haible, 2005/01/14
- Re: msgfilter and msgids, Pavel Janík, 2005/01/15
- Re: msgfilter and msgids, Bruno Haible, 2005/01/17
- Re: msgfilter and msgids, Stepan Kasal, 2005/01/17
- Re: msgfilter and msgids, Bruno Haible, 2005/01/17
- Re: msgfilter and msgids, Stepan Kasal, 2005/01/17