Use whoami for location lookup (#50934)
This commit is contained in:
parent
0cbcb9e0d6
commit
7ff14b47a8
11 changed files with 121 additions and 152 deletions
|
@ -12,3 +12,71 @@ COMMANDS = ("up", "down", "right", "left", "enter", "back", "option", "ps", "ps_
|
|||
|
||||
# Deprecated used for logger/backwards compatibility from 0.89
|
||||
REGIONS = ["R1", "R2", "R3", "R4", "R5"]
|
||||
|
||||
COUNTRYCODE_NAMES = {
|
||||
"AE": "United Arab Emirates",
|
||||
"AR": "Argentina",
|
||||
"AT": "Austria",
|
||||
"AU": "Australia",
|
||||
"BE": "Belgium",
|
||||
"BG": "Bulgaria",
|
||||
"BH": "Bahrain",
|
||||
"BR": "Brazil",
|
||||
"CA": "Canada",
|
||||
"CH": "Switzerland",
|
||||
"CL": "Chile",
|
||||
"CO": "Columbia",
|
||||
"CR": "Costa Rica",
|
||||
"CY": "Cyprus",
|
||||
"CZ": "Czech Republic",
|
||||
"DE": "Germany",
|
||||
"DK": "Denmark",
|
||||
"EC": "Ecuador",
|
||||
"ES": "Spain",
|
||||
"FI": "Finland",
|
||||
"FR": "France",
|
||||
"GB": "United Kingdom",
|
||||
"GR": "Greece",
|
||||
"GT": "Guatemala",
|
||||
"HK": "Hong Kong",
|
||||
"HN": "Honduras",
|
||||
"HR": "Croatia",
|
||||
"HU": "Hungary",
|
||||
"ID": "Indonesia",
|
||||
"IE": "Ireland",
|
||||
"IL": "Israel",
|
||||
"IN": "India",
|
||||
"IS": "Iceland",
|
||||
"IT": "Italy",
|
||||
"JP": "Japan",
|
||||
"KW": "Kuwait",
|
||||
"LB": "Lebanon",
|
||||
"LU": "Luxembourg",
|
||||
"MT": "Malta",
|
||||
"MX": "Mexico",
|
||||
"MY": "Maylasia",
|
||||
"NI": "Nicaragua",
|
||||
"NL": "Nederland",
|
||||
"NO": "Norway",
|
||||
"NZ": "New Zealand",
|
||||
"OM": "Oman",
|
||||
"PA": "Panama",
|
||||
"PE": "Peru",
|
||||
"PL": "Poland",
|
||||
"PT": "Portugal",
|
||||
"QA": "Qatar",
|
||||
"RO": "Romania",
|
||||
"RU": "Russia",
|
||||
"SA": "Saudi Arabia",
|
||||
"SE": "Sweden",
|
||||
"SG": "Singapore",
|
||||
"SI": "Slovenia",
|
||||
"SK": "Slovakia",
|
||||
"SV": "El Salvador",
|
||||
"TH": "Thailand",
|
||||
"TR": "Turkey",
|
||||
"TW": "Taiwan",
|
||||
"UA": "Ukraine",
|
||||
"US": "United States",
|
||||
"ZA": "South Africa",
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue