Skip to contentSkip to conversation

docs: add a guide for translators

PATCH Superseded Daniel Pereira 9 participants 19 messages Oct 15 – Nov 2

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Daniel Pereira

author maintainer
#0 lore raw

v2 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. As a result, the same problems keep coming up in the review of translation patches: labels copied from the original that collide with the English ones, partial builds that hide those collisions, documents left out of any toctree, missing commit descriptions and missing recipients.

Patch 1 adds Documentation/doc-guide/translations.rst, a guide that covers the whole workflow of a translation, from choosing what to translate to sending the patch and keeping the translation up to date.

Patch 2 translates the guide into Brazilian Portuguese. Since it is based on the original added by patch 1, whose 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.

Both patches were checked with a full "make htmldocs" build, with no new warnings, and with scripts/checkpatch.pl --strict.

Changes in v2:
- Drop the references to the Assisted-by tag, which was removed from coding-assistants.rst and submitting-patches.rst by commit 1e035297ffda ("docs: remove Assisted-by references"). The guide now only says that Signed-off-by can only be added by the human who certifies the contribution (Weijie Yuan).
- Use a plain path in the ":Original:" example, which is what most translations do and which the documentation build already turns into a link, and drop the ":Translator:" line from it (Weijie Yuan).
- Rebase on current docs-next.
- Cc the translation maintainers, so that every team can comment.

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      | 694 +++++++++++++++++
 Documentation/translations/index.rst          |   3 +
 .../translations/pt_BR/doc-guide/index.rst    |  19 +
 .../pt_BR/doc-guide/translations.rst          | 711 ++++++++++++++++++
 Documentation/translations/pt_BR/index.rst    |  11 +
 6 files changed, 1439 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

base-commit: 90d9f76ccb72ec024ef476b4229f3dd1957d7b26

Signature · 1 line
2.47.3
author maintainer
#1 lore raw

PATCH v2 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 with a full htmldocs build, checkpatch and checktransupdate.py, 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 v2:
- Drop the Assisted-by references from the AI tools section, the tags example and the checklist (Weijie Yuan).
- Use a plain path in the ":Original:" example and drop ":Translator:" from it (Weijie Yuan).

v1: https://lore.kernel.org/linux-doc/[email protected]/

 Documentation/doc-guide/index.rst        |   1 +
 Documentation/doc-guide/translations.rst | 694 +++++++++++++++++++++++
 Documentation/translations/index.rst     |   3 +
 3 files changed, 698 insertions(+)
 create mode 100644 Documentation/doc-guide/translations.rst
Documentation/doc-guide/index.rst +1 -0
index f078baddf..0016aed59 100644
@@ -12,4 +12,5 @@ How to write kernel documentation
    parse-headers
    contributing
    maintainer-profile
+   translations
    checktransupdate
Documentation/doc-guide/translations.rst new file +694 -0

694 lines not on this page · raw message

Documentation/translations/index.rst +3 -0
index b6d24f6f1..181e45fbf 100644
@@ -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.47.3
#2 lore raw

Re: [PATCH v2 1/2] docs: doc-guide: add a guide for translators

Hi Daniel,

thank you for this effort, allow me one comment. The following chapters are somehow repeating what already written in other documents (doc-guide, process). Everyone should follow the process and the documentation guide, there should not be the need to repeat "how to write documentation" and "how to send patches".

Quoted 16 lines
Documentation/doc-guide/translations.rst new file +16 -0
+Building and checking your work
+===============================
+Build the documentation
+-----------------------
+Look at the result
+------------------
+Run checkpatch
+--------------
+Sending the patch
+=================
+Recipients
+----------
+Sending
+-------
+New versions
+------------
Signature · 1 line
Federico Vaga
author maintainer
#3 lore raw

Re: [PATCH v2 1/2] docs: doc-guide: add a guide for translators

Quoted 4 lines · Federico Vaga

The following chapters are somehow repeating what already written in other documents (doc-guide, process). Everyone should follow the process and the documentation guide, there should not be the need to repeat "how to write documentation" and "how to send patches".

Hi Federico,

Fair point, thanks. In v3 I will drop the generic parts of those sections and link to Documentation/doc-guide/sphinx.rst and Documentation/process/submitting-patches.rst instead.

I would like to keep only the points that are specific to translations and that keep coming up in review, as short notes:

- a partial build with SPHINXDIRS=translations/<lang> hides label and citation collisions with the English documents, so a full htmldocs build is needed;
- tools/docs/checktransupdate.py, to check whether a translation is out of date;
- the translation maintainers and lists to add as recipients, in addition to the documentation maintainer.

Does that sound reasonable?

Thanks,
Daniel

Em sáb., 17 de out. de 2026 às 21:03, Federico Vaga <[email protected]> escreveu:

Quoted 28 lines

Hi Daniel,

thank you for this effort, allow me one comment. The following chapters are somehow repeating what already written in other documents (doc-guide, process). Everyone should follow the process and the documentation guide, there should not be the need to repeat "how to write documentation" and "how to send patches".

Quoted 6 lines
Documentation/doc-guide/translations.rst new file +6 -0
+Building and checking your work
+===============================
+Build the documentation
+-----------------------
+Look at the result
+------------------

Documentation/doc-guide/translations.rst line 457

Quoted 10 lines
Documentation/doc-guide/translations.rst new file +10 -0
+Run checkpatch
+--------------
+Sending the patch
+=================
+Recipients
+----------
+Sending
+-------
+New versions
+------------

--
Federico Vaga

#4 lore raw

Re: [PATCH v2 1/2] docs: doc-guide: add a guide for translators

Hi Daniel,

Quoted 1 line · Daniel Pereira

Does that sound reasonable?

I think so

Signature · 1 line
Federico Vaga
#5 lore raw

Re: [PATCH v2 1/2] docs: doc-guide: add a guide for translators

In reply to Daniel Pereira

+cc Jani Nikula

Quoted 41 lines · Daniel Pereira

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 with a full htmldocs build, checkpatch and checktransupdate.py, 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 v2:
- Drop the Assisted-by references from the AI tools section, the tags example and the checklist (Weijie Yuan).
- Use a plain path in the ":Original:" example and drop ":Translator:" from it (Weijie Yuan).

v1: https://lore.kernel.org/linux-doc/[email protected]/

 Documentation/doc-guide/index.rst        |   1 +
 Documentation/doc-guide/translations.rst | 694 +++++++++++++++++++++++
 Documentation/translations/index.rst     |   3 +
 3 files changed, 698 insertions(+)
 create mode 100644 Documentation/doc-guide/translations.rst

