Hi Andrej, 2010/8/11 Andrej Žnidaršič <[email protected]>: > Hello ! > An example of a program, which uses .page files is empathy or gbrainy. > For xml files I use this command, which works good: xml2po -p help/hu/hu.po > help/C/legal.xml > legal.xml, but that doesn't work for .page files. > I also tried Milo's suggestion: > "for i in `ls ./C` > do > xml2po -p ../po/LANG.po -o ./LANG/$i $i > done," > > but i get the following error: > Traceback (most recent call last): > File "/usr/bin/xml2po", line 191, in <module> > main(sys.argv[1:]) > File "/usr/bin/xml2po", line 174, in main > xml2po_main.merge(mofile, filenames[0]) > File "/usr/lib/pymodules/python2.6/xml2po/__init__.py", line 590, in merge > raise IOError("Unable to read file '%s'" % xmlfile) > As I am not a programmer i don't know what to do now. Any help would be > greatly appriciated.
mine was really a suggestion, what I wrote there needed to be worked better. Anyway: what version of xml2po do you have? Can you run this command: xml2po -v Ciao. PS: BTW, the directory containing the LANG.po file for you doc language, is not ../po/LANG.po, that one is the translation of your program: you have to use LANG/LANG.po. Also, you probably need to test if the file you are processing is really a file and not a directory. If I have a little bit of time later today I'll try to write a better script. -- Milo Casagrande <[email protected]> _______________________________________________ gnome-doc-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gnome-doc-list
