[Gimp-docs] the need of localized screenshots?
Ulf-D. Ehlert
ude88 at web.de
Thu Nov 6 12:15:23 PST 2008
Nickolay V. Shmyrev (Donnerstag, 6. November 2008, 00:19):
> xml2po puts md5 sum for each image mentioned in xml document so
> translator just knows that something is changed.
That's a nice feature, but it doesn't work for us: xml2po uses the path
of the image ("<imagedata fileref=..."/>) at "runtime", when processing
the XML source file. But this path differs from the path used when
browsing the HTML file.
Example:
src/filters/blur/gauss.xml
is the source file containing image references like
<imagedata fileref="../images/filters/options-blur-gauss.png"/>
the resulting HTML file is
html/en/plug-in-gauss.html
(there is only one flat HTML directory for every language), containing
img tags like
<img src="../images/..." />
which are valid references only when browsing the HTML file.
Of course, we could apply yet another patch to xml2po...
> #. When image changes, this message will be marked fuzzy or
> untranslated for you.
> #. It doesn't matter what you translate it to: it's not used at all.
> #: C/evince.xml:155(None)
> msgid ""
> "@@image: 'figures/evince_start_window.png'; "
> "md5=7f4da5e33bcac35738a268d93d497d47"
> msgstr ""
> "@@image: 'figures/evince_start_window.png'; "
> "md5=7f4da5e33bcac35738a268d93d497d47"
We will always get md5="THIS FILE DOESN'T EXIST".
In any case this has nothing to do with localized images.
> Separate folder with translated images is created and the same
> structure of images is put there. The translated document is put
> there as well. So you need to build the structure:
>
> C/figures/a.jpg
> C/doc.xml
> de/figures/a.jpg
> de/de.po
>
> and after xml2po it will be
>
> de/figures/a.jpg
> de/doc.xml
> de/de.po
>
> all translated
This has nothing to do with xml2po supporting localized images. The
image references will just be the same in "C/doc.xm" and "de/doc.xml".
So if we want to keep on providing localized images - and IMO we
should -, we can
(a) use a patched version of "xml2po" in order to output messages like
msgid "<imagedata fileref=\"../images/foo.png\"/>"
which can be "translated",
(b) change the directory structure so that images references alway point
to the right image; this will have to work with HTML, PDF, and ODF,
though.
Solution (a) is easy - and ugly. But we have never thought about (b)...
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/20081106/97bb7cfa/attachment.bin
More information about the Gimp-docs
mailing list