RSS/Atom feed Twitter
Site is read-only, email is disabled

xml2po & placeholder errors

This discussion is connected to the gimp-docs-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

xml2po & placeholder errors Ulf-D. Ehlert 07 Jan 20:13
  xml2po & placeholder errors Marco Ciampa 08 Jan 09:24
Ulf-D. Ehlert
2009-01-07 20:13:19 UTC (about 16 years ago)

xml2po & placeholder errors

Hi,

we have a minor problem with "xml2po" producing those mysterious placeholder errors Vitaly reported some times ago ("No template matches placeholder-1 ...").

Our problem: we have two slightly different xml2po versions creating different po files. So we just have to decide which version to use.

When we started to find out how to create po files, I noticed that 'ml2po' sometimes emitted placeholder tags. I considered this to be a bug, filed a bugreport and provided a patch - without any response from the xml2po maintainer (obviously everywhere the same problem: lack of time). You find this patched version in our tools directory, and whenever you are using Makefile.GNU you invoke this one.

The autotools-based Makefile uses the default xml2po program shipped with the gnome-doc-utils package (on Linux).

A typical output example (default version ("-") vs. patched version ("+")) shows the difference:

#: src/menus/colors/auto/color-enhance.xml:58(phrase) -msgid " example"
+msgid "Color Enhance example"
msgstr ""

#: src/menus/colors/auto/color-enhance.xml:62(phrase) -msgid " example (Original image)"
+msgid "Color Enhance example (Original image)" msgstr ""

(I still think this is a bug, since it may easily lead to translation errors if you don't look at the context.)

Obviously we can't continue using both versions...

Using the patched version would be a kind of fork with all its implications: maintenance, updating, bugfixes etc. (but note it's just a little Python script...). There are also some advantages: we could customize the program and add more patches (for instance, we could try to make xml2po's images-md5 feature work for us).

Ok, that's all, just make your choice and then we will have to stick with whatever you have chosen.

Unless we stumble across another bug/problem, both solutions should be fine...

Bye,
Ulf

Marco Ciampa
2009-01-08 09:24:49 UTC (about 16 years ago)

xml2po & placeholder errors

On Wed, Jan 07, 2009 at 08:13:19PM +0100, Ulf-D. Ehlert wrote:

Using the patched version would be a kind of fork with all its implications: maintenance, updating, bugfixes etc. (but note it's just a little Python script...). There are also some advantages: we could customize the program and add more patches (for instance, we could try to make xml2po's images-md5 feature work for us).

I see this not as a fork but more like a workaround...if we keep ourself in contact with the xml2po mantainer we will be able to return to the "official" xml2pc once the exposed problems will be fixed...

IMHO: let's use our version and go ahead!