Translating Mallard files

Sascha Manns <Sascha.Manns at mailbox.org>
Fri Feb 17 13:03:12 EST 2017

Hi Shaun,

Am Freitag, den 17.02.2017, 12:57 -0500 schrieb Shaun McCance:
> On Wed, 2017-02-15 at 21:20 +0100, Sascha Manns wrote:
> > Hello list,
> > 
> > i have created a original "C" documentation for my new app. So i
> > have
> > some *.page files and one legal.xml.
> > Now i would like to translate that stuff into german.
> > How can i create one po file what contains all strings from all the
> > mentioned stuff?
> 
> Hi Sascha,
> 
> You'll probably want to use itstool for this. To create a PO file for
> the page files and legal.xml:
> 
> itstool -o de.po *.page *.xml
> 
> Edit that PO file with whichever tool you prefer. To merge, you
> should
> create a separate directory for each language. I'm going to assume
> you
> have a directory structure like this:
> 
> help
>  - C
>    - *.page
>    - legal.xml
>  - de
>    - de.po
>    - de.mo
> 
> You have to pass itstool the MO file for merging, not the PO file. To
> get an MO file from a PO file, run
> 
> msgfmt -o de.mo de.po
> 
> Then to merge, from the de directory, run this:
> 
> itstool -m de.mo ../C/*.page ../C/*.xml

Thank you very much :-)
Greetingssascha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://projectmallard.org/pipermail/mallard-list/attachments/20170217/51506e33/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 801 bytes
Desc: This is a digitally signed message part
URL: <http://projectmallard.org/pipermail/mallard-list/attachments/20170217/51506e33/attachment.sig>