[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Localization and translation
From: |
Jean-Christophe Helary |
Subject: |
Re: Localization and translation |
Date: |
Mon, 17 Jan 2022 08:49:16 +0900 |
> On Jan 17, 2022, at 1:24, Gavin Smith <gavinsmith0123@gmail.com> wrote:
>
> On Fri, Jan 14, 2022 at 11:16:09AM +0900, Jean-Christophe Helary wrote:
>> Would it be possible to have the Texinfo manual available as a PO file as
>> the UI files are ?
>>
>> https://translationproject.org/domain/texinfo.html
>> https://translationproject.org/domain/texinfo_document.html
>>
>> The translationproject.org page mentions that it's up to the package
>> maintainers to provide a POT file:
>> https://translationproject.org/html/maintainers.html
>>
>> The po4a utility allows for texi files handling in the PO format:
>> https://po4a.org
>>
>> It's just one command away to generate a POT file fo the manual.
>
> Yes, this would be very good to have. I checked in the help2man
> sources (which has translated manuals through the TP) and help2man uses
> po4a for this as well.
>
> I managed to install po4a, and create a .po file with the following:
>
> $ po4a-gettextize -f texinfo -m texinfo.texi -p texinfo-texi.pot
>
> There were some errors -
>
> texinfo.texi:7968: (po4a::tex)
> unmatched end of environment 'float'
> texinfo.texi:8037: (po4a::tex)
> unmatched end of environment 'float'
> texinfo.texi:10082: (po4a::tex)
> unmatched end of environment 'displaymath'
> texinfo.texi:16277: (po4a::tex)
> unmatched end of environment 'ftable'
> texinfo.texi:16624: (po4a::tex)
> unmatched end of environment 'vtable'
> texinfo.texi:16654: (po4a::tex)
> unmatched end of environment 'vtable'
> texinfo.texi:16698: (po4a::tex)
> unmatched end of environment 'vtable'
> texinfo.texi:16972: (po4a::tex)
> unmatched end of environment 'ftable'
> texinfo.texi:17002: (po4a::tex)
> unmatched end of environment 'vtable'
> texinfo.texi:20426: (po4a::tex)
> unmatched end of environment 'ftable'
>
>
> - but the texinfo-texi.pot file was produced anyway. There
> is nothing wrong with the input so this has to be assumed
> to be a bug in po4a-gettextize.
Probably. po4a outputs a lot of seemingly false positives on the Emacs manuals.
But it works.
> Next steps -
> * Contact the TP to ask if this can be added as a domain.
> * Automate creation of .pot file (and translated manuals) via Makefile rules
* test the back conversion of a pseudo translated POT file ?
> Any comments?
Thank you :-)
--
Jean-Christophe Helary @brandelune
https://mac4translators.blogspot.com
https://sr.ht/~brandelune/omegat-as-a-book/