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
Attachment:
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Gimp-docs mailing list Gimp-docs@xxxxxxxxxxxxxxxxxxxxxx https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-docs