[...]

Quoted 20 lines
Documentation/doc-guide/translations.rst new file +20 -0
+Anatomy of a translated document
+================================
+
+Location and file name
+----------------------
+
+A translation mirrors the path of its original under the language
+directory, and keeps the same file name::
+
+  Documentation/process/howto.rst
+  Documentation/translations/<lang>/process/howto.rst
+
+Do not translate file or directory names.  The documentation build uses
+this mapping to add, at the top of every page, links to the same page in
+the other languages; it only works if the paths match.
+
+The file header
+---------------
+
+Start the file with the same SPDX license identifier as the original.

Documentation/doc-guide/translations.rst line 164

Quoted 10 lines
Documentation/doc-guide/translations.rst new file +10 -0
+Most translations then indicate, in some form, which document was
+translated and include the language's disclaimer.  For example, the
+Italian translation uses::
+
+  .. include:: ../disclaimer-ita.rst
+
+  :Original: Documentation/core-api/symbol-namespaces.rst
+
+A plain path is enough in the ``:Original:`` field: the documentation
+build turns ``Documentation/...`` paths into links automatically.

Oh, btw. There's a comment about ":Original:" from Jani [1]:

| I'm wondering, are these :Original: fields useful anymore since the
| translations extension adds the button to switch between languages?
| 
| The pretty much hard-coded expectation is that the English version at
| path/to/foo.rst is the original, and its translations are at
| translations/xx_YY/path/to/foo.rst.
| 
| I.e. neither the HTML nor the RST benefit from it, and it's just
| repetition.

Perhaps we could have a bit of discussion here?

Thanks.

[1] https://lore.kernel.org/linux-doc/[email protected]/

#6 lore raw

Re: [PATCH v2 1/2] docs: doc-guide: add a guide for translators

Quoted 1 line · Weijie Yuan

Oh, btw. There's a comment about ":Original:" from Jani [1]:

It's good to remove them if no one needs this. But I didn't know other type documents...

Quoted 12 lines
| I'm wondering, are these :Original: fields useful anymore since the
| translations extension adds the button to switch between languages?
|
| The pretty much hard-coded expectation is that the English version at
| path/to/foo.rst is the original, and its translations are at
| translations/xx_YY/path/to/foo.rst.
|
| I.e. neither the HTML nor the RST benefit from it, and it's just
| repetition.

Perhaps we could have a bit of discussion here?

#7 lore raw

Re: Re: [PATCH v2 1/2] docs: doc-guide: add a guide for translators

In reply to Weijie Yuan
Quoted 98 lines

发件人: "Weijie Yuan" <[email protected]>
发送时间:2026-10-18 11:40:09 (星期日)
收件人: "Daniel Pereira" <[email protected]>
抄送: "Jonathan Corbet" <[email protected]>, "Shuah Khan" <[email protected]>, "Randy Dunlap" <[email protected]>, "Alex Shi" <[email protected]>, "Yanteng Si" <[email protected]>, "Dongliang Mu" <[email protected]>, "Chen-Yu Yeh" <[email protected]>, "Federico Vaga" <[email protected]>, "Akira Yokosawa" <[email protected]>, "Carlos Bilbao" <[email protected]>, "Avadhut Naik" <[email protected]>, [email protected], [email protected], "Jani Nikula" <[email protected]> 主题: Re: [PATCH v2 1/2] docs: doc-guide: add a guide for translators

+cc Jani Nikula

Quoted 41 lines · Daniel Pereira

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 with a full htmldocs build, checkpatch and checktransupdate.py, 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 v2:
- Drop the Assisted-by references from the AI tools section, the tags example and the checklist (Weijie Yuan).
- Use a plain path in the ":Original:" example and drop ":Translator:" from it (Weijie Yuan).

v1: https://lore.kernel.org/linux-doc/[email protected]/

 Documentation/doc-guide/index.rst        |   1 +
 Documentation/doc-guide/translations.rst | 694 +++++++++++++++++++++++
 Documentation/translations/index.rst     |   3 +
 3 files changed, 698 insertions(+)
 create mode 100644 Documentation/doc-guide/translations.rst

[...]

Quoted 20 lines
Documentation/doc-guide/translations.rst new file +20 -0
+Anatomy of a translated document
+================================
+
+Location and file name
+----------------------
+
+A translation mirrors the path of its original under the language
+directory, and keeps the same file name::
+
+  Documentation/process/howto.rst
+  Documentation/translations/<lang>/process/howto.rst
+
+Do not translate file or directory names.  The documentation build uses
+this mapping to add, at the top of every page, links to the same page in
+the other languages; it only works if the paths match.
+
+The file header
+---------------
+
+Start the file with the same SPDX license identifier as the original.

Documentation/doc-guide/translations.rst line 164

Quoted 10 lines
Documentation/doc-guide/translations.rst new file +10 -0
+Most translations then indicate, in some form, which document was
+translated and include the language's disclaimer.  For example, the
+Italian translation uses::
+
+  .. include:: ../disclaimer-ita.rst
+
+  :Original: Documentation/core-api/symbol-namespaces.rst
+
+A plain path is enough in the ``:Original:`` field: the documentation
+build turns ``Documentation/...`` paths into links automatically.

Oh, btw. There's a comment about ":Original:" from Jani [1]:

| I'm wondering, are these :Original: fields useful anymore since the
| translations extension adds the button to switch between languages?
| 
| The pretty much hard-coded expectation is that the English version at
| path/to/foo.rst is the original, and its translations are at
| translations/xx_YY/path/to/foo.rst.
| 
| I.e. neither the HTML nor the RST benefit from it, and it's just
| repetition.
Quoted 1 line

Perhaps we could have a bit of discussion here?

Hi Jani and Weijie,

if all the translation documentation follows the relocation style -

Documentation/XXX/XXX.rst to Documentation/translations/XXX/XXX.rst,

the ":Original:" has no meaning, but actually this convention does not work sometimes.

BTW, tools/docs/checktransupdate.py uses this relocation style in the zh_CN translation. When I try to test this script in other translations, this issue occurs.

So my suggestion is that, after confirming all the translated docuementation follows this style, we can delete this field and write this relocation style in the translation guidance.

Dongliang Mu

Quoted 4 lines

Thanks.

[1] https://lore.kernel.org/linux-doc/[email protected]/

