Re: [PATCH] docs: translations: add translations links when they exist

From: Vegard Nossum
Date: Sat Oct 28 2023 - 14:53:14 EST



This went a bit fast... corrections below.

On 28/10/2023 18:29, Vegard Nossum wrote:
Add a new Sphinx extension that knows about the translations of kernel
documentation and can insert links to the translations at the top of
the document.

[...]

Testing: make htmldocs with v7.3.0.

*Sphinx v7.3.0.

+all_languages = {
+ # English is always first
+ None: 'English',
+
+ # Keep the rest sorted alphabetically
+ 'zh_CN': 'Chinese',
+ 'it_IT': 'Italian',
+ 'ja_JP': 'Japanese',
+ 'ko_KR': 'Korean',
+ 'sp_SP': 'Spanish',
+ 'zh_TW': 'Taiwanese',
+}

I went with my naive understanding of the language codes without double
checking but I think these might be better names:

'zh_CN': 'Chinese (simplified)'
'zh_TW': 'Chinese (traditional)',

Thoughts?


Vegard