Re: How to generate .page files from .po files



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 <gnome-doc-list-request gnome org>
Send gnome-doc-list mailing list submissions to
� � � �gnome-doc-list gnome org

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
� � � �gnome-doc-list-request gnome org

You can reach the person managing the list at
� � � �gnome-doc-list-owner gnome org

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 <andrej znidarsic gmail com>
To: gnome-doc-list gnome org
Subject: How to generate .page files from .po files
Message-ID:
� � � �<AANLkTinuuovVc1VNkd371v+sY+_Ly9ErhRy71LtuSvwd mail gmail com>
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 <ak-47 gmx net>
To: gnome-doc-list gnome org
Subject: Re: How to generate .page files from .po files
Message-ID: <1281203288 2559 0 camel localhost localdomain>
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:ak-47 gmx net | failed
http://www.iomc.de/ �| http://blogs.gnome.org/aklapper



------------------------------

Message: 3
Date: Sat, 7 Aug 2010 20:55:19 +0200
From: Milo Casagrande <miloc gnome org>
To: Gnome Doc List <gnome-doc-list gnome org>
Subject: Re: How to generate .page files from .po files
Message-ID:
� � � �<AANLkTik9VG1DbTi8Avb86XwNHxVoOKjUB8Sp7TrCatzG mail gmail com>
Content-Type: text/plain; charset=UTF-8

Hi Andrej,

2010/8/7 Andrej Znidarsic <andrej znidarsic gmail com>:
> 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 <miloc gnome org>


------------------------------

Message: 4
Date: Sat, 07 Aug 2010 22:49:34 +0200
From: Mario Bl?ttermann <mariobl gnome org>
To: gnome-doc-list gnome org
Subject: Re: How to generate .page files from .po files
Message-ID: <1281214174 24616 4 camel debian fritz box>
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 <andrej znidarsic gmail com>:
> > 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
gnome-doc-list gnome org
http://mail.gnome.org/mailman/listinfo/gnome-doc-list


End of gnome-doc-list Digest, Vol 76, Issue 11
**********************************************



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]