------------------------------
Best regards,
Dongliang Mu

author maintainer
#8 lore raw

Re: [PATCH v2 1/2] docs: doc-guide: add a guide for translators

Quoted 3 lines · Dongliang Mu

So my suggestion is that, after confirming all the translated docuementation follows this style, we can delete this field and write this relocation style in the translation guidance.

Hi Weijie, Dongliang, Alex, Jani,

I checked docs-next. it_IT, pt_BR, ja_JP and ko_KR already mirror the original path for every file. There are 14 files in sp_SP, zh_CN and zh_TW that do not, for two reasons:

- the original has moved and the translation was not moved with it:
magic-number (now in staging/), gdb-kernel-debugging (now in process/debugging/), security-bugs (now in process/), xfrm_proc (now in networking/xfrm/), memory-barriers (now in core-api/wrappers/), and the three gfs2 documents in zh_CN;
- the document exists only in the translation: glossary.rst in zh_CN and zh_TW, and how-to.rst in zh_CN.

So I agree with Dongliang's order. For v3 of the guide I propose:

- state the path mirroring as a rule, since the language switcher and checktransupdate.py both depend on it;
- describe ":Original:" as optional and not needed when the path mirrors the original, instead of showing it in the header example.

Moving the files above and removing the existing ":Original:" fields can then be done per language, as separate series, by people who know each translation. I can send the moves for the files whose originals were relocated, if the maintainers of those translations agree.

Thanks,
Daniel

Em seg., 19 de out. de 2026 às 01:37, 慕冬亮 <[email protected]> escreveu:

Quoted 124 lines
Quoted 99 lines

发件人: "Weijie Yuan" <[email protected]>
发送时间:2026-10-18 11:40:09 (星期日)
收件人: "Daniel Pereira" <[email protected]>
抄送: "Jonathan Corbet" <[email protected]>, "Shuah Khan" <[email protected]>, "Randy Dunlap" <[email protected]>, "Alex Shi" <[email protected]>, "Yanteng Si" <[email protected]>, "Dongliang Mu" <[email protected]>, "Chen-Yu Yeh" <[email protected]>, "Federico Vaga" <[email protected]>, "Akira Yokosawa" <[email protected]>, "Carlos Bilbao" <[email protected]>, "Avadhut Naik" <[email protected]>, [email protected], [email protected], "Jani Nikula" <[email protected]> 主题: Re: [PATCH v2 1/2] docs: doc-guide: add a guide for translators

+cc Jani Nikula

Quoted 41 lines · Daniel Pereira

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 with a full htmldocs build, checkpatch and checktransupdate.py, 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 v2:
- Drop the Assisted-by references from the AI tools section, the tags example and the checklist (Weijie Yuan).
- Use a plain path in the ":Original:" example and drop ":Translator:" from it (Weijie Yuan).

v1: https://lore.kernel.org/linux-doc/[email protected]/

 Documentation/doc-guide/index.rst        |   1 +
 Documentation/doc-guide/translations.rst | 694 +++++++++++++++++++++++
 Documentation/translations/index.rst     |   3 +
 3 files changed, 698 insertions(+)
 create mode 100644 Documentation/doc-guide/translations.rst

[...]

Quoted 20 lines
Documentation/doc-guide/translations.rst new file +20 -0
+Anatomy of a translated document
+================================
+
+Location and file name
+----------------------
+
+A translation mirrors the path of its original under the language
+directory, and keeps the same file name::
+
+  Documentation/process/howto.rst
+  Documentation/translations/<lang>/process/howto.rst
+
+Do not translate file or directory names.  The documentation build uses
+this mapping to add, at the top of every page, links to the same page in
+the other languages; it only works if the paths match.
+
+The file header
+---------------
+
+Start the file with the same SPDX license identifier as the original.

Documentation/doc-guide/translations.rst line 164

Quoted 10 lines
Documentation/doc-guide/translations.rst new file +10 -0
+Most translations then indicate, in some form, which document was
+translated and include the language's disclaimer.  For example, the
+Italian translation uses::
+
+  .. include:: ../disclaimer-ita.rst
+
+  :Original: Documentation/core-api/symbol-namespaces.rst
+
+A plain path is enough in the ``:Original:`` field: the documentation
+build turns ``Documentation/...`` paths into links automatically.

Oh, btw. There's a comment about ":Original:" from Jani [1]:

| I'm wondering, are these :Original: fields useful anymore since the
| translations extension adds the button to switch between languages?
|
| The pretty much hard-coded expectation is that the English version at
| path/to/foo.rst is the original, and its translations are at
| translations/xx_YY/path/to/foo.rst.
|
| I.e. neither the HTML nor the RST benefit from it, and it's just
| repetition.
Quoted 1 line

Perhaps we could have a bit of discussion here?

Hi Jani and Weijie,

if all the translation documentation follows the relocation style -

Documentation/XXX/XXX.rst to Documentation/translations/XXX/XXX.rst,

the ":Original:" has no meaning, but actually this convention does not work sometimes.

BTW, tools/docs/checktransupdate.py uses this relocation style in the zh_CN translation. When I try to test this script in other translations, this issue occurs.

So my suggestion is that, after confirming all the translated docuementation follows this style, we can delete this field and write this relocation style in the translation guidance.

Dongliang Mu

Quoted 4 lines

Thanks.

[1] https://lore.kernel.org/linux-doc/[email protected]/

------------------------------
Best regards,
Dongliang Mu

#9 lore raw

Re: [PATCH v2 1/2] docs: doc-guide: add a guide for translators

Quoted 25 lines · Daniel Pereira
Quoted 3 lines · Dongliang Mu

So my suggestion is that, after confirming all the translated docuementation follows this style, we can delete this field and write this relocation style in the translation guidance.

Hi Weijie, Dongliang, Alex, Jani,

I checked docs-next. it_IT, pt_BR, ja_JP and ko_KR already mirror the original path for every file. There are 14 files in sp_SP, zh_CN and zh_TW that do not, for two reasons:

- the original has moved and the translation was not moved with it:
magic-number (now in staging/), gdb-kernel-debugging (now in process/debugging/), security-bugs (now in process/), xfrm_proc (now in networking/xfrm/), memory-barriers (now in core-api/wrappers/), and the three gfs2 documents in zh_CN;
- the document exists only in the translation: glossary.rst in zh_CN and zh_TW, and how-to.rst in zh_CN.

So I agree with Dongliang's order. For v3 of the guide I propose:

