Skip to content

Commit f2f2e73

Browse files
committed
sorted lists and rewrapped comments
1 parent dbd1e1b commit f2f2e73

File tree

1 file changed

+26
-25
lines changed

1 file changed

+26
-25
lines changed

tools/update_cc4_includes.py

+26-25
Original file line numberDiff line numberDiff line change
@@ -45,44 +45,44 @@ class UpdateLicenseCode(object):
4545

4646
iso_to_language = {
4747
"ar": "العربية",
48+
"be": "Беларуская",
49+
"bn": "বাংলা",
50+
"ca": "Català",
51+
"cs": "čeština",
52+
"da": "Dansk",
4853
"de": "Deutsch",
54+
"el": "Ελληνικά",
4955
"en": "English",
50-
"fi": "suomeksi",
56+
"eo": "Esperanto",
57+
"es": "Español",
58+
"es_ES": "Castellano (España)",
59+
"eu": "euskara",
5160
"fa": "پارسی",
61+
"fi": "suomeksi",
5262
"fr": "français",
63+
"gl": "Galego",
5364
"hr": "hrvatski",
65+
"hu": "Magyar",
5466
"id": "bahasa Indonesia",
67+
"is": "Íslenska",
5568
"it": "italiano",
5669
"ja": "日本語",
70+
"ko": "한국어",
71+
"lt": "Lietuvių",
72+
"lv": "latviski",
5773
"mi": "Te Reo Māori",
74+
"ms": "Bahasa Malaysia",
5875
"nl": "Nederlands",
5976
"no": "norsk",
6077
"pl": "polski",
61-
"sv": "svenska",
62-
"tr": "Türkçe",
63-
"uk": "українська",
64-
"ru": "русский",
6578
"pt": "Português",
66-
"lt": "Lietuvių",
67-
"lv": "latviski",
68-
"es": "Español",
69-
"ms": "Bahasa Malaysia",
70-
"ca": "Català",
71-
"da": "Dansk",
72-
"eo": "Esperanto",
73-
"gl": "Galego",
74-
"hu": "Magyar",
7579
"ro": "română",
80+
"ru": "русский",
7681
"sl": "Slovenščina",
77-
"is": "Íslenska",
78-
"cs": "čeština",
79-
"el": "Ελληνικά",
80-
"be": "Беларуская",
81-
"bn": "বাংলা",
82+
"sv": "svenska",
83+
"tr": "Türkçe",
84+
"uk": "українська",
8285
"zh": "中文",
83-
"ko": "한국어",
84-
"es_ES": "Castellano (España)",
85-
"eu": "euskara",
8686
"zh-Hans": "中文",
8787
}
8888

@@ -223,8 +223,8 @@ def add_includes(self, content):
223223

224224
def add_language_selector(self, content, filepath):
225225
"""Build and insert a language selector dropdown list."""
226-
# Get a list of all the other languages for this license type and store it so
227-
# it can be reused.
226+
# Get a list of all the other languages for this license type and store
227+
# it so it can be reused.
228228
license_data = self.parse_filename(filepath)
229229
if license_data["type"] not in self.languages:
230230
self.languages[license_data["type"]] = []
@@ -250,7 +250,8 @@ def add_language_selector(self, content, filepath):
250250
selected = ""
251251
if iso_code == current_language:
252252
selected = ' selected="selected" '
253-
# Determine to option value for the language. English breaks the pattern so handle it differently.
253+
# Determine to option value for the language. English breaks the
254+
# pattern so handle it differently.
254255
option_value = "legalcode." + iso_code
255256
if iso_code == "en":
256257
option_value = "legalcode"

0 commit comments

Comments
 (0)