git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] l10n: add framework for localizing the manpages

From
Jean-Noël AVILA <jn.avila@free.fr>
Date
Mar 12, 2017, 20:36 UTC
Message-ID
<12214955.EmB7ja1MbS@cayenne>
In-Reply-To
<20170312200248.3610-2-jn.avila@free.fr>

This patch is only a preview and a request for comment. The tool used to perform the localization of manpages is po4a (po for anything). This tool digests the asciidoc source files and writes a pot file, and then merges back the po files into translated asciidoc files, for further processing.

The choice of this workflow is driven by two concerns: manage the tracking of the changes in the original files and provide the translators with a format of file that they already use. Moreover, I plan to upload the po files to web translation platforms such as transifex or weblate to take advantage of crowd translation.

In this patch, only one manpage is generated for the git-add command in french. po4a already supports extending to other languages, and merges all the strings from multiple source manpages into one big pot file. In the next version, two files will be included so that the sharing of common strings is shown. There are some enhancement needed for better support of other output formats.

One problem with this setup is that we don't know before hand which files will be generated from the po files and the source files. This depends on the level of completion of translation for each language and each target file. To circumvent this, the makefile calls itself recursively after running po4a, so that the generated files can be enumerated in the downstream targets.

It would be understandable that the git devel list would not like to be spammed by the traffic generated by this new activity.If the present proposition is accepted, I'm open to any modus operandi for submitting the changes.

Thanks for reading.
Previous: Jean-Noel AvilaNext: Junio C Hamano
Message 3 of 37 in “l10n: add framework for localizing the manpages”
  1. l10n: add framework for localizing the manpagesJean-Noel Avila, Mar 12, 2017
  2. l10n: add framework for localizing the manpagesJean-Noel Avila, Mar 12, 2017
  3. Jean-Noël AVILAMar 12, 2017
  4. Junio C HamanoMar 13, 2017
  5. Ævar Arnfjörð BjarmasonMar 14, 2017
  6. Junio C HamanoMar 14, 2017
  7. Jean-Noël AvilaMar 15, 2017
  8. Ævar Arnfjörð BjarmasonMar 15, 2017
  9. Jean-Noël AvilaMar 15, 2017
  10. Junio C HamanoMar 15, 2017
  11. Stefan BellerMar 15, 2017
  12. 1/2 l10n: Introduce framework for localizing man pagesJean-Noel Avila, Mar 18, 2017
  13. 2/2 l10n: Add git-add.txt to localized man pagesJean-Noel Avila, Mar 18, 2017
  14. Junio C HamanoMar 18, 2017
  15. Jean-Noël AVILAMar 18, 2017
  16. Junio C HamanoMar 18, 2017
  17. Junio C HamanoMar 20, 2017
  18. Jean-Noël AvilaMar 20, 2017
  19. Jean-Noël AVILAMar 20, 2017
  20. Junio C HamanoMar 20, 2017
  21. Rework manpage localisationJean-Noel Avila, Mar 20, 2017
  22. 2/2 l10n: Add git-add.txt to localized man pagesJean-Noel Avila, Mar 20, 2017
  23. Junio C HamanoMar 20, 2017
  24. Jean-Noël AvilaMar 22, 2017
  25. Junio C HamanoMar 22, 2017
  26. Stefan BellerMar 22, 2017
  27. Junio C HamanoMar 22, 2017
  28. Stefan BellerMar 22, 2017
  29. Michael J GruberMar 24, 2017
  30. Jean-Noël AVILAMar 25, 2017
  31. Junio C HamanoMar 26, 2017
  32. Jean-Noël AVILAMar 27, 2017
  33. Junio C HamanoMar 27, 2017
  34. Ævar Arnfjörð BjarmasonMar 24, 2017
  35. Junio C HamanoMar 24, 2017
  36. 1/2 l10n: Introduce framework for localizing man pagesJean-Noel Avila, Mar 20, 2017
  37. Junio C HamanoMar 21, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.