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.

Andrej


2010/8/8 <[email protected]>

> Send gnome-doc-list mailing list submissions to
>        [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://mail.gnome.org/mailman/listinfo/gnome-doc-list
> or, via email, send a message with subject or body 'help' to
>        [email protected]
>
> You can reach the person managing the list at
>        [email protected]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of gnome-doc-list digest..."
>
>
> Today's Topics:
>
>   1. How to generate .page files from .po files (Andrej Znidarsic)
>   2. Re: How to generate .page files from .po files (Andre Klapper)
>   3. Re: How to generate .page files from .po files (Milo Casagrande)
>   4. Re: How to generate .page files from .po files (Mario Bl?ttermann)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 7 Aug 2010 19:32:58 +0200
> From: Andrej Znidarsic <[email protected]>
> To: [email protected]
> Subject: How to generate .page files from .po files
> Message-ID:
>        
> <[email protected]<aanlktinuuovvc1vnkd371v%2bsy%[email protected]>
> >
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hello !
>
> I am a translator and i would like to review my translation of
> documentation
> of gnome programs.
>
> Some programs have documenation in the form of .page files, but i don't
> know
> how to generate them from .po files, which i use to do the translations.
> Can someone explain me how to do it?
>
> Thanks a lot
>
> Andrej
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://mail.gnome.org/archives/gnome-doc-list/attachments/20100807/171ac885/attachment.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Sat, 07 Aug 2010 19:48:08 +0200
> From: Andre Klapper <[email protected]>
> To: [email protected]
> Subject: Re: How to generate .page files from .po files
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset="UTF-8"
>
> Hi,
>
> Am Samstag, den 07.08.2010, 19:32 +0200 schrieb Andrej Znidarsic:
> > Some programs have documenation in the form of .page files
>
> Can you provide an example?
>
> Thanks,
> andre
> --
>  mailto:[email protected] | failed
>  http://www.iomc.de/  | http://blogs.gnome.org/aklapper
>
>
>
> ------------------------------
>
> Message: 3
> Date: Sat, 7 Aug 2010 20:55:19 +0200
> From: Milo Casagrande <[email protected]>
> To: Gnome Doc List <[email protected]>
> Subject: Re: How to generate .page files from .po files
> Message-ID:
>        <[email protected]>
> Content-Type: text/plain; charset=UTF-8
>
> Hi Andrej,
>
> 2010/8/7 Andrej Znidarsic <[email protected]>:
> > Hello !
> > I am a translator and i would like to review my translation of
> documentation
> > of gnome programs.
> > Some programs have documenation in the form of .page files, but i don't
> know
> > how to generate them from .po files, which i use to do the translations.
> > Can someone explain me how to do it?
>
> You should do something like this (supposedly you are in the help/
> directory):
>
> for i in `ls ./C`
> do
> xml2po -p ../po/LANG.po -o ./LANG/$i $i
> done
>
> This should get you all the .page files translated from your LANG po
> file into the LANG directory, and you can read those pages with Yelp
> as usual (yelp help/LANG/).
>
> Hope this can help you.
>
> Ciao.
>
> PS: I think a while back somebody else asked the same question...
> maybe it is time to add a little page on l.g.o about how to do that,
> maybe with a simple script... Mental note to do that.
>
> --
> Milo Casagrande <[email protected]>
>
>
> ------------------------------
>
> Message: 4
> Date: Sat, 07 Aug 2010 22:49:34 +0200
> From: Mario Bl?ttermann <[email protected]>
> To: [email protected]
> Subject: Re: How to generate .page files from .po files
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset="UTF-8"
>
> Am Samstag, den 07.08.2010, 20:55 +0200 schrieb Milo Casagrande:
> > Hi Andrej,
> >
> > 2010/8/7 Andrej Znidarsic <[email protected]>:
> > > Hello !
> > > I am a translator and i would like to review my translation of
> documentation
> > > of gnome programs.
> > > Some programs have documenation in the form of .page files, but i don't
> know
> > > how to generate them from .po files, which i use to do the
> translations.
> > > Can someone explain me how to do it?
> >
> > You should do something like this (supposedly you are in the help/
> directory):
> >
> > for i in `ls ./C`
> > do
> > xml2po -p ../po/LANG.po -o ./LANG/$i $i
> > done
> >
> By the why, who is responsible for the xml2po manpage? As far as I know,
> the ability to handle *.page files isn't mentioned yet there. Moreover,
> xml2po can also handle other XML dialects, such as DocBook-SGML.
>
> Cheers,
> Mario
>
>
>
> ------------------------------
>
> _______________________________________________
> gnome-doc-list mailing list
> [email protected]
> http://mail.gnome.org/mailman/listinfo/gnome-doc-list
>
>
> End of gnome-doc-list Digest, Vol 76, Issue 11
> **********************************************
>
_______________________________________________
gnome-doc-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnome-doc-list

Reply via email to