bug-texinfo
[Top][All Lists]
Advanced

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

Re: Localization and translation


From: Gavin Smith
Subject: Re: Localization and translation
Date: Sun, 16 Jan 2022 16:24:28 +0000
User-agent: Mutt/1.9.4 (2018-02-28)

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.

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

Any comments?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]