You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
4.4.3. Translating using Itstool
You can also use Itstool for translation. In order to translate an XML file with it, you need an .its file with translation definitions. An appropriate file for AppStream upstream metadata of any kind can be found here:
When saving that file, I cannot use it with 2.0.2 nor 2.0.4:
✗>itstool --its=as-metainfo.its /usr/share/appdata/eog.appdata.xml
Traceback (most recent call last):
File "/usr/bin/itstool", line 1477, in <module>
doc.apply_its_file(itsfile, params=params)
File "/usr/bin/itstool", line 729, in apply_its_file
doc = libxml2.parseFile(filename)
File "/usr/lib/python2.7/dist-packages/libxml2.py", line 1343, in parseFile
if ret is None:raise parserError('xmlParseFile() failed')
libxml2.parserError: xmlParseFile() failed
I expected it to work fine.
The text was updated successfully, but these errors were encountered:
I run into the same problem and the problem occurs because lines in the example from the HTML page have an extra Unicode zero-width space (U+200B) at the beginning. If you remove those, it runs fine for me. Not sure why those characters exist in the documentation, it would be nice if copying/pasting the example would just work.
This may well be a bug in the Appdata pages.
Currently, https://www.freedesktop.org/software/appstream/docs/sect-Quickstart-Translation.html states:
When saving that file, I cannot use it with 2.0.2 nor 2.0.4:
I expected it to work fine.
The text was updated successfully, but these errors were encountered: