Transifex and the manual files
Marco Ciampa
ciampix at libero.it
Wed Jun 10 22:30:49 UTC 2015
On Mon, Jun 08, 2015 at 10:18:48PM +0200, Yury V. Zaytsev wrote:
[...]
> I don't think you'd need to mess with autostuff though. As a first
> approximation, I suppose the output could be two shell scripts:
>
> - one would take the "reference" (English) man page template (man.x.in),
> and convert it to a pot-file using the po4a tool with correct settings
> - another one would take the translated po-file, and convert it back
> into a man.x.in file, which would be suitable to generate the help files
See attached files:
make-update-po.sh
make-i10n.sh
these are pretty self-explanatory. The first create/update the .po file from
the reference man doc. After first run you should set a couple of thing to
actually enable doc creation. You have to set the .po doc encoding (UTF-8),
the language, the translator name and email address and un-fuzzy the headers.
The second get the main doc (man page) the .po translator file and merge into
the translated man page.
Put these two scripts in doc/man dir & make those executable.
Please save the old translation man pages for reference (I did a
cp it/mc.1.in it/mc.1.in.save
for example)
Use po4a version 0.45 or newer.
Regards,
--
Marco Ciampa
I know a joke about UDP, but you might not get it.
+------------------------+
| GNU/Linux User #78271 |
| FSFE fellow #364 |
+------------------------+
-------------- next part --------------
A non-text attachment was scrubbed...
Name: make-i10n.sh
Type: application/x-sh
Size: 585 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20150611/e3be58a0/attachment.sh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: make-update-po.sh
Type: application/x-sh
Size: 759 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20150611/e3be58a0/attachment-0001.sh>
More information about the mc-devel
mailing list