- state the path mirroring as a rule, since the language switcher and checktransupdate.py both depend on it;
- describe ":Original:" as optional and not needed when the path mirrors the original, instead of showing it in the header example.

Quoted 4 lines

Moving the files above and removing the existing ":Original:" fields can then be done per language, as separate series, by people who know each translation. I can send the moves for the files whose originals were relocated, if the maintainers of those translations agree.

I agree with this proposal. Ask maintainers of each translation to solves these issues first.

Daniel, can you list all 14 files in sp_SP, zh_CN and zh_TW?

Dongliang Mu

Quoted 124 lines

Thanks,
Daniel

Em seg., 19 de out. de 2026 às 01:37, 慕冬亮 <[email protected]> escreveu:

Quoted 118 lines
Quoted 96 lines

发件人: "Weijie Yuan" <[email protected]>
发送时间:2026-10-18 11:40:09 (星期日)
收件人: "Daniel Pereira" <[email protected]>
抄送: "Jonathan Corbet" <[email protected]>, "Shuah Khan" <[email protected]>, "Randy Dunlap" <[email protected]>, "Alex Shi" <[email protected]>, "Yanteng Si" <[email protected]>, "Dongliang Mu" <[email protected]>, "Chen-Yu Yeh" <[email protected]>, "Federico Vaga" <[email protected]>, "Akira Yokosawa" <[email protected]>, "Carlos Bilbao" <[email protected]>, "Avadhut Naik" <[email protected]>, [email protected], [email protected], "Jani Nikula" <[email protected]> 主题: Re: [PATCH v2 1/2] docs: doc-guide: add a guide for translators

+cc Jani Nikula

Quoted 41 lines · Daniel Pereira

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 with a full htmldocs build, checkpatch and checktransupdate.py, 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 v2:
- Drop the Assisted-by references from the AI tools section, the tags example and the checklist (Weijie Yuan).
- Use a plain path in the ":Original:" example and drop ":Translator:" from it (Weijie Yuan).

v1: https://lore.kernel.org/linux-doc/[email protected]/

  Documentation/doc-guide/index.rst        |   1 +
  Documentation/doc-guide/translations.rst | 694 +++++++++++++++++++++++
  Documentation/translations/index.rst     |   3 +
  3 files changed, 698 insertions(+)

create mode 100644 Documentation/doc-guide/translations.rst

[...]

Quoted 20 lines
Documentation/doc-guide/translations.rst new file +20 -0
+Anatomy of a translated document
+================================
+
+Location and file name
+----------------------
+
+A translation mirrors the path of its original under the language
+directory, and keeps the same file name::
+
+  Documentation/process/howto.rst
+  Documentation/translations/<lang>/process/howto.rst
+
+Do not translate file or directory names.  The documentation build uses
+this mapping to add, at the top of every page, links to the same page in
+the other languages; it only works if the paths match.
+
+The file header
+---------------
+
+Start the file with the same SPDX license identifier as the original.

Documentation/doc-guide/translations.rst line 164

Quoted 10 lines
Documentation/doc-guide/translations.rst new file +10 -0
+Most translations then indicate, in some form, which document was
+translated and include the language's disclaimer.  For example, the
+Italian translation uses::
+
+  .. include:: ../disclaimer-ita.rst
+
+  :Original: Documentation/core-api/symbol-namespaces.rst
+
+A plain path is enough in the ``:Original:`` field: the documentation
+build turns ``Documentation/...`` paths into links automatically.

Oh, btw. There's a comment about ":Original:" from Jani [1]:

| I'm wondering, are these :Original: fields useful anymore since the
| translations extension adds the button to switch between languages?
|
| The pretty much hard-coded expectation is that the English version at
| path/to/foo.rst is the original, and its translations are at
| translations/xx_YY/path/to/foo.rst.
|
| I.e. neither the HTML nor the RST benefit from it, and it's just
| repetition.
Quoted 1 line

Perhaps we could have a bit of discussion here?

Hi Jani and Weijie,

if all the translation documentation follows the relocation style -

Documentation/XXX/XXX.rst to Documentation/translations/XXX/XXX.rst,

the ":Original:" has no meaning, but actually this convention does not work sometimes.

BTW, tools/docs/checktransupdate.py uses this relocation style in the zh_CN translation. When I try to test this script in other translations, this issue occurs.

So my suggestion is that, after confirming all the translated docuementation follows this style, we can delete this field and write this relocation style in the translation guidance.

Dongliang Mu

Quoted 3 lines

Thanks.

[1] https://lore.kernel.org/linux-doc/[email protected]/

------------------------------
Best regards,
Dongliang Mu

#10 lore raw

Re: [PATCH v2 1/2] docs: doc-guide: add a guide for translators

Quoted 2 lines · Dongliang Mu

I agree with this proposal. Ask maintainers of each translation to solves these issues first.

For zh_TW, the three moved documents (security-bugs, magic-number, gdb-kernel-debugging) are already relocated in the series below, which Weijie has applied to the zh_TW tree and which is waiting to go upstream:

https://lore.kernel.org/linux-doc/[email protected]/

So no need for a separate move on our side, Daniel, but thanks for offering. One file is missing from the list: filesystems/sysfs.txt, whose original is now filesystems/sysfs.rst (zh_CN has the same file). I will send a fix for zh_TW.

glossary.rst exists only in the translation by design, so the rule in the guide may want to allow for files like that and how-to.rst.

Once these have landed, I will drop the ":Original:" fields from zh_TW in a separate series.

Thanks,
Chen-Yu

author maintainer
#11 lore raw

Re: [PATCH v2 1/2] docs: doc-guide: add a guide for translators

In reply to Dongliang Mu
Quoted 1 line · Dongliang Mu

Daniel, can you list all 14 files in sp_SP, zh_CN and zh_TW?

Hi Dongliang,

Sure. First a correction: when I counted, I only looked at .rst files. With the .txt files included, ja_JP and ko_KR do not fully mirror the original paths either, so my earlier statement about them was wrong. The full list follows, translation first and current original below.

The 14 .rst files. Original moved, translation not moved with it:

