11 |
t('GeoBlocker')); ?>
12 |
13 |
14 |
t('This is a front end to geo localization services, that allows blocking (beta), delaying (beta) and logging of login attempts from specified countries. ')); ?>
15 |
16 |
t('Login attempts from local network IP addresses are never blocked, delayed or logged.')); ?>
17 |
18 |
t('In the current implementation the login page is normally shown to everybody independent of the country. Also login attempts with a non existing user are failing as usual independent of the country.')); ?>
19 |
20 |
t('Wrong Nextcloud configuration (especially in container) can lead to all accesses seem to come from a local network IP address.')); ?>
21 |
22 |
t('If you are accessing from external network, this should be an external IP address:')); p(' '); p($_['ipAddress']); p(' ');
23 | if (GeoBlocker::isIPAddressLocal($_['ipAddress'])) {
24 | p($l->t('is local.'));
25 | } else {
26 | p($l->t('is external.'));
27 | }
28 | ?>
29 |
30 |
31 |
t('Determination of the country from IP address is only as good as the chosen service.')); ?>
32 |
33 |
t('For help how to setup the localization services, have a look into the Readme in the')); ?>
34 | t('repository')); ?> .
35 |
36 |
37 |
38 |
t('Service')); ?>
39 |
40 |
41 |
42 | t('Choose the service you want to use to determine the country from the IP Address:')); ?>
43 |
44 |
45 |
46 |
47 | getLocationServiceOverview();
49 | $value = 0;
50 | foreach ($service_overview as $service_name => $chosen_service) {
51 | print_unescaped(''.$service_name.' ');
56 | $value = $value +1;
57 | }
58 | ?>
59 |
60 |
61 |
62 |
63 | t('Status of the chosen service: ')); ?>
64 |
65 |
66 |
67 |
68 |
69 | t('Date of the database: '));?>
70 |
71 |
72 |
73 |
74 |
75 |
76 | t('Configuration of the chosen service: ')); ?>
77 |
78 |
79 | t('Location of the database (full path including the file name):')); p(' ');?>
80 |
82 |
83 |
84 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
t('Country Selection')); ?>
96 |
97 |
98 |
99 | t('Choose the selection mode'))?>:
100 |
101 |
102 |
103 | >t('No country is blocked but the selected ones (blocklist)'))?>
106 |
107 | >t('All countries are blocked but the selected ones (allowlist)'))?>
110 |
111 |
112 |
113 |
114 |
115 | t('Select countries from list'))?>:
116 |
117 |
118 |
119 |
120 |
121 |
122 | t('The following countries were selected in the list above: '));?>
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
t('Reaction')); ?>
131 |
132 |
133 |
134 | t('If a login attempt is detected from the chosen countries, the attempt is logged with the following information'));
135 | p(' ');
136 | p($l->t('( be aware of data protection issues depending on your logging strategy)'));?>:
137 |
138 |
139 |
140 | >
143 |
144 | t('with IP Address'))?>
145 |
146 |
147 | >
150 |
151 | t('with Country Code'))?>
152 |
153 |
154 | >
157 |
158 | t('with username'))?>
159 |
160 |
161 |
162 |
163 |
164 | t('In addition, the login attempt can also be delayed and blocked.'))?>
165 | t('(beta version)'))?>:
166 |
167 |
168 | >
171 |
172 | t('Activate delaying of login attempts from IP addresses of the specified countries.'));
173 | p(' ');
174 | p($l->t('(30 seconds)'))?>
175 |
176 |
177 |
178 | >
181 |
182 | t('Activate blocking of login attempts from IP addresses of the specified countries.'));?>
183 |
184 |
185 |
186 |
187 |
t('Test')); ?>
188 |
189 |
209 |
210 |
--------------------------------------------------------------------------------
/l10n/da.js:
--------------------------------------------------------------------------------
1 | OC.L10N.register(
2 | "geoblocker",
3 | {
4 | "OK." : "OK.",
5 | "local" : "lokal",
6 | "default" : "standard",
7 | "OK" : "OK",
8 | "Loading" : "Indlæser",
9 | "Service" : "Tjeneste",
10 | "Select countries from list" : "Vælg lande fra liste",
11 | "with IP Address" : "med IP adresse",
12 | "Andorra" : "Andorra",
13 | "United Arab Emirates" : "De Forenede Arabiske Emirater",
14 | "Afghanistan" : "Afghanistan",
15 | "Antigua and Barbuda" : "Antigua og Barbuda",
16 | "Anguilla" : "Anguilla",
17 | "Albania" : "Albanien",
18 | "Armenia" : "Armenien",
19 | "Angola" : "Angola",
20 | "Antarctica" : "Antarktis",
21 | "Argentina" : "Argentina",
22 | "American Samoa" : "Amerikansk Samoa",
23 | "Austria" : "Østrig",
24 | "Australia" : "Australien",
25 | "Aruba" : "Aruba",
26 | "Åland Islands" : "Ålandsøerne",
27 | "Azerbaijan" : "Aserbajdsjan",
28 | "Bosnia and Herzegovina" : "Bosnien-Hercegovina",
29 | "Barbados" : "Barbados",
30 | "Bangladesh" : "Bangladesh",
31 | "Belgium" : "Belgien",
32 | "Burkina Faso" : "Burkina Faso",
33 | "Bulgaria" : "Bulgarien",
34 | "Bahrain" : "Bahrain",
35 | "Burundi" : "Burundi",
36 | "Benin" : "Benin",
37 | "Saint Barthélemy" : "Saint Barthélemy",
38 | "Bermuda" : "Bermuda",
39 | "Bonaire, Sint Eustatius and Saba" : "Bonaire, Sint Eustatius og Saba",
40 | "Brazil" : "Brasilien",
41 | "Bahamas" : "Bahamas",
42 | "Bhutan" : "Bhutanworld. kgm",
43 | "Bouvet Island" : "Bouvet Island",
44 | "Botswana" : "Botswana",
45 | "Belarus" : "Hviderusland",
46 | "Belize" : "Belize",
47 | "Canada" : "Canada",
48 | "Cocos (Keeling) Islands" : "Cocos (Keeling) Islands",
49 | "Central African Republic" : "Den Centralafrikanske Republik",
50 | "Congo" : "Congo",
51 | "Switzerland" : "Schweiz",
52 | "Cook Islands" : "Cook Islands",
53 | "Chile" : "Chile",
54 | "Cameroon" : "Cameroun",
55 | "China" : "Kina",
56 | "Colombia" : "Colombia",
57 | "Costa Rica" : "Costa Rica",
58 | "Cuba" : "Cuba",
59 | "Cabo Verde" : "Cabo Verde",
60 | "Curaçao" : "Curaçao",
61 | "Christmas Island" : "Juleøen",
62 | "Cyprus" : "Cypern",
63 | "Germany" : "Tyskland",
64 | "Djibouti" : "Djibouti",
65 | "Denmark" : "Danmark",
66 | "Dominican Republic" : "Den Dominikanske Republik",
67 | "Algeria" : "Algeriet",
68 | "Ecuador" : "Ecuador",
69 | "Estonia" : "Estland",
70 | "Egypt" : "Egypten",
71 | "Eritrea" : "Eritrea",
72 | "Spain" : "Spanien",
73 | "Ethiopia" : "Etiopien",
74 | "Finland" : "Finland",
75 | "Fiji" : "Fiji",
76 | "Faroe Islands" : "Færøerne",
77 | "France" : "Frankrig",
78 | "Gabon" : "Gabon",
79 | "Grenada" : "Grenada",
80 | "Georgia" : "Georgien",
81 | "French Guiana" : "Fransk Guyana",
82 | "Guernsey" : "Guernsey",
83 | "Ghana" : "Ghana",
84 | "Gibraltar" : "Gibraltar",
85 | "Greenland" : "Grønland",
86 | "Gambia" : "Gambia",
87 | "Guinea" : "Guinea",
88 | "Guadeloupe" : "Guadeloupe",
89 | "Equatorial Guinea" : "Ækvatorialguinea",
90 | "Greece" : "Grækenland",
91 | "South Georgia and the South Sandwich Islands" : "Sydgeorgien og de sydlige Sandwichøer",
92 | "Guatemala" : "Guatemala",
93 | "Guam" : "Guam",
94 | "Guinea-Bissau" : "Guinea-Bissau",
95 | "Guyana" : "Guyana",
96 | "Hong Kong" : "Hong Kong",
97 | "Heard Island and McDonald Islands" : "Hørt Island og McDonald Islands",
98 | "Honduras" : "Honduras",
99 | "Croatia" : "Kroatien",
100 | "Haiti" : "Haiti",
101 | "Hungary" : "Ungarn",
102 | "Indonesia" : "Indonesien",
103 | "Ireland" : "Irland",
104 | "Israel" : "Israel",
105 | "Isle of Man" : "Isle of Man",
106 | "India" : "Indien",
107 | "British Indian Ocean Territory" : "Britisk område i Det Indiske Ocean",
108 | "Iraq" : "Irak",
109 | "Iceland" : "Island",
110 | "Italy" : "Italien",
111 | "Jamaica" : "Jamaica",
112 | "Jordan" : "Jordan",
113 | "Japan" : "Japan",
114 | "Kenya" : "Kenya",
115 | "Kyrgyzstan" : "Kirgisistan",
116 | "Cambodia" : "Cambodja",
117 | "Kiribati" : "Kiribati",
118 | "Comoros" : "Comoros",
119 | "Saint Kitts and Nevis" : "Saint Christopher og Nevis",
120 | "Kuwait" : "Kuwait",
121 | "Cayman Islands" : "Caymanøerne",
122 | "Kazakhstan" : "Kasakhstan",
123 | "Lebanon" : "Libanon",
124 | "Saint Lucia" : "Saint Lucia",
125 | "Liechtenstein" : "Liechtenstein",
126 | "Sri Lanka" : "Sri Lanka",
127 | "Liberia" : "Liberia",
128 | "Lesotho" : "Lesotho",
129 | "Lithuania" : "Litauen",
130 | "Luxembourg" : "Luxembourg",
131 | "Latvia" : "Letland",
132 | "Libya" : "Libyen",
133 | "Morocco" : "Marokko",
134 | "Monaco" : "Monaco",
135 | "Montenegro" : "Montenegro",
136 | "Madagascar" : "Madagaskar",
137 | "Marshall Islands" : "Marshalløerne",
138 | "Mali" : "Mali",
139 | "Myanmar" : "Myanmar",
140 | "Mongolia" : "Mongoliet",
141 | "Macao" : "Macao",
142 | "Northern Mariana Islands" : "Northern Mariana Islands",
143 | "Mauritania" : "Mauretanien",
144 | "Montserrat" : "Montserrat",
145 | "Malta" : "Malta",
146 | "Mauritius" : "Mauritius",
147 | "Maldives" : "Maldiverne",
148 | "Malawi" : "Malawi",
149 | "Mexico" : "Mexico",
150 | "Malaysia" : "Malaysia",
151 | "Mozambique" : "Mozambique",
152 | "Namibia" : "Namibia",
153 | "New Caledonia" : "Ny kaledonien",
154 | "Niger" : "Niger",
155 | "Norfolk Island" : "Norfolk Island",
156 | "Nigeria" : "Nigeria",
157 | "Nicaragua" : "Nicaragua",
158 | "Netherlands" : "Holland",
159 | "Norway" : "Norge",
160 | "Nepal" : "Nepal",
161 | "Nauru" : "Nauru",
162 | "Niue" : "Niue",
163 | "New Zealand" : "New Zealand",
164 | "Oman" : "Oman",
165 | "Panama" : "Panama",
166 | "Peru" : "Peru",
167 | "French Polynesia" : "Fransk Polynesien",
168 | "Papua New Guinea" : "Papua Ny Guinea",
169 | "Philippines" : "Filippinerne",
170 | "Pakistan" : "Pakistan",
171 | "Poland" : "Polen",
172 | "Saint Pierre and Miquelon" : "Saint Pierre og Miquelon",
173 | "Pitcairn" : "Pitcairn",
174 | "Puerto Rico" : "Puerto Rico",
175 | "Portugal" : "Portugal",
176 | "Palau" : "Palau ",
177 | "Paraguay" : "Paraguay",
178 | "Qatar" : "Qatar",
179 | "Réunion" : "Réunion",
180 | "Romania" : "Rumænien",
181 | "Serbia" : "Serbien",
182 | "Rwanda" : "Rwanda",
183 | "Saudi Arabia" : "Saudi-Arabien",
184 | "Solomon Islands" : "Salomonøerne",
185 | "Seychelles" : "Seychellerne",
186 | "Sudan" : "Sudan",
187 | "Sweden" : "Sverige",
188 | "Singapore" : "Singapore",
189 | "Saint Helena, Ascension and Tristan da Cunha" : "Saint Helena, Ascension og Tristan da Cunha",
190 | "Slovenia" : "Slovenien",
191 | "Svalbard and Jan Mayen" : "Svalbard og Jan Mayen",
192 | "Slovakia" : "Slovakiet",
193 | "Sierra Leone" : "Sierra Leone",
194 | "San Marino" : "San Marino",
195 | "Senegal" : "Senegal",
196 | "Somalia" : "Somalia",
197 | "Suriname" : "Surinam",
198 | "South Sudan" : "Sydsudan",
199 | "Sao Tome and Principe" : "São Tomé og Príncipe",
200 | "El Salvador" : "El Salvador",
201 | "Turks and Caicos Islands" : "Turks- og Caicosøerne",
202 | "Chad" : "Chad",
203 | "Togo" : "Togo",
204 | "Thailand" : "Thailand",
205 | "Tajikistan" : "Tadsjikistan",
206 | "Tokelau" : "Tokelau",
207 | "Timor-Leste" : "Timor-Leste",
208 | "Turkmenistan" : "Turkmenistan",
209 | "Tunisia" : "Tunesien",
210 | "Tonga" : "Tonga",
211 | "Turkey" : "Tyrkiet",
212 | "Trinidad and Tobago" : "Trinidad og Tobago",
213 | "Tuvalu" : "Tuvalu",
214 | "Ukraine" : "Ukraine",
215 | "Uganda" : "Uganda",
216 | "United States Minor Outlying Islands" : "United States Minor Outliing Islands",
217 | "Uruguay" : "Uruguay",
218 | "Uzbekistan" : "Usbekistan",
219 | "Holy See" : "Pavestolen",
220 | "Saint Vincent and the Grenadines" : "Saint Vincent og Grenadinerne",
221 | "Virgin Islands (British)" : "Jomfruøerne (britisk)",
222 | "Virgin Islands (U.S.)" : "Jomfruøerne (USA)",
223 | "Vanuatu" : "Vanuatu",
224 | "Wallis and Futuna" : "Wallis og Futuna",
225 | "Samoa" : "Samoa",
226 | "Yemen" : "Yemen",
227 | "Mayotte" : "Mayotte",
228 | "South Africa" : "Sydafrika",
229 | "Zambia" : "Zambia",
230 | "Zimbabwe" : "Zimbabwe"
231 | },
232 | "nplurals=2; plural=(n != 1);");
233 |
--------------------------------------------------------------------------------
/l10n/lt_LT.json:
--------------------------------------------------------------------------------
1 | { "translations": {
2 | "Update not possible. " : "Atnaujinimas neįmanomas.",
3 | "Update possible. " : "Atnaujinimas įmanomas.",
4 | "Update running. " : "Vykdomas atnaujinimas.",
5 | "Update undefined. " : "Atnaujinimas neapibrėžtas.",
6 | "Status of the service cannot be determined." : "Nepavyksta nustatyti tarnybos būsenos.",
7 | "No database date available." : "Neprieinama jokia duomenų bazės data.",
8 | "Database file location not available!" : "Neprieinama duomenų bazės failo vieta!",
9 | "Update Status not available!" : "Atnaujinimo būsena neprieinama!",
10 | "OK." : "Gerai.",
11 | "Date of the database cannot be determined!" : "Nepavyksta nustatyti duomenų bazės datos!",
12 | "local" : "vietinė",
13 | "default" : "numatytoji",
14 | "ERROR:" : "KLAIDA:",
15 | "OK" : "Gerai",
16 | "Something is missing." : "Kažko trūksta.",
17 | "No database available!" : "Neprieinama jokia duomenų bazė!",
18 | "Loading" : "Įkeliama",
19 | "Status of the chosen service: " : "Pasirinktos tarnybos būsena: ",
20 | "Date of the database: " : "Duomenų bazės data: ",
21 | "Country Selection" : "Šalių pasirinkimas",
22 | "Choose the selection mode" : "Pasirinkite pasirinkimo veikseną",
23 | "Reaction" : "Reakcija",
24 | "(beta version)" : "(beta versija)",
25 | "COUNTRY NOT FOUND" : "ŠALIS NERASTA",
26 | "Andorra" : "Andora",
27 | "United Arab Emirates" : "Jungtiniai Arabų Emyratai",
28 | "Afghanistan" : "Afganistanas",
29 | "Antigua and Barbuda" : "Antigva ir Barbuda",
30 | "Anguilla" : "Angilija",
31 | "Albania" : "Albanija",
32 | "Armenia" : "Armėnija",
33 | "Angola" : "Angola",
34 | "Argentina" : "Argentina",
35 | "Austria" : "Austrija",
36 | "Australia" : "Australija",
37 | "Azerbaijan" : "Azerbaidžanas",
38 | "Bosnia and Herzegovina" : "Bosnija ir Hercegovina",
39 | "Barbados" : "Barbadosas",
40 | "Bangladesh" : "Bangladešas",
41 | "Belgium" : "Belgija",
42 | "Burkina Faso" : "Burkina Fasas",
43 | "Bulgaria" : "Bulgarija",
44 | "Bahrain" : "Bahreinas",
45 | "Burundi" : "Burundis",
46 | "Benin" : "Beninas",
47 | "Bermuda" : "Bermudai",
48 | "Brunei Darussalam" : "Brunėjaus Darusalamas",
49 | "Bolivia (Plurinational State of)" : "Bolivija (Daugiatautė Valstybė)",
50 | "Brazil" : "Brazilija",
51 | "Bahamas" : "Bahamos",
52 | "Bhutan" : "Butanas",
53 | "Botswana" : "Botsvana",
54 | "Belarus" : "Baltarusija",
55 | "Belize" : "Belizas",
56 | "Canada" : "Kanada",
57 | "Central African Republic" : "Centrinės Afrikos Respublika",
58 | "Congo" : "Kongas",
59 | "Switzerland" : "Šveicarija",
60 | "Chile" : "Čilė",
61 | "Cameroon" : "Kamerūnas",
62 | "China" : "Kinija",
63 | "Colombia" : "Kolumbija",
64 | "Costa Rica" : "Kosta Rika",
65 | "Cuba" : "Kuba",
66 | "Christmas Island" : "Kalėdų sala",
67 | "Cyprus" : "Kipras",
68 | "Czechia" : "Čekija",
69 | "Germany" : "Vokietija",
70 | "Djibouti" : "Džibutis",
71 | "Denmark" : "Danija",
72 | "Dominica" : "Dominika",
73 | "Dominican Republic" : "Dominikos Respublika",
74 | "Algeria" : "Alžyras",
75 | "Ecuador" : "Ekvadoras",
76 | "Estonia" : "Estija",
77 | "Egypt" : "Egiptas",
78 | "Eritrea" : "Eritrėja",
79 | "Spain" : "Ispanija",
80 | "Ethiopia" : "Etiopija",
81 | "Finland" : "Suomija",
82 | "Fiji" : "Fidžis",
83 | "Falkland Islands (Malvinas)" : "Folklando (Malvinų) salos",
84 | "Micronesia (Federated States of)" : "Mikronezija (Federacinės Valstijos)",
85 | "Faroe Islands" : "Farerų salos",
86 | "France" : "Prancūzija",
87 | "Gabon" : "Gabonas",
88 | "Grenada" : "Grenada",
89 | "Georgia" : "Gruzija",
90 | "Ghana" : "Gana",
91 | "Gibraltar" : "Gibraltaras",
92 | "Greenland" : "Grenlandija",
93 | "Gambia" : "Gambija",
94 | "Guinea" : "Gvinėja",
95 | "Equatorial Guinea" : "Pusiaujo Gvinėja",
96 | "Greece" : "Graikija",
97 | "Guatemala" : "Gvatemala",
98 | "Guinea-Bissau" : "Bisau Gvinėja",
99 | "Guyana" : "Gajana",
100 | "Hong Kong" : "Honkongas",
101 | "Honduras" : "Hondūras",
102 | "Croatia" : "Kroatija",
103 | "Haiti" : "Haitis",
104 | "Hungary" : "Vengrija",
105 | "Indonesia" : "Indonezija",
106 | "Ireland" : "Airija",
107 | "Israel" : "Izraelis",
108 | "India" : "Indija",
109 | "Iraq" : "Irakas",
110 | "Iran (Islamic Republic of)" : "Iranas (Islamo Respublika)",
111 | "Iceland" : "Islandija",
112 | "Italy" : "Italija",
113 | "Jamaica" : "Jamaika",
114 | "Jordan" : "Jordanija",
115 | "Japan" : "Japonija",
116 | "Kenya" : "Kenija",
117 | "Kyrgyzstan" : "Kirgizija",
118 | "Cambodia" : "Kambodža",
119 | "Kiribati" : "Kiribatis",
120 | "Saint Kitts and Nevis" : "Sent Kitsas ir Nevis",
121 | "Korea (Democratic People's Republic of)" : "Korėja (Liaudies Demokratinė Respublika)",
122 | "Kuwait" : "Kuveitas",
123 | "Kazakhstan" : "Kazachstanas",
124 | "Lebanon" : "Libanas",
125 | "Liechtenstein" : "Lichtenšteinas",
126 | "Sri Lanka" : "Šri Lanka",
127 | "Liberia" : "Liberija",
128 | "Lesotho" : "Lesotas",
129 | "Lithuania" : "Lietuva",
130 | "Luxembourg" : "Liuksemburgas",
131 | "Latvia" : "Latvija",
132 | "Libya" : "Libija",
133 | "Morocco" : "Marokas",
134 | "Monaco" : "Monakas",
135 | "Montenegro" : "Juodkalnija",
136 | "Madagascar" : "Madagaskaras",
137 | "Marshall Islands" : "Maršalo salos",
138 | "Mali" : "Malis",
139 | "Myanmar" : "Mianmaras",
140 | "Mongolia" : "Mongolija",
141 | "Mauritania" : "Mauritanija",
142 | "Malta" : "Malta",
143 | "Mauritius" : "Mauricijus",
144 | "Maldives" : "Maldyvai",
145 | "Malawi" : "Malavis",
146 | "Mexico" : "Meksika",
147 | "Malaysia" : "Malaizija",
148 | "Mozambique" : "Mozambikas",
149 | "Namibia" : "Namibija",
150 | "New Caledonia" : "Naujoji Kaledonija",
151 | "Niger" : "Nigeris",
152 | "Nigeria" : "Nigerija",
153 | "Nicaragua" : "Nikaragva",
154 | "Netherlands" : "Nyderlandai",
155 | "Norway" : "Norvegija",
156 | "Nepal" : "Nepalas",
157 | "Nauru" : "Nauru",
158 | "New Zealand" : "Naujoji Zelandija",
159 | "Oman" : "Omanas",
160 | "Panama" : "Panama",
161 | "Peru" : "Peru",
162 | "Papua New Guinea" : "Papua Naujoji Gvinėja",
163 | "Philippines" : "Filipinai",
164 | "Pakistan" : "Pakistanas",
165 | "Poland" : "Lenkija",
166 | "Pitcairn" : "Pitkerno salos",
167 | "Puerto Rico" : "Puerto Rikas",
168 | "Portugal" : "Portugalija",
169 | "Paraguay" : "Paragvajus",
170 | "Qatar" : "Kataras",
171 | "Romania" : "Rumunija",
172 | "Serbia" : "Serbija",
173 | "Russian Federation" : "Rusijos Federacija",
174 | "Rwanda" : "Ruanda",
175 | "Saudi Arabia" : "Saudo Arabija",
176 | "Solomon Islands" : "Saliamono salos",
177 | "Seychelles" : "Seišelių salos",
178 | "Sudan" : "Sudanas",
179 | "Sweden" : "Švedija",
180 | "Singapore" : "Singapūras",
181 | "Slovenia" : "Slovėnija",
182 | "Slovakia" : "Slovakija",
183 | "Sierra Leone" : "Siera Leonė",
184 | "Senegal" : "Senegalas",
185 | "Somalia" : "Somalis",
186 | "Suriname" : "Surinamas",
187 | "South Sudan" : "Pietų Sudanas",
188 | "El Salvador" : "Salvadoras",
189 | "Syrian Arab Republic" : "Sirijos Arabų Respublika",
190 | "Turks and Caicos Islands" : "Terkso ir Kaikoso salos",
191 | "Chad" : "Čadas",
192 | "Togo" : "Togas",
193 | "Thailand" : "Tailandas",
194 | "Tajikistan" : "Tadžikistanas",
195 | "Timor-Leste" : "Rytų Timoras",
196 | "Turkmenistan" : "Turkmėnistanas",
197 | "Tunisia" : "Tunisas",
198 | "Tonga" : "Tongų",
199 | "Turkey" : "Turkija",
200 | "Trinidad and Tobago" : "Trinidadas ir Tobagas",
201 | "Tanzania, United Republic of" : "Tanzanijos Jungtinė Respublika",
202 | "Ukraine" : "Ukraina",
203 | "Uganda" : "Uganda",
204 | "United States Minor Outlying Islands" : "Jungtinių Valstijų nuošalios mažosios salos",
205 | "United States of America" : "Jungtinės Amerikos Valstijos",
206 | "Uruguay" : "Urugvajus",
207 | "Uzbekistan" : "Uzbekistanas",
208 | "Viet Nam" : "Vietnamas",
209 | "Vanuatu" : "Vanuatu",
210 | "Yemen" : "Jemenas",
211 | "South Africa" : "Pietų Afrika",
212 | "Zambia" : "Zambija",
213 | "Zimbabwe" : "Zimbabvė"
214 | },"pluralForm" :"nplurals=4; plural=(n % 10 == 1 && (n % 100 > 19 || n % 100 < 11) ? 0 : (n % 10 >= 2 && n % 10 <=9) && (n % 100 > 19 || n % 100 < 11) ? 1 : n % 1 != 0 ? 2: 3);"
215 | }
--------------------------------------------------------------------------------
/l10n/lt_LT.js:
--------------------------------------------------------------------------------
1 | OC.L10N.register(
2 | "geoblocker",
3 | {
4 | "Update not possible. " : "Atnaujinimas neįmanomas.",
5 | "Update possible. " : "Atnaujinimas įmanomas.",
6 | "Update running. " : "Vykdomas atnaujinimas.",
7 | "Update undefined. " : "Atnaujinimas neapibrėžtas.",
8 | "Status of the service cannot be determined." : "Nepavyksta nustatyti tarnybos būsenos.",
9 | "No database date available." : "Neprieinama jokia duomenų bazės data.",
10 | "Database file location not available!" : "Neprieinama duomenų bazės failo vieta!",
11 | "Update Status not available!" : "Atnaujinimo būsena neprieinama!",
12 | "OK." : "Gerai.",
13 | "Date of the database cannot be determined!" : "Nepavyksta nustatyti duomenų bazės datos!",
14 | "local" : "vietinė",
15 | "default" : "numatytoji",
16 | "ERROR:" : "KLAIDA:",
17 | "OK" : "Gerai",
18 | "Something is missing." : "Kažko trūksta.",
19 | "No database available!" : "Neprieinama jokia duomenų bazė!",
20 | "Loading" : "Įkeliama",
21 | "Status of the chosen service: " : "Pasirinktos tarnybos būsena: ",
22 | "Date of the database: " : "Duomenų bazės data: ",
23 | "Country Selection" : "Šalių pasirinkimas",
24 | "Choose the selection mode" : "Pasirinkite pasirinkimo veikseną",
25 | "Reaction" : "Reakcija",
26 | "(beta version)" : "(beta versija)",
27 | "COUNTRY NOT FOUND" : "ŠALIS NERASTA",
28 | "Andorra" : "Andora",
29 | "United Arab Emirates" : "Jungtiniai Arabų Emyratai",
30 | "Afghanistan" : "Afganistanas",
31 | "Antigua and Barbuda" : "Antigva ir Barbuda",
32 | "Anguilla" : "Angilija",
33 | "Albania" : "Albanija",
34 | "Armenia" : "Armėnija",
35 | "Angola" : "Angola",
36 | "Argentina" : "Argentina",
37 | "Austria" : "Austrija",
38 | "Australia" : "Australija",
39 | "Azerbaijan" : "Azerbaidžanas",
40 | "Bosnia and Herzegovina" : "Bosnija ir Hercegovina",
41 | "Barbados" : "Barbadosas",
42 | "Bangladesh" : "Bangladešas",
43 | "Belgium" : "Belgija",
44 | "Burkina Faso" : "Burkina Fasas",
45 | "Bulgaria" : "Bulgarija",
46 | "Bahrain" : "Bahreinas",
47 | "Burundi" : "Burundis",
48 | "Benin" : "Beninas",
49 | "Bermuda" : "Bermudai",
50 | "Brunei Darussalam" : "Brunėjaus Darusalamas",
51 | "Bolivia (Plurinational State of)" : "Bolivija (Daugiatautė Valstybė)",
52 | "Brazil" : "Brazilija",
53 | "Bahamas" : "Bahamos",
54 | "Bhutan" : "Butanas",
55 | "Botswana" : "Botsvana",
56 | "Belarus" : "Baltarusija",
57 | "Belize" : "Belizas",
58 | "Canada" : "Kanada",
59 | "Central African Republic" : "Centrinės Afrikos Respublika",
60 | "Congo" : "Kongas",
61 | "Switzerland" : "Šveicarija",
62 | "Chile" : "Čilė",
63 | "Cameroon" : "Kamerūnas",
64 | "China" : "Kinija",
65 | "Colombia" : "Kolumbija",
66 | "Costa Rica" : "Kosta Rika",
67 | "Cuba" : "Kuba",
68 | "Christmas Island" : "Kalėdų sala",
69 | "Cyprus" : "Kipras",
70 | "Czechia" : "Čekija",
71 | "Germany" : "Vokietija",
72 | "Djibouti" : "Džibutis",
73 | "Denmark" : "Danija",
74 | "Dominica" : "Dominika",
75 | "Dominican Republic" : "Dominikos Respublika",
76 | "Algeria" : "Alžyras",
77 | "Ecuador" : "Ekvadoras",
78 | "Estonia" : "Estija",
79 | "Egypt" : "Egiptas",
80 | "Eritrea" : "Eritrėja",
81 | "Spain" : "Ispanija",
82 | "Ethiopia" : "Etiopija",
83 | "Finland" : "Suomija",
84 | "Fiji" : "Fidžis",
85 | "Falkland Islands (Malvinas)" : "Folklando (Malvinų) salos",
86 | "Micronesia (Federated States of)" : "Mikronezija (Federacinės Valstijos)",
87 | "Faroe Islands" : "Farerų salos",
88 | "France" : "Prancūzija",
89 | "Gabon" : "Gabonas",
90 | "Grenada" : "Grenada",
91 | "Georgia" : "Gruzija",
92 | "Ghana" : "Gana",
93 | "Gibraltar" : "Gibraltaras",
94 | "Greenland" : "Grenlandija",
95 | "Gambia" : "Gambija",
96 | "Guinea" : "Gvinėja",
97 | "Equatorial Guinea" : "Pusiaujo Gvinėja",
98 | "Greece" : "Graikija",
99 | "Guatemala" : "Gvatemala",
100 | "Guinea-Bissau" : "Bisau Gvinėja",
101 | "Guyana" : "Gajana",
102 | "Hong Kong" : "Honkongas",
103 | "Honduras" : "Hondūras",
104 | "Croatia" : "Kroatija",
105 | "Haiti" : "Haitis",
106 | "Hungary" : "Vengrija",
107 | "Indonesia" : "Indonezija",
108 | "Ireland" : "Airija",
109 | "Israel" : "Izraelis",
110 | "India" : "Indija",
111 | "Iraq" : "Irakas",
112 | "Iran (Islamic Republic of)" : "Iranas (Islamo Respublika)",
113 | "Iceland" : "Islandija",
114 | "Italy" : "Italija",
115 | "Jamaica" : "Jamaika",
116 | "Jordan" : "Jordanija",
117 | "Japan" : "Japonija",
118 | "Kenya" : "Kenija",
119 | "Kyrgyzstan" : "Kirgizija",
120 | "Cambodia" : "Kambodža",
121 | "Kiribati" : "Kiribatis",
122 | "Saint Kitts and Nevis" : "Sent Kitsas ir Nevis",
123 | "Korea (Democratic People's Republic of)" : "Korėja (Liaudies Demokratinė Respublika)",
124 | "Kuwait" : "Kuveitas",
125 | "Kazakhstan" : "Kazachstanas",
126 | "Lebanon" : "Libanas",
127 | "Liechtenstein" : "Lichtenšteinas",
128 | "Sri Lanka" : "Šri Lanka",
129 | "Liberia" : "Liberija",
130 | "Lesotho" : "Lesotas",
131 | "Lithuania" : "Lietuva",
132 | "Luxembourg" : "Liuksemburgas",
133 | "Latvia" : "Latvija",
134 | "Libya" : "Libija",
135 | "Morocco" : "Marokas",
136 | "Monaco" : "Monakas",
137 | "Montenegro" : "Juodkalnija",
138 | "Madagascar" : "Madagaskaras",
139 | "Marshall Islands" : "Maršalo salos",
140 | "Mali" : "Malis",
141 | "Myanmar" : "Mianmaras",
142 | "Mongolia" : "Mongolija",
143 | "Mauritania" : "Mauritanija",
144 | "Malta" : "Malta",
145 | "Mauritius" : "Mauricijus",
146 | "Maldives" : "Maldyvai",
147 | "Malawi" : "Malavis",
148 | "Mexico" : "Meksika",
149 | "Malaysia" : "Malaizija",
150 | "Mozambique" : "Mozambikas",
151 | "Namibia" : "Namibija",
152 | "New Caledonia" : "Naujoji Kaledonija",
153 | "Niger" : "Nigeris",
154 | "Nigeria" : "Nigerija",
155 | "Nicaragua" : "Nikaragva",
156 | "Netherlands" : "Nyderlandai",
157 | "Norway" : "Norvegija",
158 | "Nepal" : "Nepalas",
159 | "Nauru" : "Nauru",
160 | "New Zealand" : "Naujoji Zelandija",
161 | "Oman" : "Omanas",
162 | "Panama" : "Panama",
163 | "Peru" : "Peru",
164 | "Papua New Guinea" : "Papua Naujoji Gvinėja",
165 | "Philippines" : "Filipinai",
166 | "Pakistan" : "Pakistanas",
167 | "Poland" : "Lenkija",
168 | "Pitcairn" : "Pitkerno salos",
169 | "Puerto Rico" : "Puerto Rikas",
170 | "Portugal" : "Portugalija",
171 | "Paraguay" : "Paragvajus",
172 | "Qatar" : "Kataras",
173 | "Romania" : "Rumunija",
174 | "Serbia" : "Serbija",
175 | "Russian Federation" : "Rusijos Federacija",
176 | "Rwanda" : "Ruanda",
177 | "Saudi Arabia" : "Saudo Arabija",
178 | "Solomon Islands" : "Saliamono salos",
179 | "Seychelles" : "Seišelių salos",
180 | "Sudan" : "Sudanas",
181 | "Sweden" : "Švedija",
182 | "Singapore" : "Singapūras",
183 | "Slovenia" : "Slovėnija",
184 | "Slovakia" : "Slovakija",
185 | "Sierra Leone" : "Siera Leonė",
186 | "Senegal" : "Senegalas",
187 | "Somalia" : "Somalis",
188 | "Suriname" : "Surinamas",
189 | "South Sudan" : "Pietų Sudanas",
190 | "El Salvador" : "Salvadoras",
191 | "Syrian Arab Republic" : "Sirijos Arabų Respublika",
192 | "Turks and Caicos Islands" : "Terkso ir Kaikoso salos",
193 | "Chad" : "Čadas",
194 | "Togo" : "Togas",
195 | "Thailand" : "Tailandas",
196 | "Tajikistan" : "Tadžikistanas",
197 | "Timor-Leste" : "Rytų Timoras",
198 | "Turkmenistan" : "Turkmėnistanas",
199 | "Tunisia" : "Tunisas",
200 | "Tonga" : "Tongų",
201 | "Turkey" : "Turkija",
202 | "Trinidad and Tobago" : "Trinidadas ir Tobagas",
203 | "Tanzania, United Republic of" : "Tanzanijos Jungtinė Respublika",
204 | "Ukraine" : "Ukraina",
205 | "Uganda" : "Uganda",
206 | "United States Minor Outlying Islands" : "Jungtinių Valstijų nuošalios mažosios salos",
207 | "United States of America" : "Jungtinės Amerikos Valstijos",
208 | "Uruguay" : "Urugvajus",
209 | "Uzbekistan" : "Uzbekistanas",
210 | "Viet Nam" : "Vietnamas",
211 | "Vanuatu" : "Vanuatu",
212 | "Yemen" : "Jemenas",
213 | "South Africa" : "Pietų Afrika",
214 | "Zambia" : "Zambija",
215 | "Zimbabwe" : "Zimbabvė"
216 | },
217 | "nplurals=4; plural=(n % 10 == 1 && (n % 100 > 19 || n % 100 < 11) ? 0 : (n % 10 >= 2 && n % 10 <=9) && (n % 100 > 19 || n % 100 < 11) ? 1 : n % 1 != 0 ? 2: 3);");
218 |
--------------------------------------------------------------------------------
/tests/Unit/LocalizationServices/MaxMindGeoLite2Test.php:
--------------------------------------------------------------------------------
1 | l = $this->getMockBuilder('OCP\IL10N')->getMock();
21 | $this->l->method('t')->will(
22 | $this->returnCallback([$this,'callbackLTJustRouteThrough']));
23 | $this->logger = $this->getMockBuilder('Psr\Log\LoggerInterface')->getMock();
24 | $tmp_config = $this->getMockBuilder('OCP\IConfig')->getMock();
25 | $this->config = $this->getMockBuilder(
26 | 'OCA\GeoBlocker\Config\GeoBlockerConfig')->setConstructorArgs(
27 | [$tmp_config])->getMock();
28 | $this->geo_ip_lookup = new MaxMindGeoLite2($this->config, $this->l, $this->logger);
29 | }
30 |
31 | public function testIsValidStatusOk() {
32 | $this->assertTrue($this->geo_ip_lookup->getStatus());
33 | }
34 |
35 | // public function testIsInvalidStatusOk() {
36 | // $phar_file = __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR .
37 | // '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR .
38 | // '3rdparty' . DIRECTORY_SEPARATOR . 'maxmind_geolite2' .
39 | // DIRECTORY_SEPARATOR . '' . 'geoip2.phar';
40 | // $this->assertTrue(file_exists($phar_file));
41 | // rename($phar_file, $phar_file . 'bak');
42 | // try {
43 | // $this->geo_ip_lookup = new MaxMindGeoLite2($this->config, $this->l);
44 | // $this->assertFalse($this->geo_ip_lookup->getStatus());
45 | // } finally {
46 | // rename($phar_file . 'bak', $phar_file);
47 | // }
48 | // }
49 | public function testIsValidStatusStringOk() {
50 | // $this->cmd_wrapper->method ( 'geoiplookup' )->will (
51 | // $this->returnCallback (
52 | // array ($this,'callbackGeoIpLookupValid'
53 | // ) ) );
54 | // $this->cmd_wrapper->method ( 'geoiplookup6' )->will (
55 | // $this->returnCallback (
56 | // array ($this,'callbackGeoIpLookup6Valid'
57 | // ) ) );
58 | $result = '"MaxMind GeoLite2": OK.';
59 | $this->assertEquals($result, $this->geo_ip_lookup->getStatusString());
60 | }
61 |
62 | // public function testIsInvalidStatusStringOk() {
63 | // $this->cmd_wrapper->method ( 'geoiplookup' )->will (
64 | // $this->returnCallback (
65 | // array ($this,'callbackGeoIpLookupInvalid'
66 | // ) ) );
67 | // $this->cmd_wrapper->method ( 'geoiplookup6' )->will (
68 | // $this->returnCallback (
69 | // array ($this,'callbackGeoIpLookup6Invalid'
70 | // ) ) );
71 | // $result = 'ERROR: "geoiplookup" seem to be not installed on the host of the Nextcloud server or not reachable for the web server or is wrongly configured (is the database for IPv4 and IPv6 available?!). Maybe the use of the php function exec() is disabled in the php.ini.';
72 | // $this->assertEquals ( $result, $this->geo_ip_lookup->getStatusString () );
73 | // }
74 | public function testIsCountryCodeFromValidIpOk() {
75 | $ip_address = '2a02:2e0:3fe:1001:302::';
76 | $country_code = 'DE';
77 | $this->assertEquals($country_code,
78 | $this->geo_ip_lookup->getCountryCodeFromIP($ip_address));
79 |
80 | $country_code = 'US';
81 | $ip_address = '24.165.23.67';
82 | $this->assertEquals($country_code,
83 | $this->geo_ip_lookup->getCountryCodeFromIP($ip_address));
84 | }
85 |
86 | public function testIsCountryCodeFromNotFoundIpOk() {
87 | $ip_address = 'fe80::';
88 | $country_code = GeoBlocker::kCountryNotFoundCode;
89 | $this->assertEquals($country_code,
90 | $this->geo_ip_lookup->getCountryCodeFromIP($ip_address));
91 |
92 | $ip_address = '127.0.0.1';
93 | $country_code = GeoBlocker::kCountryNotFoundCode;
94 | $this->assertEquals($country_code,
95 | $this->geo_ip_lookup->getCountryCodeFromIP($ip_address));
96 | }
97 |
98 | // public function testIsCountryCodeFromInvalidIp1Ok() {
99 | // $this->cmd_wrapper->expects ( $this->once () )->method ( 'geoiplookup' )->with (
100 | // '127.0.0.1' )->will (
101 | // $this->returnCallback (
102 | // array ($this,'callbackGeoIpLookupValid'
103 | // ) ) );
104 | // $this->cmd_wrapper->expects ( $this->once () )->method ( 'geoiplookup6' )->with (
105 | // 'fe80::' )->will (
106 | // $this->returnCallback (
107 | // array ($this,'callbackGeoIpLookup6Valid'
108 | // ) ) );
109 | // $ip_address = '291.133.564.12';
110 | // $this->assertEquals ( 'INVALID_IP',
111 | // $this->geo_ip_lookup->getCountryCodeFromIP ( $ip_address ) );
112 | // }
113 | // public function testIsCountryCodeFromInvalidIp2Ok() {
114 | // $this->cmd_wrapper->expects ( $this->once () )->method ( 'geoiplookup' )->with (
115 | // '127.0.0.1' )->will (
116 | // $this->returnCallback (
117 | // array ($this,'callbackGeoIpLookupValid'
118 | // ) ) );
119 | // $this->cmd_wrapper->expects ( $this->once () )->method ( 'geoiplookup6' )->with (
120 | // 'fe80::' )->will (
121 | // $this->returnCallback (
122 | // array ($this,'callbackGeoIpLookup6Valid'
123 | // ) ) );
124 | // $ip_address = 'aöerb03s';
125 | // $this->assertEquals ( 'INVALID_IP',
126 | // $this->geo_ip_lookup->getCountryCodeFromIP ( $ip_address ) );
127 | // }
128 | // public function testIsCountryCodeFromInvalidIp3Ok() {
129 | // $this->cmd_wrapper->expects ( $this->once () )->method ( 'geoiplookup' )->with (
130 | // '127.0.0.1' )->will (
131 | // $this->returnCallback (
132 | // array ($this,'callbackGeoIpLookupValid'
133 | // ) ) );
134 | // $this->cmd_wrapper->expects ( $this->once () )->method ( 'geoiplookup6' )->with (
135 | // 'fe80::' )->will (
136 | // $this->returnCallback (
137 | // array ($this,'callbackGeoIpLookup6Valid'
138 | // ) ) );
139 | // $ip_address = '2a023:2e0:3fe:1001:302::';
140 | // $this->assertEquals ( 'INVALID_IP',
141 | // $this->geo_ip_lookup->getCountryCodeFromIP ( $ip_address ) );
142 | // }
143 | // // public function testIsCountryCodeFromValidIpButInvalidServiceOk() {
144 | // // $this->cmd_wrapper->expects ( $this->once () )->method ( 'geoiplookup' )->with (
145 | // // '127.0.0.1' )->will (
146 | // // $this->returnCallback (
147 | // // array ($this,'callbackGeoIpLookupInvalid'
148 | // // ) ) );
149 | // // $this->cmd_wrapper->expects ( $this->once () )->method ( 'geoiplookup6' )->with (
150 | // // 'fe80::' )->will (
151 | // // $this->returnCallback (
152 | // // array ($this,'callbackGeoIpLookup6Invalid'
153 | // // ) ) );
154 | // // $ip_address = '2a02:2e0:3fe:1001:302::';
155 | // // $this->assertEquals ( 'UNAVAILABLE',
156 | // // $this->geo_ip_lookup->getCountryCodeFromIP ( $ip_address ) );
157 | // // }
158 | // public function callbackGeoIpLookupInvalid(string $ip_address,
159 | // array &$output, int &$return_var): String {
160 | // $output = array ();
161 | // $return_var = - 1;
162 | // return 'Command not found';
163 | // }
164 | // public function callbackGeoIpLookup6Invalid(string $ip_address,
165 | // array &$output, int &$return_var): String {
166 | // $output = array ();
167 | // $return_var = - 1;
168 | // return 'Command not found';
169 | // }
170 | // public function callbackGeoIpLookupValid(string $ip_address, array &$output,
171 | // int &$return_var): String {
172 | // $output = array ('GeoIP Country Edition: IP Address not found'
173 | // );
174 | // $return_var = 0;
175 | // return 'GeoIP Country Edition: IP Address not found';
176 | // }
177 | // public function callbackGeoIpLookup6Valid(string $ip_address, array &$output,
178 | // int &$return_var): String {
179 | // $output = array ('GeoIP Country V6 Edition: IP Address not found'
180 | // );
181 | // $return_var = 0;
182 | // return 'GeoIP Country V6 Edition: IP Address not found';
183 | // }
184 | // public function callbackGeoIpLookupValidIP(string $ip_address,
185 | // array &$output, int &$return_var): String {
186 | // if ($ip_address === '127.0.0.1') {
187 | // $output = array ('GeoIP Country Edition: IP Address not found'
188 | // );
189 | // $return_var = 0;
190 | // return 'GeoIP Country Edition: IP Address not found';
191 | // } else {
192 | // $output = array ('GeoIP Country Edition: DE, Germany'
193 | // );
194 | // $return_var = 0;
195 | // return 'GeoIP Country Edition: DE, Germany';
196 | // }
197 | // }
198 | // public function callbackGeoIpLookup6ValidIP(string $ip_address,
199 | // array &$output, int &$return_var): String {
200 | // if ($ip_address === 'fe80::') {
201 | // $output = array ('GeoIP Country V6 Edition: IP Address not found'
202 | // );
203 | // $return_var = 0;
204 | // return 'GeoIP Country V6 Edition: IP Address not found';
205 | // } else {
206 | // $output = array ('GeoIP Country V6 Edition: DE, Germany'
207 | // );
208 | // $return_var = 0;
209 | // return 'GeoIP Country V6 Edition: DE, Germany';
210 | // }
211 | // }
212 | public function callbackLTJustRouteThrough(string $in): string {
213 | return $in;
214 | }
215 | }
216 |
--------------------------------------------------------------------------------