Re: xml2po Error !
- From: Shaun McCance <shaunm gnome org>
- To: Karam Qubsi <karamqubsi gmail com>
- Cc: gnome-doc-devel-list gnome org
- Subject: Re: xml2po Error !
- Date: Wed, 18 Jul 2012 13:29:17 -0400
On Wed, 2012-07-18 at 10:42 +0300, Karam Qubsi wrote:
> Hi All ,
>
>
> I don't know what is the problem
>
>
> I installed the gnome docs utilities
> and the process of generating the pot and po files from the xml
> (docbook) is done successfully
>
>
> but when try to convert the po to xml !
Hi Karam,
This looks like a problem with the po file, though I can't
be sure without looking at it. Can you run msgfmt on the
po file without errors?
Also, xml2po isn't actively developed anymore. You should
try using itstool instead.
http://itstool.org/
> from termenal :
> xml2po -p manual.ar.po -o manual.ar.xml manual.xml
>
>
> the resulte :
> 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/python2.7/dist-packages/xml2po/__init__.py", line
> 601, in merge
> self.gt = gettext.GNUTranslations(mfile)
> File "/usr/lib/python2.7/gettext.py", line 180, in __init__
> self._parse(fp)
> File "/usr/lib/python2.7/gettext.py", line 314, in _parse
> plural = v[1].split('plural=')[1]
> IndexError: list index out of range
>
> So please HELP About this issue
>
>
> we are trying to make manuals of koha translatable
>
>
> koha is an Open source software for library systems
>
>
>
>
> Thanks A lot :)
>
>
> --
> Karam.
>
>
> _______________________________________________
> gnome-doc-devel-list mailing list
> gnome-doc-devel-list gnome org
> https://mail.gnome.org/mailman/listinfo/gnome-doc-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]