Skip to content

Commit add78a7

Browse files
author
_pants
committed
use localized country names and show stats in country titles
1 parent c4fcf72 commit add78a7

File tree

2 files changed

+251
-2
lines changed

2 files changed

+251
-2
lines changed

app/js/i18n.js

Lines changed: 250 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,256 @@ angular.module('app.i18n', [])
170170
CONTINUE_IN_GET_MODE: 'Continue in Get Access Mode',
171171
CONFIRM_RESET_TITLE: 'Confirm Reset',
172172
CONFIRM_RESET_PROMPT: 'Resetting Lantern will clear all saved information since it was set up.',
173-
BUG_REPORT_PROMPT: 'Additional information describing what happened'
173+
BUG_REPORT_PROMPT: 'Additional information describing what happened',
174+
AD: 'Andorra',
175+
AE: 'United Arab Emirates',
176+
AF: 'Afghanistan',
177+
AG: 'Antigua and Barbuda',
178+
AI: 'Anguilla',
179+
AL: 'Albania',
180+
AM: 'Armenia',
181+
AO: 'Angola',
182+
AQ: 'Antarctica',
183+
AR: 'Argentina',
184+
AS: 'American Samoa',
185+
AT: 'Austria',
186+
AU: 'Australia',
187+
AW: 'Aruba',
188+
AX: '\xc5land Islands',
189+
AZ: 'Azerbaijan',
190+
BA: 'Bosnia and Herzegovina',
191+
BB: 'Barbados',
192+
BD: 'Bangladesh',
193+
BE: 'Belgium',
194+
BF: 'Burkina Faso',
195+
BG: 'Bulgaria',
196+
BH: 'Bahrain',
197+
BI: 'Burundi',
198+
BJ: 'Benin',
199+
BL: 'Saint Barth\xe9lemy',
200+
BM: 'Bermuda',
201+
BN: 'Brunei Darussalam',
202+
BO: 'Bolivia, Plurinational State of',
203+
BQ: 'Bonaire, Sint Eustatius and Saba',
204+
BR: 'Brazil',
205+
BS: 'Bahamas',
206+
BT: 'Bhutan',
207+
BV: 'Bouvet Island',
208+
BW: 'Botswana',
209+
BY: 'Belarus',
210+
BZ: 'Belize',
211+
CA: 'Canada',
212+
CC: 'Cocos (Keeling) Islands',
213+
CD: 'Congo, the Democratic Republic of the',
214+
CF: 'Central African Republic',
215+
CG: 'Congo',
216+
CH: 'Switzerland',
217+
CI: "C\xf4te d'Ivoire",
218+
CK: 'Cook Islands',
219+
CL: 'Chile',
220+
CM: 'Cameroon',
221+
CN: 'China',
222+
CO: 'Colombia',
223+
CR: 'Costa Rica',
224+
CU: 'Cuba',
225+
CV: 'Cape Verde',
226+
CW: 'Cura\xe7ao',
227+
CX: 'Christmas Island',
228+
CY: 'Cyprus',
229+
CZ: 'Czech Republic',
230+
DE: 'Germany',
231+
DJ: 'Djibouti',
232+
DK: 'Denmark',
233+
DM: 'Dominica',
234+
DO: 'Dominican Republic',
235+
DZ: 'Algeria',
236+
EC: 'Ecuador',
237+
EE: 'Estonia',
238+
EG: 'Egypt',
239+
EH: 'Western Sahara',
240+
ER: 'Eritrea',
241+
ES: 'Spain',
242+
ET: 'Ethiopia',
243+
FI: 'Finland',
244+
FJ: 'Fiji',
245+
FK: 'Falkland Islands (Malvinas)',
246+
FM: 'Micronesia, Federated States of',
247+
FO: 'Faroe Islands',
248+
FR: 'France',
249+
GA: 'Gabon',
250+
GB: 'United Kingdom',
251+
GD: 'Grenada',
252+
GE: 'Georgia',
253+
GF: 'French Guiana',
254+
GG: 'Guernsey',
255+
GH: 'Ghana',
256+
GI: 'Gibraltar',
257+
GL: 'Greenland',
258+
GM: 'Gambia',
259+
GN: 'Guinea',
260+
GP: 'Guadeloupe',
261+
GQ: 'Equatorial Guinea',
262+
GR: 'Greece',
263+
GS: 'South Georgia and the South Sandwich Islands',
264+
GT: 'Guatemala',
265+
GU: 'Guam',
266+
GW: 'Guinea-Bissau',
267+
GY: 'Guyana',
268+
HK: 'Hong Kong',
269+
HM: 'Heard Island and McDonald Islands',
270+
HN: 'Honduras',
271+
HR: 'Croatia',
272+
HT: 'Haiti',
273+
HU: 'Hungary',
274+
ID: 'Indonesia',
275+
IE: 'Ireland',
276+
IL: 'Israel',
277+
IM: 'Isle of Man',
278+
IN: 'India',
279+
IO: 'British Indian Ocean Territory',
280+
IQ: 'Iraq',
281+
IR: 'Iran, Islamic Republic of',
282+
IS: 'Iceland',
283+
IT: 'Italy',
284+
JE: 'Jersey',
285+
JM: 'Jamaica',
286+
JO: 'Jordan',
287+
JP: 'Japan',
288+
KE: 'Kenya',
289+
KG: 'Kyrgyzstan',
290+
KH: 'Cambodia',
291+
KI: 'Kiribati',
292+
KM: 'Comoros',
293+
KN: 'Saint Kitts and Nevis',
294+
KP: "Korea, Democratic People's Republic of",
295+
KR: 'Korea, Republic of',
296+
KW: 'Kuwait',
297+
KY: 'Cayman Islands',
298+
KZ: 'Kazakhstan',
299+
LA: "Lao People's Democratic Republic",
300+
LB: 'Lebanon',
301+
LC: 'Saint Lucia',
302+
LI: 'Liechtenstein',
303+
LK: 'Sri Lanka',
304+
LR: 'Liberia',
305+
LS: 'Lesotho',
306+
LT: 'Lithuania',
307+
LU: 'Luxembourg',
308+
LV: 'Latvia',
309+
LY: 'Libya',
310+
MA: 'Morocco',
311+
MC: 'Monaco',
312+
MD: 'Moldova, Republic of',
313+
ME: 'Montenegro',
314+
MF: 'Saint Martin (French part)',
315+
MG: 'Madagascar',
316+
MH: 'Marshall Islands',
317+
MK: 'Macedonia, the former Yugoslav Republic of',
318+
ML: 'Mali',
319+
MM: 'Myanmar',
320+
MN: 'Mongolia',
321+
MO: 'Macao',
322+
MP: 'Northern Mariana Islands',
323+
MQ: 'Martinique',
324+
MR: 'Mauritania',
325+
MS: 'Montserrat',
326+
MT: 'Malta',
327+
MU: 'Mauritius',
328+
MV: 'Maldives',
329+
MW: 'Malawi',
330+
MX: 'Mexico',
331+
MY: 'Malaysia',
332+
MZ: 'Mozambique',
333+
NA: 'Namibia',
334+
NC: 'New Caledonia',
335+
NE: 'Niger',
336+
NF: 'Norfolk Island',
337+
NG: 'Nigeria',
338+
NI: 'Nicaragua',
339+
NL: 'Netherlands',
340+
NO: 'Norway',
341+
NP: 'Nepal',
342+
NR: 'Nauru',
343+
NU: 'Niue',
344+
NZ: 'New Zealand',
345+
OM: 'Oman',
346+
PA: 'Panama',
347+
PE: 'Peru',
348+
PF: 'French Polynesia',
349+
PG: 'Papua New Guinea',
350+
PH: 'Philippines',
351+
PK: 'Pakistan',
352+
PL: 'Poland',
353+
PM: 'Saint Pierre and Miquelon',
354+
PN: 'Pitcairn',
355+
PR: 'Puerto Rico',
356+
PS: 'Palestinian Territory, Occupied',
357+
PT: 'Portugal',
358+
PW: 'Palau',
359+
PY: 'Paraguay',
360+
QA: 'Qatar',
361+
RE: 'R\xe9union',
362+
RO: 'Romania',
363+
RS: 'Serbia',
364+
RU: 'Russian Federation',
365+
RW: 'Rwanda',
366+
SA: 'Saudi Arabia',
367+
SB: 'Solomon Islands',
368+
SC: 'Seychelles',
369+
SD: 'Sudan',
370+
SE: 'Sweden',
371+
SG: 'Singapore',
372+
SH: 'Saint Helena, Ascension and Tristan da Cunha',
373+
SI: 'Slovenia',
374+
SJ: 'Svalbard and Jan Mayen',
375+
SK: 'Slovakia',
376+
SL: 'Sierra Leone',
377+
SM: 'San Marino',
378+
SN: 'Senegal',
379+
SO: 'Somalia',
380+
SR: 'Suriname',
381+
SS: 'South Sudan',
382+
ST: 'Sao Tome and Principe',
383+
SV: 'El Salvador',
384+
SX: 'Sint Maarten (Dutch part)',
385+
SY: 'Syrian Arab Republic',
386+
SZ: 'Swaziland',
387+
TC: 'Turks and Caicos Islands',
388+
TD: 'Chad',
389+
TF: 'French Southern Territories',
390+
TG: 'Togo',
391+
TH: 'Thailand',
392+
TJ: 'Tajikistan',
393+
TK: 'Tokelau',
394+
TL: 'Timor-Leste',
395+
TM: 'Turkmenistan',
396+
TN: 'Tunisia',
397+
TO: 'Tonga',
398+
TR: 'Turkey',
399+
TT: 'Trinidad and Tobago',
400+
TV: 'Tuvalu',
401+
TW: 'Taiwan, Province of China',
402+
TZ: 'Tanzania, United Republic of',
403+
UA: 'Ukraine',
404+
UG: 'Uganda',
405+
UM: 'United States Minor Outlying Islands',
406+
US: 'United States',
407+
UY: 'Uruguay',
408+
UZ: 'Uzbekistan',
409+
VA: 'Holy See (Vatican City State)',
410+
VC: 'Saint Vincent and the Grenadines',
411+
VE: 'Venezuela, Bolivarian Republic of',
412+
VG: 'Virgin Islands, British',
413+
VI: 'Virgin Islands, U.S.',
414+
VN: 'Viet Nam',
415+
VU: 'Vanuatu',
416+
WF: 'Wallis and Futuna',
417+
WS: 'Samoa',
418+
YE: 'Yemen',
419+
YT: 'Mayotte',
420+
ZA: 'South Africa',
421+
ZM: 'Zambia',
422+
ZW: 'Zimbabwe'
174423
}
175424
})
176425
// https://groups.google.com/d/msg/angular/641c1ykOX4k/hcXI5HsSD5MJ

app/partials/vis.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<svg id="vis" ng-controller="VisCtrl" ng-show="model.showVis">
22
<g id="countries">
33
<g ng-repeat="d in countryGeometries">
4-
<title>{{ d.alpha2 }}</title>
4+
<title>{{ d.alpha2 | i18n }}: {{ model.countries[d.alpha2].nusers.online || 0 }} users online</title><!-- XXX i18n -->
55
<path d="{{ countryPaths[d.alpha2] }}" fill="rgba(255, 255, 255, {{ opacityByCountry[d.alpha2] || 0 }})" class="{{ d.alpha2 }}"/>
66
</g>
77
</g>

0 commit comments

Comments
 (0)