Merge pull request #32933 from a-mccarthy/fixes-31657

Update config.toml for language name standardization
pull/34347/head^2
Kubernetes Prow Robot 2022-06-16 22:02:32 -07:00 committed by GitHub
commit 014979f34a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 18 deletions

View File

@ -305,7 +305,8 @@ languagedirection = "ltr"
[languages.zh-cn] [languages.zh-cn]
title = "Kubernetes" title = "Kubernetes"
description = "生产级别的容器编排系统" description = "生产级别的容器编排系统"
languageName = "中文 Chinese" languageName = "中文 (Chinese)"
languageNameLatinScript = "Chinese"
weight = 2 weight = 2
contentDir = "content/zh-cn" contentDir = "content/zh-cn"
languagedirection = "ltr" languagedirection = "ltr"
@ -317,7 +318,8 @@ language_alternatives = ["en"]
[languages.ko] [languages.ko]
title = "Kubernetes" title = "Kubernetes"
description = "운영 수준의 컨테이너 오케스트레이션" description = "운영 수준의 컨테이너 오케스트레이션"
languageName = "한국어 Korean" languageName = "한국어 (Korean)"
languageNameLatinScript = "Korean"
weight = 3 weight = 3
contentDir = "content/ko" contentDir = "content/ko"
languagedirection = "ltr" languagedirection = "ltr"
@ -329,7 +331,8 @@ language_alternatives = ["en"]
[languages.ja] [languages.ja]
title = "Kubernetes" title = "Kubernetes"
description = "プロダクショングレードのコンテナ管理基盤" description = "プロダクショングレードのコンテナ管理基盤"
languageName = "日本語 Japanese" languageName = "日本語 (Japanese)"
languageNameLatinScript = "Japanese"
weight = 4 weight = 4
contentDir = "content/ja" contentDir = "content/ja"
languagedirection = "ltr" languagedirection = "ltr"
@ -341,7 +344,8 @@ language_alternatives = ["en"]
[languages.fr] [languages.fr]
title = "Kubernetes" title = "Kubernetes"
description = "Solution professionnelle dorchestration de conteneurs" description = "Solution professionnelle dorchestration de conteneurs"
languageName = "Français" languageName = "Français (French)"
languageNameLatinScript = "Français"
weight = 5 weight = 5
contentDir = "content/fr" contentDir = "content/fr"
languagedirection = "ltr" languagedirection = "ltr"
@ -354,7 +358,8 @@ language_alternatives = ["en"]
[languages.it] [languages.it]
title = "Kubernetes" title = "Kubernetes"
description = "Orchestrazione di Container in produzione" description = "Orchestrazione di Container in produzione"
languageName = "Italiano" languageName = "Italiano (Italian)"
languageNameLatinScript = "Italiano"
weight = 6 weight = 6
contentDir = "content/it" contentDir = "content/it"
languagedirection = "ltr" languagedirection = "ltr"
@ -367,7 +372,8 @@ language_alternatives = ["en"]
[languages.no] [languages.no]
title = "Kubernetes" title = "Kubernetes"
description = "Production-Grade Container Orchestration" description = "Production-Grade Container Orchestration"
languageName = "Norsk" languageName = "Norsk (Norwegian)"
languageNameLatinScript = "Norsk"
weight = 7 weight = 7
contentDir = "content/no" contentDir = "content/no"
languagedirection = "ltr" languagedirection = "ltr"
@ -380,7 +386,8 @@ language_alternatives = ["en"]
[languages.de] [languages.de]
title = "Kubernetes" title = "Kubernetes"
description = "Produktionsreife Container-Orchestrierung" description = "Produktionsreife Container-Orchestrierung"
languageName = "Deutsch" languageName = "Deutsch (German)"
languageNameLatinScript = "Deutsch"
weight = 8 weight = 8
contentDir = "content/de" contentDir = "content/de"
languagedirection = "ltr" languagedirection = "ltr"
@ -393,7 +400,8 @@ language_alternatives = ["en"]
[languages.es] [languages.es]
title = "Kubernetes" title = "Kubernetes"
description = "Orquestación de contenedores para producción" description = "Orquestación de contenedores para producción"
languageName = "Español" languageName = "Español (Spanish)"
languageNameLatinScript = "Español"
weight = 9 weight = 9
contentDir = "content/es" contentDir = "content/es"
languagedirection = "ltr" languagedirection = "ltr"
@ -406,8 +414,10 @@ language_alternatives = ["en"]
[languages.pt-br] [languages.pt-br]
title = "Kubernetes" title = "Kubernetes"
description = "Orquestração de contêineres em nível de produção" description = "Orquestração de contêineres em nível de produção"
languageName = "Português" languageName = "Português (Portuguese)"
languageNameLatinScript = "Português"
weight = 10 weight = 10
contentDir = "content/pt-br" contentDir = "content/pt-br"
languagedirection = "ltr" languagedirection = "ltr"
@ -419,7 +429,8 @@ language_alternatives = ["en"]
[languages.id] [languages.id]
title = "Kubernetes" title = "Kubernetes"
description = "Orkestrasi Kontainer dengan Skala Produksi" description = "Orkestrasi Kontainer dengan Skala Produksi"
languageName = "Bahasa Indonesia" languageName ="Bahasa Indonesia"
languageNameLatinScript = "Bahasa Indonesia"
weight = 11 weight = 11
contentDir = "content/id" contentDir = "content/id"
languagedirection = "ltr" languagedirection = "ltr"
@ -432,7 +443,8 @@ language_alternatives = ["en"]
[languages.hi] [languages.hi]
title = "Kubernetes" title = "Kubernetes"
description = "Production-Grade Container Orchestration" description = "Production-Grade Container Orchestration"
languageName = "Hindi" languageName = "हिन्दी (Hindi)"
languageNameLatinScript = "Hindi"
weight = 12 weight = 12
contentDir = "content/hi" contentDir = "content/hi"
languagedirection = "ltr" languagedirection = "ltr"
@ -444,7 +456,8 @@ language_alternatives = ["en"]
[languages.vi] [languages.vi]
title = "Kubernetes" title = "Kubernetes"
description = "Giải pháp điều phối container trong môi trường production" description = "Giải pháp điều phối container trong môi trường production"
languageName = "Tiếng Việt" languageName = "Tiếng Việt (Vietnamese)"
languageNameLatinScript = "Tiếng Việt"
contentDir = "content/vi" contentDir = "content/vi"
weight = 13 weight = 13
languagedirection = "ltr" languagedirection = "ltr"
@ -452,7 +465,8 @@ languagedirection = "ltr"
[languages.ru] [languages.ru]
title = "Kubernetes" title = "Kubernetes"
description = "Первоклассная оркестрация контейнеров" description = "Первоклассная оркестрация контейнеров"
languageName = "Русский" languageName = "Русский (Russian)"
languageNameLatinScript = "Russian"
weight = 14 weight = 14
contentDir = "content/ru" contentDir = "content/ru"
languagedirection = "ltr" languagedirection = "ltr"
@ -465,7 +479,8 @@ language_alternatives = ["en"]
[languages.pl] [languages.pl]
title = "Kubernetes" title = "Kubernetes"
description = "Produkcyjny system zarządzania kontenerami" description = "Produkcyjny system zarządzania kontenerami"
languageName = "Polski" languageName = "Polski (Polish)"
languageNameLatinScript = "Polski"
weight = 15 weight = 15
contentDir = "content/pl" contentDir = "content/pl"
languagedirection = "ltr" languagedirection = "ltr"
@ -478,7 +493,8 @@ language_alternatives = ["en"]
[languages.uk] [languages.uk]
title = "Kubernetes" title = "Kubernetes"
description = "Довершена система оркестрації контейнерів" description = "Довершена система оркестрації контейнерів"
languageName = "Українська" languageName = "Українська (Ukrainian)"
languageNameLatinScript = "Ukrainian"
weight = 16 weight = 16
contentDir = "content/uk" contentDir = "content/uk"
languagedirection = "ltr" languagedirection = "ltr"

View File

@ -126,12 +126,14 @@ Add a configuration block for the new language to `config.toml`, under the exist
title = "Kubernetes" title = "Kubernetes"
description = "Produktionsreife Container-Verwaltung" description = "Produktionsreife Container-Verwaltung"
languageName = "Deutsch (German)" languageName = "Deutsch (German)"
languageNameLatinScript = "German" languageNameLatinScript = "Deutsch"
contentDir = "content/de" contentDir = "content/de"
weight = 8 weight = 8
``` ```
The value for `languageName` will be listed in language selection bar. Assign "language name in native script (language name in latin script)" to `languageName`, for example, `languageName = "한국어 (Korean)"`. `languageNameLatinScript` can be used to access the language name in latin script and use it in the theme. Assign "language name in latin script" to `languageNameLatinScript`, for example, `languageNameLatinScript ="Korean"`. The value for `languageName` will be listed in language selection bar. Assign "language name in native script and language (English language name in latin script)" to `languageName`. For example, `languageName = "한국어 (Korean)"` or `languageName = "Deutsch (German)"`.
`languageNameLatinScript` can be used to access the language name in latin script and use it in the theme. Assign "language name in latin script" to `languageNameLatinScript`. For example, `languageNameLatinScript ="Korean"` or `languageNameLatinScript = "Deutsch"`.
When assigning a `weight` parameter for your block, find the language block with the highest weight and add 1 to that value. When assigning a `weight` parameter for your block, find the language block with the highest weight and add 1 to that value.
@ -365,4 +367,3 @@ For more information about working from forks or directly from the repository, s
## Upstream contributions ## Upstream contributions
SIG Docs welcomes upstream contributions and corrections to the English source. SIG Docs welcomes upstream contributions and corrections to the English source.