[tor-commits] [check/master] Regional translation names in their language
arlo at torproject.org
arlo at torproject.org
Sun Mar 23 18:38:01 UTC 2014
commit 27a7635660c10fb136ba425225f37567a0071cee
Author: Arlo Breault <arlolra at gmail.com>
Date: Sun Mar 23 11:28:19 2014 -0700
Regional translation names in their language
* Warn if we're missing any.
---
utils.go | 98 +++++++++++++++++++++++++++++++++++++-------------------------
1 file changed, 58 insertions(+), 40 deletions(-)
diff --git a/utils.go b/utils.go
index 1c85b28..737aa29 100644
--- a/utils.go
+++ b/utils.go
@@ -126,47 +126,64 @@ type locale struct {
func GetLocaleList(base string) map[string]string {
// populated from https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
+ // and https://sites.google.com/site/opti365/translate_codes
haveTranslatedNames := map[string]string{
- "ar": "اÙعربÙØ©",
- "bs": "Bosanski jezik",
- "ca": "Català ",
- "cs": "ÄeÅ¡tina",
- "cy": "Cymraeg",
- "da": "Dansk",
- "de": "Deutsch",
- "el": "ελληνικά",
- "es": "Español",
- "et": "Eesti",
- "eu": "Euskara",
- "fa": "ÙارسÛ",
- "fi": "Suomi",
- "fr": "Français",
- "gl": "Galego",
- "he": "×¢×ר×ת",
- "hi": "हिनà¥à¤¦à¥, हिà¤à¤¦à¥",
- "hr": "Hrvatski jezik",
- "hu": "Magyar",
- "id": "Bahasa Indonesia",
- "it": "Italiano",
- "ja": "æ¥æ¬èª",
- "km": "ááá",
- "kn": "à²à²¨à³à²¨à²¡",
- "ko": "íêµì´",
- "lv": "Latviešu valoda",
- "my": "ááá¬á
á¬",
- "nb": "Norsk bokmål",
- "nl": "Nederlands",
- "pa": "ਪੰà¨à¨¾à¨¬à©",
- "pl": "JÄzyk polski",
- "pt": "Português",
- "ru": "ÑÑÑÑкий ÑзÑк",
- "sk": "SlovenÄina",
- "sl": "Slovenski jezik",
- "sr": "ÑÑпÑки Ñезик",
- "sv": "Svenska",
- "th": "à¹à¸à¸¢",
- "tr": "Türkçe",
- "uk": "ÑкÑаÑнÑÑка мова",
+ "af": "Afrikaans",
+ "ar": "اÙعربÙØ©",
+ "bs": "Bosanski jezik",
+ "ca": "Català ",
+ "cs": "ÄeÅ¡tina",
+ "cy": "Cymraeg",
+ "da": "Dansk",
+ "de": "Deutsch",
+ "el": "ελληνικά",
+ "eo": "Esperanto",
+ "es": "Español",
+ "es_AR": "Español (Argentina)",
+ "et": "Eesti",
+ "eu": "Euskara",
+ "fa": "ÙارسÛ",
+ "fi": "Suomi",
+ "fr": "Français",
+ "fr_CA": "Français (Canadien)",
+ "gl": "Galego",
+ "he": "×¢×ר×ת",
+ "hi": "हिनà¥à¤¦à¥",
+ "hr": "Hrvatski jezik",
+ "hr_HR": "Hrvatski jezik (Croatia)",
+ "hu": "Magyar",
+ "id": "Bahasa Indonesia",
+ "it": "Italiano",
+ "ja": "æ¥æ¬èª",
+ "km": "ááá",
+ "kn": "à²à²¨à³à²¨à²¡",
+ "ko": "íêµì´",
+ "ko_KR": "íêµì´ (South Korea)",
+ "lv": "Latviešu valoda",
+ "mk": "македонÑки Ñазик",
+ "ms_MY": "Bahasa Melayu",
+ "my": "ááá¬á
á¬",
+ "nb": "Norsk bokmål",
+ "nl": "Nederlands",
+ "nl_BE": "Vlaams",
+ "pa": "ਪੰà¨à¨¾à¨¬à©",
+ "pl": "JÄzyk polski",
+ "pl_PL": "JÄzyk polski (Poland)",
+ "pt": "Português",
+ "pt_BR": "Português do Brasil",
+ "ru": "ÑÑÑÑкий ÑзÑк",
+ "si_LK": "à·à·à¶à·à¶½",
+ "sk": "SlovenÄina",
+ "sl": "Slovenski jezik",
+ "sl_SI": "Slovenski jezik (Slovenia)",
+ "sr": "ÑÑпÑки Ñезик",
+ "sv": "Svenska",
+ "te_IN": "à°¤à±à°²à±à°à±",
+ "th": "à¹à¸à¸¢",
+ "tr": "Türkçe",
+ "uk": "ÑкÑаÑнÑÑка мова",
+ "zh_CN": "ä¸æç®ä½",
+ "zh_TW": "ä¸æç¹é«",
}
// for all folders in locale which match a locale from https://www.transifex.com/api/2/languages/
@@ -235,6 +252,7 @@ func GetInstalledLocales(base string, webLocales map[string]locale, nameTranslat
if transName := nameTranslations[code]; transName != "" {
locales[code] = transName
} else {
+ log.Print("No translated name for code: " + code)
locales[code] = webLocales[code].Name
}
}
More information about the tor-commits
mailing list