I was a bit optimistic, but false alarm :-[ Yes, the commands mentioned below are working as I wrote yesterday, but when running make -f Makedile.GNU html-no there is still no "no" images addresses generated. Sorry for confusing you. Kolbjoern ------------------------------------------------------------------------ Kolbjørn Stuestøl skreiv: > Hi, Ulf (and others) > A bit further on the road :-) > > I tried all your suggestions, and a lot more, and found that in the > command you mentioned > > sed -e '/fileref/!d' -e 's/.*"\(.*\)".*/\1/' \ > src/introduction/whats-new.xml | \ > while read fileref; do \ > c=${fileref/images/images\/C}; \ > no=${fileref/images/images\/no}; \ > ls -l $c $no; \ > done > > (with src/introduction/whats-new.xml replaced with files containing "no" > images) it seems that images marked in the src/-. xml files as > <imageobject> > <imagedata format="PNG" > fileref="images/filters/options-decor-add-bevel.png"/> > </imageobject> > turns out OK and recognize the "no" image files: > > (output:) > -rwx------+ 1 Kolbjørn Ingen 5124 May 8 19:34 > images/C/filters/options-logo-3d-outline.png > -rwx------+ 1 Kolbjørn Ingen 5913 May 8 19:36 > images/no/filters/options-logo-3d-outline.png > > but the images coded as > <imageobject> > <imagedata fileref="images/filters/options-logo-3d-outline.png" > format="PNG"/> > </imageobject> > returned > ls: cannot access JPG: No such file or directory > … > > Some suggestions for where and what I have to change without rewriting > all src/???.xml files? > I have (as you may have understood :-) ) very little experience in this > sort of programming.. > > Kolbjoern > > Ulf-D. Ehlert skreiv: > >> Kolbjørn Stuestøl (Montag, 11. Mai 2009, 23:19): >> >> >>> As the "src/introduction/whats-new.xml" has no "Norwegian" images I >>> used the commands on po/no/menu.po instead. Still no "Norwegian" >>> images in the xml-no files and (of course) not in the the html files >>> either. >>> >>> >> As Julien told you, there must be a corresponding localized image file >> with the same name. In this special example (.../whats-new.xml) there >> is no such localized image file: >> >> bash> sed -e '/fileref/!d' -e 's/.*"\(.*\)".*/\1/' \ >> src/introduction/whats-new.xml | \ >> while read fileref; do \ >> c=${fileref/images/images\/C}; \ >> no=${fileref/images/images\/no}; \ >> ls -l $c $no; \ >> done >> >> Check your images with >> >> bash> make -f Makefile.GNU check-images-no >> >> You may also try >> >> find images/C -name .git -prune -o -type f -print | \ >> while read english; do \ >> norwegian=${english/C/no}; \ >> test -e $norwegian \ >> && echo "FOUND $norwegian" \ >> || echo "NO $norwegian"; \ >> done >> >> to see which localized images exist. >> >> >> >>> The question boils down to: >>> How to automatic add the necessary foreign image addresses into the >>> xml files? >>> >>> >> No, the way how to add localized images has changed: >> if you have an English image file >> images/C/some/where/imagefile.png >> just provide a localized file in "images/no": >> images/no/some/where/imagefile.png >> (same name, same subdirectories). >> The XML source files will refer to this file as >> <imagedata fileref="images/some/where/imagefile.png"/> >> >> >> >>> I.e. change the address '<imagedata fileref="images/menus/file.png" >>> format="PNG"/>' to >>> '<imagedata fileref="images/no/menus/file.png" format="PNG"/>'. >>> >>> >> Wrong, no changes to the xml files, no translations, just add a >> localized image and make will do the rest. >> >> Bye, >> Ulf >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Gimp-docs mailing list >> Gimp-docs@xxxxxxxxxxxxxxxxxxxxxx >> https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-docs >> >> > > > _______________________________________________ > Gimp-docs mailing list > Gimp-docs@xxxxxxxxxxxxxxxxxxxxxx > https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-docs > > > > _______________________________________________ Gimp-docs mailing list Gimp-docs@xxxxxxxxxxxxxxxxxxxxxx https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-docs