[Gimp-docs] <placeholder> problem

Ulf-D. Ehlert ude88 at web.de
Wed Jan 21 11:23:23 PST 2009


julien (Mittwoch, 21. Januar 2009, 15:26):
> In src/menus/view-navigwindow.xml, I deleted the "para" about access
> through Ctrl-E and I changed the guiicon fileref to
> "images/C/using/stock-navigation-16.png".

The fileref should read "images/using/stock-navigation-16.png":

	find xml/fr/images -name '*stock-navigation*'

> Then I ran "make pot" and
> make -f Makefile.GNU update-po/fr/menus/view-navigwindow.po
>
> The Ctrl-E para has been removed in my view-window.po: OK
> But the guiicon fileref is replaced with <placeholder-1/>.
>
> How do I can get rid of that?

You can't.

Ok, that's not true...

'xml2po' replaces <guiicon> (and <figure> etc.) tags always with 
<placeholder> tags. These <placeholder> tags seems to be quite useful, 
and they don't represent text.

The only way to get rid of them is to customize (patch) the xml2po 
program. For example, I have tried a simple patch to rename some of the 
placeholder tags to make the text more readable (figure-placeholder, 
guiicon-placeholder, etc.). Another patch tried to force 'xml2po' to 
output those nodes (if I remember correctly, this didn't work for nodes 
without content, though). But using the default xml2po program we can't 
do anything here.

Bye,
Ulf


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : /lists/gimp-docs/attachments/20090121/073a518e/attachment.bin 


More information about the Gimp-docs mailing list