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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




在 2023/10/29 02:51, Vegard Nossum 写道:

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)',

Yes, but we need to capitalize the first letter, just like:

'zh_CN': 'Chinese (Simplified)'
'zh_TW': 'Chinese (Traditional)',


see <https://translations.launchpad.net/ubuntu>


Thanks,

Yanteng


Thoughts?


Vegard





[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux