You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: LOCALIZATION.md
+14-9Lines changed: 14 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,26 +57,31 @@ Open a PR with the localization initiation following this example: https://githu
57
57
58
58
To add a new language to the site, modify [config.toml](https://github.com/cncf/glossary/blob/main/config.toml#L54) (Note: localization teams should use their assigned development branch for this).
59
59
60
-
The `[languages]` block of `config.toml` is used to set the language. For instance, `[languages.en]` stands for English and `[languages.ko]` for Korean language configuration. Go to the `[languages]` block in `config.toml` and add a new block for your language-specific configuration. For instance, the Korean localization team added its `[languages.ko]` block after the `[languages.en]` block.
60
+
The `[languages]` block of `config.toml` is used to set the language. For instance, `[languages.en]` stands for English and `[languages.ko]` for Korean language configuration. Go to the `[languages]` block in `config.toml` and find a place for your new localization:
61
+
62
+
- The English language always stays first.
63
+
- Other languages are sorted based on the alphabetized English translation of their names (see how currently existing localizations are ordered as an example).
64
+
- Each localization is written in its own language followed by the English translation in parentheses — e.g., `한국어 (Korean)`.
65
+
- The `weight` parameter in the config is used for sorting (`1` is for English, `2` is for the alphabetically first language, `3` is for the second one, and so on).
66
+
67
+
For instance, you're adding a new block for the Korean localization. You calculated its weight as 8. Find the language block with `weight = 7` and add your new block afterwards:
61
68
62
69
- Example of `New language block for /config.toml`
63
70
```diff
64
71
[languages]
65
-
[languages.en]
66
-
title = "Cloud Native Glossary"
67
-
description = "The CNCF Cloud Native Glossary Project is intended to be used as a reference for common terms used when talking about cloud native applications."
68
-
languageName ="English"
69
-
# Weight used for sorting.
70
-
weight = 1
72
+
...
73
+
weight = 7
71
74
72
75
+[languages.ko]
73
76
+title = "클라우드 네이티브(Cloud Native) 용어집"
74
77
+description = "CNCF 클라우드 네이티브 용어집 프로젝트는 클라우드 네이티브 애플리케이션에 대한 대화를 나눌 때 공통의 용어를 참조하여 사용하도록 하는 목적을 가지고 있다."
75
-
+languageName ="한국어(Korean)"
78
+
+languageName ="한국어(Korean)"
76
79
+contentDir = "content/ko"
77
-
+weight = 2
80
+
+weight = 8
78
81
```
79
82
83
+
Since the `weight` values should always be kept consistent, please **remember to increment the weights** of all the languages following your newly added localization.
84
+
80
85
#### 3-2. Adding a file for site strings
81
86
82
87
`i18n/<localization>.toml` sets up language-specific site strings.
Copy file name to clipboardExpand all lines: config.toml
+60-60Lines changed: 60 additions & 60 deletions
Original file line number
Diff line number
Diff line change
@@ -68,85 +68,85 @@ description = "The CNCF Cloud Native Glossary Project is intended to be used as
68
68
#time_format_default = "02.01.2006"
69
69
#time_format_blog = "02.01.2006"
70
70
71
+
[languages.bn]
72
+
contentDir = "content/bn"
73
+
languageName = "বাংলা (Bengali)"
74
+
title = "ক্লাউড নেটিভ শব্দকোষ"
75
+
weight = 2
76
+
[languages.bn.params]
77
+
description = "CNCF ক্লাউড নেটিভ শব্দকোষ প্রকল্পটি ক্লাউড নেটিভ অ্যাপ্লিকেশন সম্পর্কে কথা বলার সময় ব্যবহৃত সাধারণ পদগুলির জন্য একটি রেফারেন্স হিসাবে ব্যবহার করার উদ্দেশ্যে।"
78
+
79
+
[languages.fr]
80
+
contentDir = "content/fr"
81
+
languageName = "Français (French)"
82
+
title = "Glossaire Cloud Native"
83
+
weight = 3
84
+
[languages.fr.params]
85
+
description = "Le projet de Glossaire CNCF Cloud Native a pour objectif de référencer les termes courants utilisés dans les différentes applications Cloud Natives."
86
+
87
+
[languages.de]
88
+
contentDir = "content/de"
89
+
languageName = "Deutsch (German)"
90
+
title = "Cloud Native Glossar"
91
+
weight = 4
92
+
[languages.de.params]
93
+
description = "Das CNCF Cloud Native Glossar soll als Referenz für gängige Begriffe dienen, die im Zusammenhang mit Cloud Native Anwendungen verwendet werden."
94
+
71
95
[languages.hi]
72
96
contentDir = "content/hi"
73
97
languageName = "हिन्दी (Hindi)"
74
98
title = "क्लाउड नेटिव शब्दावली"
75
-
weight = 2
99
+
weight = 5
76
100
[languages.hi.params]
77
101
description = "CNCF क्लाउड नेटिव शब्दावली परियोजना का उद्देश्य क्लाउड नेटिव एप्लिकेशन के बारे में बात करते समय प्रयोग किए जाने वाले सामान्य शब्दों के संदर्भ के रूप में उपयोग किया जाना है।"
78
102
79
-
[languages.pt-br]
80
-
contentDir = "content/pt-br"
81
-
languageName = "Português"
82
-
title = "Glossário Cloud Native"
83
-
weight = 3
84
-
[languages.pt-br.params]
85
-
description = "O Projeto CNCF Glossário Cloud Native se destina a ser usado como uma referência para termos comuns usados ao falar sobre aplicações nativas de nuvem."
86
-
87
103
[languages.it]
88
104
contentDir = "content/it"
89
-
languageName = "Italiano"
105
+
languageName = "Italiano (Italian)"
90
106
title = "Glossario Cloud Native"
91
-
weight = 4
107
+
weight = 6
92
108
[languages.it.params]
93
109
description = "Il progetto del Glossario CNCF Cloud Native è pensato per essere un riferimento per i termini comuni, usati nell'ambito delle applicazioni cloud native."
description = "CNCF 클라우드 네이티브 용어집 프로젝트는 클라우드 네이티브 애플리케이션을 주제로 대화를 나눌 때 참조할 수 있는 공통의 용어 제공을 목표로 한다."
102
126
103
-
[languages.es]
104
-
contentDir = "content/es"
105
-
languageName = "Español (Spanish)"
106
-
title = "Cloud Native Glosario"
107
-
weight = 6
108
-
[languages.es.params]
109
-
description = "El proyecto de CNCF Cloud Native Glosario pretende ser usado como una referencia para los terminos comunes usados cuando se habla acerca de las aplicaciones nativas para la nube."
127
+
[languages.pt-br]
128
+
contentDir = "content/pt-br"
129
+
languageName = "Português (Portuguese)"
130
+
title = "Glossário Cloud Native"
131
+
weight = 9
132
+
[languages.pt-br.params]
133
+
description = "O Projeto CNCF Glossário Cloud Native se destina a ser usado como uma referência para termos comuns usados ao falar sobre aplicações nativas de nuvem."
description = "CNCF ক্লাউড নেটিভ শব্দকোষ প্রকল্পটি ক্লাউড নেটিভ অ্যাপ্লিকেশন সম্পর্কে কথা বলার সময় ব্যবহৃত সাধারণ পদগুলির জন্য একটি রেফারেন্স হিসাবে ব্যবহার করার উদ্দেশ্যে।"
126
-
127
-
[languages.de]
128
-
contentDir = "content/de"
129
-
languageName = "Deutsch"
130
-
title = "Cloud Native Glossar"
131
-
weight = 9
132
-
[languages.de.params]
133
-
description = "Das CNCF Cloud Native Glossar soll als Referenz für gängige Begriffe dienen, die im Zusammenhang mit Cloud Native Anwendungen verwendet werden."
134
-
135
-
[languages.ur]
136
-
contentDir = "content/ur"
137
-
languageName = "اردو (Urdu)"
138
-
title = "کلاؤڈ کی مقامی لغت"
139
-
weight = 10
140
-
[languages.ur.params]
141
-
description = "CNCF کلاؤڈ کی مقامی لغت کا مقصد کلاؤڈ مقامی ایپلی کیشنز کے بارے میں بات کرتے وقت استعمال ہونے والی عام اصطلاحات کے حوالے کے طور پر استعمال کرنا ہے۔"
142
-
143
-
[languages.fr]
144
-
contentDir = "content/fr"
145
-
languageName = "Français (French)"
146
-
title = "Glossaire Cloud Native"
143
+
[languages.es]
144
+
contentDir = "content/es"
145
+
languageName = "Español (Spanish)"
146
+
title = "Cloud Native Glosario"
147
147
weight = 11
148
-
[languages.fr.params]
149
-
description = "Le projet de Glossaire CNCF Cloud Native a pour objectif de référencer les termes courants utilisés dans les différentes applications Cloud Natives."
148
+
[languages.es.params]
149
+
description = "El proyecto de CNCF Cloud Native Glosario pretende ser usado como una referencia para los terminos comunes usados cuando se habla acerca de las aplicaciones nativas para la nube."
description = "CNCF Cloud Native Sözlüğü projesi, cloud native uygulamalardan bahsederken kullanılan yaygın terimler için bir referans olarak kullanılmak üzere tasarlanmıştır."
170
161
languageName ="Türkçe (Turkish)"
171
162
contentDir = "content/tr"
172
-
# Weight used for sorting.
163
+
weight = 13
164
+
[languages.tr.params]
165
+
description = "CNCF Cloud Native Sözlüğü projesi, cloud native uygulamalardan bahsederken kullanılan yaygın terimler için bir referans olarak kullanılmak üzere tasarlanmıştır."
166
+
167
+
[languages.ur]
168
+
contentDir = "content/ur"
169
+
languageName = "اردو (Urdu)"
170
+
title = "کلاؤڈ کی مقامی لغت"
173
171
weight = 14
172
+
[languages.ur.params]
173
+
description = "CNCF کلاؤڈ کی مقامی لغت کا مقصد کلاؤڈ مقامی ایپلی کیشنز کے بارے میں بات کرتے وقت استعمال ہونے والی عام اصطلاحات کے حوالے کے طور پر استعمال کرنا ہے۔"
0 commit comments