Re: [PATCH 4/4] docs/zh_TW: add missing :Original: fields

From: Jani Nikula

Date: Tue Sep 29 2026 - 10:40:34 EST


On Tue, 29 Sep 2026, Chen-Yu Yeh <chenyou910331@xxxxxxxxx> wrote:
> Every zh_TW translation names the English document it mirrors in an
> :Original: field, except these four. Add one to each, in the plain path
> form that automarkup turns into a link.

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.

BR,
Jani.

>
> dev-tools/sparse.rst still carries the old plain-text header rather than
> the disclaimer include, so its field goes at the top of the file.
>
> With this, the only .rst files without the field are index.rst,
> disclaimer-zh_TW.rst and glossary.rst, none of which translates an
> English document.
>
> Signed-off-by: Chen-Yu Yeh <chenyou910331@xxxxxxxxx>
> ---
> .../translations/zh_TW/admin-guide/clearing-warn-once.rst | 2 ++
> Documentation/translations/zh_TW/admin-guide/cpu-load.rst | 2 ++
> Documentation/translations/zh_TW/arch/index.rst | 2 ++
> Documentation/translations/zh_TW/dev-tools/sparse.rst | 4 +++-
> 4 files changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/translations/zh_TW/admin-guide/clearing-warn-once.rst b/Documentation/translations/zh_TW/admin-guide/clearing-warn-once.rst
> index 95614600604c..15d54440d224 100644
> --- a/Documentation/translations/zh_TW/admin-guide/clearing-warn-once.rst
> +++ b/Documentation/translations/zh_TW/admin-guide/clearing-warn-once.rst
> @@ -2,6 +2,8 @@
>
> .. include:: ../disclaimer-zh_TW.rst
>
> +:Original: Documentation/admin-guide/clearing-warn-once.rst
> +
> 清除 WARN_ONCE
> --------------
>
> diff --git a/Documentation/translations/zh_TW/admin-guide/cpu-load.rst b/Documentation/translations/zh_TW/admin-guide/cpu-load.rst
> index 20ec5bcd5f18..13f03195ac7e 100644
> --- a/Documentation/translations/zh_TW/admin-guide/cpu-load.rst
> +++ b/Documentation/translations/zh_TW/admin-guide/cpu-load.rst
> @@ -2,6 +2,8 @@
>
> .. include:: ../disclaimer-zh_TW.rst
>
> +:Original: Documentation/admin-guide/cpu-load.rst
> +
> ========
> CPU 負載
> ========
> diff --git a/Documentation/translations/zh_TW/arch/index.rst b/Documentation/translations/zh_TW/arch/index.rst
> index 7c0490589465..724468687c20 100644
> --- a/Documentation/translations/zh_TW/arch/index.rst
> +++ b/Documentation/translations/zh_TW/arch/index.rst
> @@ -1,5 +1,7 @@
> .. SPDX-License-Identifier: GPL-2.0
>
> +:Original: Documentation/arch/index.rst
> +
> 處理器體系結構
> ==============
>
> diff --git a/Documentation/translations/zh_TW/dev-tools/sparse.rst b/Documentation/translations/zh_TW/dev-tools/sparse.rst
> index 7a3487a7b2c7..7ca7fdf6e1e6 100644
> --- a/Documentation/translations/zh_TW/dev-tools/sparse.rst
> +++ b/Documentation/translations/zh_TW/dev-tools/sparse.rst
> @@ -1,4 +1,6 @@
> -Chinese translated version of Documentation/dev-tools/sparse.rst
> +:Original: Documentation/dev-tools/sparse.rst
> +
> +Chinese translated version of Documentation/dev-tools/sparse.rst
>
> If you have any comment or update to the content, please contact the
> original document maintainer directly. However, if you have a problem

--
Jani Nikula, Intel