[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [check/master] Regional translation names in their language



commit 27a7635660c10fb136ba425225f37567a0071cee
Author: Arlo Breault <arlolra@xxxxxxxxx>
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
 		}
 	}



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits