docs: add a guide for translators
Subsystems (2)
Daniel Pereira
maintainerv3 cover docs: add a guide for translators
The documentation has seven translations, but the English documentation has no guide on how to contribute to them; the only one that exists, Documentation/translations/zh_CN/how-to.rst, is in Chinese and covers zh_CN only.
Patch 1 adds Documentation/doc-guide/translations.rst, a guide that covers the whole workflow of a translation.
Patch 2 translates the guide into Brazilian Portuguese.
Both patches were checked with a full "make htmldocs" build, with no new warnings, and with scripts/checkpatch.pl --strict.
Changes in v3:
- State the path-mirroring rule explicitly, and exempt documents that exist only in a translation, such as a glossary or a language-specific how-to (Chen-Yu, Dongliang, Weijie).
- Make ":Original:" optional, needed only when the path does not mirror the original, and drop it from the header example (Jani, Weijie, Dongliang).
- Drop the sections that duplicated Documentation/doc-guide/sphinx.rst and Documentation/process/submitting-patches.rst, keeping only the points specific to translations, and link to those documents instead (Federico, Jon).
- Encourage translators to send a fix for the English original when they find a problem in it while translating (Jon).
- Mention b4 as an alternative for preparing and sending a patch series (Weijie).
- Carry Carlos Bilbao's Acked-by on the cover of v2 over to both patches, even though patch 1 changed significantly; please shout if you would rather re-review it.
- Cc Jani Nikula directly, since v3 follows his suggestion.
- Drop [email protected] from the recipients; the address bounced twice on v2.
v2: https://lore.kernel.org/linux-doc/[email protected]/
v1: https://lore.kernel.org/linux-doc/[email protected]/
Daniel Pereira (2):
docs: doc-guide: add a guide for translators
docs: pt_BR: translate doc-guide/translations.rst
Documentation/doc-guide/index.rst | 1 + Documentation/doc-guide/translations.rst | 652 +++++++++++++++++ Documentation/translations/index.rst | 3 + .../translations/pt_BR/doc-guide/index.rst | 19 + .../pt_BR/doc-guide/translations.rst | 666 ++++++++++++++++++ Documentation/translations/pt_BR/index.rst | 11 + 6 files changed, 1352 insertions(+) create mode 100644 Documentation/doc-guide/translations.rst create mode 100644 Documentation/translations/pt_BR/doc-guide/index.rst create mode 100644 Documentation/translations/pt_BR/doc-guide/translations.rst
Signature · 1 line
2.56.1
Daniel Pereira
maintainerPATCH v3 1/2 docs: doc-guide: add a guide for translators
The documentation has seven translations, but nothing in the English documentation explains how to contribute to them. The only guide that exists, Documentation/translations/zh_CN/how-to.rst, is written in Chinese and covers the zh_CN translation only.
As a result, the same problems come up over and over in the review of translation patches: labels and citations copied from the original, which are global in Sphinx and collide with the English ones; partial builds with SPHINXDIRS that hide those collisions; lines over 80 columns; translations not added to any toctree; missing commit descriptions, tags separated by blank lines, HTML email rejected by the lists, and the documentation maintainer left out of the recipients.
Add Documentation/doc-guide/translations.rst, a guide that covers the whole workflow of a translation: choosing what to translate, the layout of a translated document (path, header, labels, citations, cross-references, what must not be translated), translation quality and terminology, adding the document to the build, checking it, preparing and sending the patch, the review process, keeping translations up to date and starting a new translation. The commit message format it suggests is the one already recognized by tools/docs/checktransupdate.py.
Link the guide from the doc-guide index and from the translations index.
---
Changes in v3:
- State the path-mirroring rule explicitly, and exempt documents that exist only in a translation, such as a glossary or a language-specific how-to (Chen-Yu Yeh, Dongliang Mu, Weijie Yuan).
- Make ":Original:" optional, needed only when the path does not mirror the original, and drop it from the header example (Jani Nikula, Weijie Yuan, Dongliang Mu).
- Drop the sections that duplicated Documentation/doc-guide/sphinx.rst and Documentation/process/submitting-patches.rst, keeping only the points specific to translations, and link to those documents instead (Federico Vaga, Jonathan Corbet).
- Encourage translators to send a fix for the English original when they find a problem in it while translating (Jonathan Corbet).
- Mention b4 as an alternative for preparing and sending a patch series (Weijie Yuan).
- Drop [email protected] from the recipients; the address bounced twice on v2.
v2: https://lore.kernel.org/linux-doc/[email protected]/
v1: https://lore.kernel.org/linux-doc/[email protected]/
--- Documentation/doc-guide/index.rst | 1 + Documentation/doc-guide/translations.rst | 652 +++++++++++++++++++++++ Documentation/translations/index.rst | 3 + 3 files changed, 656 insertions(+) create mode 100644 Documentation/doc-guide/translations.rst
Documentation/doc-guide/index.rst +1 -0
@@ -12,4 +12,5 @@ How to write kernel documentation parse-headers contributing maintainer-profile + translations checktransupdate
Documentation/doc-guide/translations.rst new file +652 -0
652 lines not on this page · raw message
Documentation/translations/index.rst +3 -0
@@ -57,3 +57,6 @@ in a different form. If you need to communicate with the Linux community but you do not feel comfortable writing in English, you can ask the translation's maintainers for help. + +If you want to help translate the documentation, see +Documentation/doc-guide/translations.rst.
Signature · 1 line
2.56.1
Daniel Pereira
maintainerPATCH v3 2/2 docs: pt_BR: translate doc-guide/translations.rst
In reply to Daniel PereiraTranslate the new guide for translators, added in the previous patch, into Brazilian Portuguese. The translation is based on the original as added by that patch; since its commit hash is only known once the series is applied, it does not carry the "Update the translation through commit" line that the guide suggests.
---
Changes in v3:
- Follow the same cuts and rule changes made to the English original in patch 1/2 (path-mirroring rule and exemption, optional ":Original:", dropped generic sections, encouragement to fix the English original, mention of b4).
- Drop [email protected] from the recipients; the address bounced twice on v2.
v2: https://lore.kernel.org/linux-doc/[email protected]/
v1: https://lore.kernel.org/linux-doc/[email protected]/
--- .../translations/pt_BR/doc-guide/index.rst | 19 + .../pt_BR/doc-guide/translations.rst | 666 ++++++++++++++++++ Documentation/translations/pt_BR/index.rst | 11 + 3 files changed, 696 insertions(+) create mode 100644 Documentation/translations/pt_BR/doc-guide/index.rst create mode 100644 Documentation/translations/pt_BR/doc-guide/translations.rst
Documentation/translations/pt_BR/doc-guide/index.rst new file +19 -0
@@ -0,0 +1,19 @@ +.. SPDX-License-Identifier: GPL-2.0 + +====================================== +Como escrever a documentação do kernel +====================================== + +.. toctree:: + :maxdepth: 1 + + translations + +Todolist: + +* sphinx +* kernel-doc +* parse-headers +* contributing +* maintainer-profile +* checktransupdate
Documentation/translations/pt_BR/doc-guide/translations.rst new file +666 -0
666 lines not on this page · raw message
Documentation/translations/pt_BR/index.rst +11 -0
@@ -68,6 +68,17 @@ kernel e sobre como ver seu trabalho integrado. process/index +Ferramentas e processos de desenvolvimento +========================================== + +Vários outros manuais com informações úteis para todos os desenvolvedores +do kernel. + +.. toctree:: + :maxdepth: 1 + + doc-guide/index + Guias do usuário e do administrador ===================================
Signature · 1 line
2.56.1