sp_SP/process/magic-number.rst
-> staging/magic-number.rst
sp_SP/wrappers/memory-barriers.rst
-> core-api/wrappers/memory-barriers.rst
zh_CN/dev-tools/gdb-kernel-debugging.rst
-> process/debugging/gdb-kernel-debugging.rst
zh_CN/filesystems/gfs2.rst
-> filesystems/gfs2/index.rst
zh_CN/filesystems/gfs2-glocks.rst
-> filesystems/gfs2/glocks.rst
zh_CN/filesystems/gfs2-uevents.rst
-> filesystems/gfs2/uevents.rst
zh_CN/networking/xfrm_proc.rst
-> networking/xfrm/xfrm_proc.rst
zh_CN/process/magic-number.rst
-> staging/magic-number.rst
zh_TW/admin-guide/security-bugs.rst
-> process/security-bugs.rst
zh_TW/dev-tools/gdb-kernel-debugging.rst
-> process/debugging/gdb-kernel-debugging.rst
zh_TW/process/magic-number.rst
-> staging/magic-number.rst

Document exists only in the translation:

zh_CN/glossary.rst
zh_CN/how-to.rst
zh_TW/glossary.rst

As Chen-Yu pointed out, the three zh_TW moves are already in the zh_TW tree and will go away once that series lands upstream.

The .txt files whose original is now an .rst file elsewhere:

zh_CN/arch/arm/kernel_user_helpers.txt zh_TW/arch/arm/kernel_user_helpers.txt
-> arch/arm/kernel_user_helpers.rst zh_CN/arch/arm64/{booting,legacy_instructions,memory, silicon-errata,tagged-pointers}.txt zh_TW/arch/arm64/{booting,legacy_instructions,memory, silicon-errata,tagged-pointers}.txt
-> arch/arm64/*.rst zh_CN/filesystems/sysfs.txt zh_TW/filesystems/sysfs.txt
-> filesystems/sysfs.rst zh_CN/video4linux/omap3isp.txt
-> admin-guide/media/omap3isp.rst zh_CN/video4linux/v4l2-framework.txt
-> split into driver-api/media/v4l2-*.rst zh_TW/IRQ.txt
-> core-api/irq/index.rst (according to its own header) zh_TW/io_ordering.txt
-> driver-api/io_ordering.rst ja_JP/stable_api_nonsense.txt ko_KR/stable_api_nonsense.txt
-> process/stable-api-nonsense.rst ja_JP/stable_kernel_rules.txt
-> process/stable-kernel-rules.rst

These .txt files are not part of the Sphinx build, so the language switcher never sees them, but they still break the path mapping that checktransupdate.py relies on. Whether each one should be converted and moved, or dropped as outdated, is up to the maintainers of each translation.

Thanks,
Daniel

Em qui., 22 de out. de 2026 às 23:10, Dongliang Mu <[email protected]> escreveu:

Quoted 167 lines · Daniel Pereira
Quoted 25 lines · Dongliang Mu
Quoted 3 lines

So my suggestion is that, after confirming all the translated docuementation follows this style, we can delete this field and write this relocation style in the translation guidance.

Hi Weijie, Dongliang, Alex, Jani,

I checked docs-next. it_IT, pt_BR, ja_JP and ko_KR already mirror the original path for every file. There are 14 files in sp_SP, zh_CN and zh_TW that do not, for two reasons:

- the original has moved and the translation was not moved with it:
magic-number (now in staging/), gdb-kernel-debugging (now in process/debugging/), security-bugs (now in process/), xfrm_proc (now in networking/xfrm/), memory-barriers (now in core-api/wrappers/), and the three gfs2 documents in zh_CN;
- the document exists only in the translation: glossary.rst in zh_CN and zh_TW, and how-to.rst in zh_CN.

So I agree with Dongliang's order. For v3 of the guide I propose:

- state the path mirroring as a rule, since the language switcher and checktransupdate.py both depend on it;
- describe ":Original:" as optional and not needed when the path mirrors the original, instead of showing it in the header example.

Quoted 4 lines

Moving the files above and removing the existing ":Original:" fields can then be done per language, as separate series, by people who know each translation. I can send the moves for the files whose originals were relocated, if the maintainers of those translations agree.

I agree with this proposal. Ask maintainers of each translation to solves these issues first.

Daniel, can you list all 14 files in sp_SP, zh_CN and zh_TW?

Dongliang Mu

Quoted 124 lines

Thanks,
Daniel

Em seg., 19 de out. de 2026 às 01:37, 慕冬亮 <[email protected]> escreveu:

Quoted 118 lines
Quoted 96 lines

发件人: "Weijie Yuan" <[email protected]>
发送时间:2026-10-18 11:40:09 (星期日)
收件人: "Daniel Pereira" <[email protected]>
抄送: "Jonathan Corbet" <[email protected]>, "Shuah Khan" <[email protected]>, "Randy Dunlap" <[email protected]>, "Alex Shi" <[email protected]>, "Yanteng Si" <[email protected]>, "Dongliang Mu" <[email protected]>, "Chen-Yu Yeh" <[email protected]>, "Federico Vaga" <[email protected]>, "Akira Yokosawa" <[email protected]>, "Carlos Bilbao" <[email protected]>, "Avadhut Naik" <[email protected]>, [email protected], [email protected], "Jani Nikula" <[email protected]> 主题: Re: [PATCH v2 1/2] docs: doc-guide: add a guide for translators

+cc Jani Nikula

Quoted 41 lines · Daniel Pereira

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 with a full htmldocs build, checkpatch and checktransupdate.py, 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 v2:
- Drop the Assisted-by references from the AI tools section, the tags example and the checklist (Weijie Yuan).
- Use a plain path in the ":Original:" example and drop ":Translator:" from it (Weijie Yuan).

v1: https://lore.kernel.org/linux-doc/[email protected]/

  Documentation/doc-guide/index.rst        |   1 +
  Documentation/doc-guide/translations.rst | 694 +++++++++++++++++++++++
  Documentation/translations/index.rst     |   3 +
  3 files changed, 698 insertions(+)

create mode 100644 Documentation/doc-guide/translations.rst

[...]

Quoted 20 lines
Documentation/doc-guide/translations.rst new file +20 -0
+Anatomy of a translated document
+================================
+
+Location and file name
+----------------------
+
+A translation mirrors the path of its original under the language
+directory, and keeps the same file name::
+
+  Documentation/process/howto.rst
+  Documentation/translations/<lang>/process/howto.rst
+
+Do not translate file or directory names.  The documentation build uses
+this mapping to add, at the top of every page, links to the same page in
+the other languages; it only works if the paths match.
+
+The file header
+---------------
+
+Start the file with the same SPDX license identifier as the original.

Documentation/doc-guide/translations.rst line 164

Quoted 10 lines
Documentation/doc-guide/translations.rst new file +10 -0
+Most translations then indicate, in some form, which document was
+translated and include the language's disclaimer.  For example, the
+Italian translation uses::
+
+  .. include:: ../disclaimer-ita.rst
+
+  :Original: Documentation/core-api/symbol-namespaces.rst
+
+A plain path is enough in the ``:Original:`` field: the documentation
+build turns ``Documentation/...`` paths into links automatically.

Oh, btw. There's a comment about ":Original:" from Jani [1]:

| I'm wondering, are these :Original: fields useful anymore since the
| translations extension adds the button to switch between languages?
|
| The pretty much hard-coded expectation is that the English version at
| path/to/foo.rst is the original, and its translations are at
| translations/xx_YY/path/to/foo.rst.
|
| I.e. neither the HTML nor the RST benefit from it, and it's just
| repetition.
Quoted 1 line

Perhaps we could have a bit of discussion here?

Hi Jani and Weijie,

if all the translation documentation follows the relocation style -

Documentation/XXX/XXX.rst to Documentation/translations/XXX/XXX.rst,

the ":Original:" has no meaning, but actually this convention does not work sometimes.

BTW, tools/docs/checktransupdate.py uses this relocation style in the zh_CN translation. When I try to test this script in other translations, this issue occurs.

So my suggestion is that, after confirming all the translated docuementation follows this style, we can delete this field and write this relocation style in the translation guidance.

Dongliang Mu

Quoted 3 lines

Thanks.

[1] https://lore.kernel.org/linux-doc/[email protected]/

------------------------------
Best regards,
Dongliang Mu

#12 lore raw

Re: [PATCH v2 1/2] docs: doc-guide: add a guide for translators

Quoted 25 lines · Daniel Pereira
Quoted 1 line · Dongliang Mu

Daniel, can you list all 14 files in sp_SP, zh_CN and zh_TW?

Hi Dongliang,

Sure. First a correction: when I counted, I only looked at .rst files. With the .txt files included, ja_JP and ko_KR do not fully mirror the original paths either, so my earlier statement about them was wrong. The full list follows, translation first and current original below.

The 14 .rst files. Original moved, translation not moved with it:

sp_SP/process/magic-number.rst
-> staging/magic-number.rst
sp_SP/wrappers/memory-barriers.rst
-> core-api/wrappers/memory-barriers.rst
zh_CN/dev-tools/gdb-kernel-debugging.rst
-> process/debugging/gdb-kernel-debugging.rst
zh_CN/filesystems/gfs2.rst
-> filesystems/gfs2/index.rst
zh_CN/filesystems/gfs2-glocks.rst
-> filesystems/gfs2/glocks.rst
zh_CN/filesystems/gfs2-uevents.rst
-> filesystems/gfs2/uevents.rst
zh_CN/networking/xfrm_proc.rst
-> networking/xfrm/xfrm_proc.rst

Quoted 8 lines

zh_CN/process/magic-number.rst
-> staging/magic-number.rst
zh_TW/admin-guide/security-bugs.rst
-> process/security-bugs.rst
zh_TW/dev-tools/gdb-kernel-debugging.rst
-> process/debugging/gdb-kernel-debugging.rst
zh_TW/process/magic-number.rst
-> staging/magic-number.rst

Good job. I will quickly verify them and send a patch to move them.

Quoted 36 lines

Document exists only in the translation:

zh_CN/glossary.rst
zh_CN/how-to.rst
zh_TW/glossary.rst

As Chen-Yu pointed out, the three zh_TW moves are already in the zh_TW tree and will go away once that series lands upstream.

The .txt files whose original is now an .rst file elsewhere:

zh_CN/arch/arm/kernel_user_helpers.txt zh_TW/arch/arm/kernel_user_helpers.txt
-> arch/arm/kernel_user_helpers.rst zh_CN/arch/arm64/{booting,legacy_instructions,memory, silicon-errata,tagged-pointers}.txt zh_TW/arch/arm64/{booting,legacy_instructions,memory, silicon-errata,tagged-pointers}.txt
-> arch/arm64/*.rst zh_CN/filesystems/sysfs.txt zh_TW/filesystems/sysfs.txt
-> filesystems/sysfs.rst zh_CN/video4linux/omap3isp.txt
-> admin-guide/media/omap3isp.rst zh_CN/video4linux/v4l2-framework.txt
-> split into driver-api/media/v4l2-*.rst zh_TW/IRQ.txt
-> core-api/irq/index.rst (according to its own header) zh_TW/io_ordering.txt
-> driver-api/io_ordering.rst ja_JP/stable_api_nonsense.txt ko_KR/stable_api_nonsense.txt
-> process/stable-api-nonsense.rst ja_JP/stable_kernel_rules.txt
-> process/stable-kernel-rules.rst

Quoted 5 lines

These .txt files are not part of the Sphinx build, so the language switcher never sees them, but they still break the path mapping that checktransupdate.py relies on. Whether each one should be converted and moved, or dropped as outdated, is up to the maintainers of each translation.

It seems the original English documentation moves fast. I would write a script or skill to check this relationship maybe daily or weekly.

Dongliang Mu

Quoted 167 lines

Thanks,
Daniel

Em qui., 22 de out. de 2026 às 23:10, Dongliang Mu <[email protected]> escreveu:

Quoted 161 lines · Daniel Pereira
Quoted 25 lines · Dongliang Mu
Quoted 3 lines

So my suggestion is that, after confirming all the translated docuementation follows this style, we can delete this field and write this relocation style in the translation guidance.

Hi Weijie, Dongliang, Alex, Jani,

I checked docs-next. it_IT, pt_BR, ja_JP and ko_KR already mirror the original path for every file. There are 14 files in sp_SP, zh_CN and zh_TW that do not, for two reasons:

- the original has moved and the translation was not moved with it:
magic-number (now in staging/), gdb-kernel-debugging (now in process/debugging/), security-bugs (now in process/), xfrm_proc (now in networking/xfrm/), memory-barriers (now in core-api/wrappers/), and the three gfs2 documents in zh_CN;
- the document exists only in the translation: glossary.rst in zh_CN and zh_TW, and how-to.rst in zh_CN.

So I agree with Dongliang's order. For v3 of the guide I propose:

- state the path mirroring as a rule, since the language switcher and checktransupdate.py both depend on it;
- describe ":Original:" as optional and not needed when the path mirrors the original, instead of showing it in the header example.

Quoted 4 lines

Moving the files above and removing the existing ":Original:" fields can then be done per language, as separate series, by people who know each translation. I can send the moves for the files whose originals were relocated, if the maintainers of those translations agree.

I agree with this proposal. Ask maintainers of each translation to solves these issues first.

Daniel, can you list all 14 files in sp_SP, zh_CN and zh_TW?

Dongliang Mu

Quoted 121 lines

Thanks,
Daniel

Em seg., 19 de out. de 2026 às 01:37, 慕冬亮 <[email protected]> escreveu:

Quoted 116 lines
Quoted 95 lines

发件人: "Weijie Yuan" <[email protected]>
发送时间:2026-10-18 11:40:09 (星期日)
收件人: "Daniel Pereira" <[email protected]>
抄送: "Jonathan Corbet" <[email protected]>, "Shuah Khan" <[email protected]>, "Randy Dunlap" <[email protected]>, "Alex Shi" <[email protected]>, "Yanteng Si" <[email protected]>, "Dongliang Mu" <[email protected]>, "Chen-Yu Yeh" <[email protected]>, "Federico Vaga" <[email protected]>, "Akira Yokosawa" <[email protected]>, "Carlos Bilbao" <[email protected]>, "Avadhut Naik" <[email protected]>, [email protected], [email protected], "Jani Nikula" <[email protected]> 主题: Re: [PATCH v2 1/2] docs: doc-guide: add a guide for translators

+cc Jani Nikula

Quoted 41 lines · Daniel Pereira

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 with a full htmldocs build, checkpatch and checktransupdate.py, 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 v2:
- Drop the Assisted-by references from the AI tools section, the tags example and the checklist (Weijie Yuan).
- Use a plain path in the ":Original:" example and drop ":Translator:" from it (Weijie Yuan).

v1: https://lore.kernel.org/linux-doc/[email protected]/

   Documentation/doc-guide/index.rst        |   1 +
   Documentation/doc-guide/translations.rst | 694 +++++++++++++++++++++++
   Documentation/translations/index.rst     |   3 +
   3 files changed, 698 insertions(+)

create mode 100644 Documentation/doc-guide/translations.rst

[...]

Quoted 20 lines
Documentation/doc-guide/translations.rst new file +20 -0
+Anatomy of a translated document
+================================
+
+Location and file name
+----------------------
+
+A translation mirrors the path of its original under the language
+directory, and keeps the same file name::
+
+  Documentation/process/howto.rst
+  Documentation/translations/<lang>/process/howto.rst
+
+Do not translate file or directory names.  The documentation build uses
+this mapping to add, at the top of every page, links to the same page in
+the other languages; it only works if the paths match.
+
+The file header
+---------------
+
+Start the file with the same SPDX license identifier as the original.

Documentation/doc-guide/translations.rst line 164

Quoted 10 lines
Documentation/doc-guide/translations.rst new file +10 -0
+Most translations then indicate, in some form, which document was
+translated and include the language's disclaimer.  For example, the
+Italian translation uses::
+
+  .. include:: ../disclaimer-ita.rst
+
+  :Original: Documentation/core-api/symbol-namespaces.rst
+
+A plain path is enough in the ``:Original:`` field: the documentation
+build turns ``Documentation/...`` paths into links automatically.

Oh, btw. There's a comment about ":Original:" from Jani [1]:

| I'm wondering, are these :Original: fields useful anymore since the
| translations extension adds the button to switch between languages?
|
| The pretty much hard-coded expectation is that the English version at
| path/to/foo.rst is the original, and its translations are at
| translations/xx_YY/path/to/foo.rst.
|
| I.e. neither the HTML nor the RST benefit from it, and it's just
| repetition.
Quoted 1 line

Perhaps we could have a bit of discussion here?

Hi Jani and Weijie,

if all the translation documentation follows the relocation style -

Documentation/XXX/XXX.rst to Documentation/translations/XXX/XXX.rst,

the ":Original:" has no meaning, but actually this convention does not work sometimes.

BTW, tools/docs/checktransupdate.py uses this relocation style in the zh_CN translation. When I try to test this script in other translations, this issue occurs.

So my suggestion is that, after confirming all the translated docuementation follows this style, we can delete this field and write this relocation style in the translation guidance.

Dongliang Mu

Quoted 3 lines

Thanks.

[1] https://lore.kernel.org/linux-doc/[email protected]/

------------------------------
Best regards,
Dongliang Mu

author maintainer
#13 lore raw

Re: [PATCH v2 1/2] docs: doc-guide: add a guide for translators

(Resending to the list: my previous reply went only to Dongliang.)

Quoted 1 line · Dongliang Mu

Good job. I will quickly verify them and send a patch to move them.

Thanks. To avoid overlap, could you confirm which languages your patch covers? I understand zh_CN, and that zh_TW is already handled by Chen-Yu's series. That leaves:

- sp_SP: process/magic-number.rst and wrappers/memory-barriers.rst;
- the .txt files in ja_JP and ko_KR (stable_api_nonsense.txt and stable_kernel_rules.txt), which I think are for their maintainers to convert or drop.

Quoted 3 lines

It seems the original English documentation moves fast. I would write a script or skill to check this relationship maybe daily or weekly.

A periodic check like that would be useful, especially once the guide states the path mirroring as a rule.

For v3 of the guide, this is what I plan, based on the discussion so far:

- state the path mirroring as a rule for translations of English documents, and exempt documents that exist only in a translation, such as a glossary or a language-specific how-to (Chen-Yu);
- describe ":Original:" as optional, and not needed when the path mirrors the original, instead of showing it in the header example (Jani, Weijie, Dongliang);
- drop the generic parts of the sections on writing documentation and sending patches, and link to doc-guide/sphinx.rst and process/submitting-patches.rst instead, keeping only the points specific to translations (Federico).

Federico, I did not see an answer to my last message about this last point. Is keeping those short translation-specific notes fine with you?

Since v3 only states the rule and does not depend on the moves, I intend to send it without waiting for them to land. Dongliang, you suggested removing ":Original:" only after all translations follow the style; v3 only says it is optional, so I believe this is compatible. Please tell me if you would rather I wait.

If anyone has other comments on v2 that I have not covered, please let me know. I will send v3 in a few days.

Thanks,
Daniel

#14 lore raw

Re: [PATCH v2 1/2] docs: doc-guide: add a guide for translators

Hi,

On 10/25/26 22:10, Daniel Pereira wrote:
[...]

Quoted 3 lines

- the .txt files in ja_JP and ko_KR (stable_api_nonsense.txt and stable_kernel_rules.txt), which I think are for their maintainers to convert or drop.

Yes, I will take care of .txt files under ja_JP/.

Thanks, Akira

#15 lore raw

Re: [PATCH v2 1/2] docs: doc-guide: add a guide for translators

In reply to Daniel Pereira
Quoted 24 lines · Daniel Pereira

(Resending to the list: my previous reply went only to Dongliang.)

Quoted 1 line · Dongliang Mu

Good job. I will quickly verify them and send a patch to move them.

Thanks. To avoid overlap, could you confirm which languages your patch covers? I understand zh_CN, and that zh_TW is already handled by Chen-Yu's series. That leaves:

- sp_SP: process/magic-number.rst and wrappers/memory-barriers.rst;
- the .txt files in ja_JP and ko_KR (stable_api_nonsense.txt and stable_kernel_rules.txt), which I think are for their maintainers to convert or drop.

Quoted 3 lines

It seems the original English documentation moves fast. I would write a script or skill to check this relationship maybe daily or weekly.

A periodic check like that would be useful, especially once the guide states the path mirroring as a rule.

For v3 of the guide, this is what I plan, based on the discussion so far:

Quoted 10 lines

- state the path mirroring as a rule for translations of English documents, and exempt documents that exist only in a translation, such as a glossary or a language-specific how-to (Chen-Yu);
- describe ":Original:" as optional, and not needed when the path mirrors the original, instead of showing it in the header example (Jani, Weijie, Dongliang);
- drop the generic parts of the sections on writing documentation and sending patches, and link to doc-guide/sphinx.rst and process/submitting-patches.rst instead, keeping only the points specific to translations (Federico).

Thanks for your effort above, looks good to me in general.

Quoted 2 lines

Federico, I did not see an answer to my last message about this last point. Is keeping those short translation-specific notes fine with you?

Yup, I agree with Federico that for general guidelines, new contributors should refer to the more authoritative ones. (unless there are some translation-specific parts needs to be stressed) This way, if these authoritatice ones change, we don't need to bother to sync them.

However, contrary to this, I would like to know if it is necessary for us to promote b4 a little bit more here. (b4 is already mentioned in SubmittingPatches.)

I'm not sure how many times such situations have occurred: new contributors send patches with duplicate title lines and messy threads, making it difficult to search through them on lore archive; there was a thread breakage due to a problem with their email server..

These are the problems that the new faces on the list are likely to encounter, but B4 (b4 prep) can simplify this process for new contributors. [example trimmed for brevity]

And yes, once these procedures are familiarized with, everyone can work according to their own preferences. However, just like how Konstantin
said: "if you're just starting out, and you don't already have a workflow, hopefully this(b4) gives a good workflow for you to try and follow."

Comments are appreciated. Thanks!

maintainer
#16 lore raw

Re: [PATCH v2 1/2] docs: doc-guide: add a guide for translators

In reply to Daniel Pereira
Quoted 13 lines · Daniel Pereira

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.

Quoted 2 lines

Add Documentation/doc-guide/translations.rst, a guide that covers the whole workflow of a translation:

So I finally managed to read through this ... sorry for taking so long. Thanks for putting this together, I think it will be useful.

I don't have a lot of comments beyond what others have particularly said. I would definitely echo Federico's suggestion about not duplicating the material found in the other process documents. Length and verbosity makes documents less approachable, so anything you can do to make this one more concise will help. I'd just tell people to read and understand the relevant process documents.

One little thing I might add: anybody who spends time with our documentation will surely find things that can be improved in the original as well. I'd encourage all translators to send fixes to the English versions when they find these things; that will make it better for everybody.

Thanks,

jon

author maintainer
#17 lore raw

PATCH v2 2/2 docs: pt_BR: translate doc-guide/translations.rst

In reply to Daniel Pereira

Translate 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, the "Update the translation through commit" line suggested by the guide is left out here.

Create Documentation/translations/pt_BR/doc-guide/ with an index that lists the translated document and the ones still to be translated, and link it from the pt_BR top-level index, in the same position as the "Development tools and processes" section of the English index.

---
Changes in v2:
- Follow the changes to the original in patch 1.

v1: https://lore.kernel.org/linux-doc/[email protected]/

 .../translations/pt_BR/doc-guide/index.rst    |  19 +
 .../pt_BR/doc-guide/translations.rst          | 711 ++++++++++++++++++
 Documentation/translations/pt_BR/index.rst    |  11 +
 3 files changed, 741 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
new file mode 100644
index 000000000..557feb762
@@ -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 +711 -0

711 lines not on this page · raw message

Documentation/translations/pt_BR/index.rst +11 -0
index 5557c5e4e..23d27813d 100644
@@ -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.47.3
Acked-by on the v2 series
#18 lore raw
In reply to Daniel Pereira
Quoted 46 lines · Daniel Pereira

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. As a result, the same problems keep coming up in the review of translation patches: labels copied from the original that collide with the English ones, partial builds that hide those collisions, documents left out of any toctree, missing commit descriptions and missing recipients.

Patch 1 adds Documentation/doc-guide/translations.rst, a guide that covers the whole workflow of a translation, from choosing what to translate to sending the patch and keeping the translation up to date.

Patch 2 translates the guide into Brazilian Portuguese. Since it is based on the original added by patch 1, whose 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.

Both patches were checked with a full "make htmldocs" build, with no new warnings, and with scripts/checkpatch.pl --strict.

Changes in v2:
- Drop the references to the Assisted-by tag, which was removed from coding-assistants.rst and submitting-patches.rst by commit 1e035297ffda ("docs: remove Assisted-by references"). The guide now only says that Signed-off-by can only be added by the human who certifies the contribution (Weijie Yuan).
- Use a plain path in the ":Original:" example, which is what most translations do and which the documentation build already turns into a link, and drop the ":Translator:" line from it (Weijie Yuan).
- Rebase on current docs-next.
- Cc the translation maintainers, so that every team can comment.

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      | 694 +++++++++++++++++
  Documentation/translations/index.rst          |   3 +
  .../translations/pt_BR/doc-guide/index.rst    |  19 +
  .../pt_BR/doc-guide/translations.rst          | 711 ++++++++++++++++++
  Documentation/translations/pt_BR/index.rst    |  11 +
  6 files changed, 1439 insertions(+)
Quoted 6 lines

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

base-commit: 90d9f76ccb72ec024ef476b4229f3dd1957d7b26