Skip to content

Commit ae56e7b

Browse files
authored
lang related fixes ; added complete translate for PL (#372)
* lang related fixes * Update Polish lang ; Co-translators: Kasia * small changes in pokemon filtering help * smaller changes & update pl lang * add missing keys in pl lang
1 parent 90fa0a3 commit ae56e7b

File tree

3 files changed

+171
-9
lines changed

3 files changed

+171
-9
lines changed

static/js/index.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3734,7 +3734,8 @@ function degreesToCardinal (d) {
37343734

37353735
function getWeatherPopupContent (weather) {
37363736
const weatherName = i18n(`weather_${weatherTypes[weather.gameplay_condition].name}`);
3737-
const weatherType = weatherTypes[weather.gameplay_condition].types.map(type => i18n(type));
3737+
const weatherType = weatherTypes[weather.gameplay_condition].types;
3738+
const weatherTypeTranslated = weatherType.map(type => i18n(type));
37383739
const weatherTypeIcons = weatherType.map(type => {
37393740
return `<img class='weatherTypeIcons' src=/img/type/${type.toLowerCase()}.png alt=${type}/>`
37403741
})
@@ -3757,7 +3758,7 @@ function getWeatherPopupContent (weather) {
37573758
const content = `
37583759
<center>
37593760
<h6><b>${weatherName}</b></h6>
3760-
<b>${i18n('popup_boosted')}:</b><br>${weatherType.join(', ')}<br>
3761+
<b>${i18n('popup_boosted')}:</b><br>${weatherTypeTranslated.join(', ')}<br>
37613762
${weatherTypeIcons.join(' ')}<br>
37623763
${extraContent}
37633764
<b>${i18n('popup_last_updated')}:</b> ${updatedDate.toLocaleTimeString(dateTimeLocale)} (${getTimeSince(updatedDate)})
@@ -3803,8 +3804,8 @@ function getPortalPopupContent(portal) {
38033804
function getScanAreaPopupContent(name, size) {
38043805
let content = `
38053806
<center>
3806-
<h6>Area: <b>${name}</b></h6>
3807-
Size: ${size} km<sup>2</sup>
3807+
<h6>${i18n('popup_area')}: <b>${name}</b></h6>
3808+
${i18n('popup_size')}: ${size} km<sup>2</sup>
38083809
</center>`;
38093810
return content;
38103811
}
@@ -4578,9 +4579,9 @@ function getDevicePopupContent (device) {
45784579
const ts = Math.round((new Date()).getTime() / 1000);
45794580
const isOffline = isDeviceOffline(device, ts);
45804581
const content = `<center><h6><b>${device.uuid}</b></h6></center><br>
4581-
<b>${i18n('popup_instance')}:</b>${device.instance_name}<br>
4582-
<b>${i18n('popup_last_seen')}:</b>${lastSeen}<br>
4583-
<b>${i18n('popup_status')}:</b>(${isOffline ? i18n('popup_offline') : i18n('popup_online')})`;
4582+
<b>${i18n('popup_instance')}: </b>${device.instance_name}<br>
4583+
<b>${i18n('popup_last_seen')}: </b>${lastSeen}<br>
4584+
<b>${i18n('popup_status')}: </b>(${isOffline ? i18n('popup_offline') : i18n('popup_online')})`;
45844585
return content;
45854586
}
45864587

static/locales/_en.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,5 +353,7 @@
353353
"and_explanation": "AND operator, for chaining conditions together",
354354
"and_result": "All Pokemon with IVs between 80-100, are L25-30, AND have stats of 15/10/10",
355355
"advanced": "Advanced",
356-
"advanced_result": "Returns all Pokemon that have either CP1400-1500 OR CP2400-2500 AND have 0-1 Attack, 15 Defense, 15 Stamina, OR level 34-35 OR 90-100% IVs OR PVP Great or Ultra league rank between 1-3."
356+
"advanced_result": "Returns all Pokemon that have either CP1400-1500 OR CP2400-2500 AND have 0-1 Attack, 15 Defense, 15 Stamina, OR level 34-35 OR 90-100% IVs OR PVP Great or Ultra league rank between 1-3.",
357+
"popup_area": "Area",
358+
"popup_size": "Size"
357359
}

static/locales/_pl.json

Lines changed: 160 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
"nav_logout": "Wyloguj",
66
"nav_register": "Utwórz konto",
77
"nav_login": "Zaloguj",
8+
"nav_google_maps": "Otwórz w Google Maps",
9+
"nav_apple_maps": "Otwórz w Apple Maps",
10+
"nav_waze_maps": "Otwórz w Wave",
811
"title_profile": "Profil",
912
"title_login": "Zaloguj",
1013
"title_register": "Rejestracja",
@@ -196,5 +199,161 @@
196199
"prompt_color_value": "Proszę wprowadzić wartość koloru. (np. red, blue, green, etc)",
197200
"prompt_nest_avg": "Proszę wprowadzić średnie obłożenie nestu, aby filtrować. Przykład: 5",
198201
"prompt_candy_amount": "Proszę wpisać ilość cukierków do filtrowania. Przykład: 2",
199-
"prompt_stardust_amount": "Proszę podać ilość stardustu do filtrowania. Przykład: 0, 500, 1500, itd."
202+
"prompt_stardust_amount": "Proszę podać ilość stardustu do filtrowania. Przykład: 0, 500, 1500, itd.",
203+
"popup_slots_available": "Dostępne miejsca",
204+
"popup_guard": "Strażnik",
205+
"popup_total_cp": "CP całkowite",
206+
"popup_gym_under_attack": "Gym jest obecnie atakowany!",
207+
"popup_raid_start": "Początek raidu",
208+
"popup_raid_end": "Koniec raidu",
209+
"popup_perfect_cp": "Idealne CP",
210+
"popup_worst_cp": "Najgorsze CP",
211+
"popup_cp": "CP",
212+
"popup_last_updated": "Ostatnio zaktualizowane",
213+
"popup_last_modified": "Ostatnio zmodyfikowane",
214+
"popup_level": "Poziom",
215+
"popup_s2_cell": "Komórka S2",
216+
"popup_cell_id": "ID komórki",
217+
"popup_cell_level": "Poziom komórki",
218+
"popup_id": "ID",
219+
"popup_lat": "Lat",
220+
"popup_lon": "Lon",
221+
"popup_gameplay_condition": "Pogoda w grze",
222+
"popup_team": "Team",
223+
"popup_gym_last_seen_in_battle": "Gym będący niedawno w trakcie walki",
224+
"popup_ex": "EX",
225+
"popup_full": "Pełny",
226+
"popup_empty": "Pusty",
227+
"popup_mega": "Mega",
228+
"popup_evolution": "Ewolucja",
229+
"popup_fast": "Fast",
230+
"popup_charge": "Charge",
231+
"popup_unknown_raid_boss": "Boss nieznany",
232+
"popup_egg": "Jajko",
233+
"popup_unknown_gym_name": "Nazwa gymu nieznana",
234+
"popup_giovanni": "Giovanni",
235+
"popup_exclude_quest": "Pomiń zadanie",
236+
"popup_filter_quest": "Filtruj zadanie",
237+
"popup_hide_quest": "Ukryj zadanie",
238+
"popup_reward": "Nagroda",
239+
"popup_quest": "Zadanie",
240+
"popup_team_rocket_invasion": "Inwazja Zespołu R",
241+
"popup_end_time": "Czas zakończenia",
242+
"popup_lure_type": "Typ Lura",
243+
"popup_lure_end_time": "Koniec czasu Lura",
244+
"popup_unknown_pokestop_name": "Nazwa Pokéstopa nieznana",
245+
"popup_scan_with_event_account": "Skanuj uwzględniając event",
246+
"popup_timer": "Licznik",
247+
"popup_hide": "Ukryj",
248+
"popup_exclude": "Pomiń",
249+
"popup_theoretical_mega_stat": "Przypuszczalne Mega statystki",
250+
"popup_first_last": "Widziany",
251+
"popup_last_seen": "Ostatnio widziany",
252+
"popup_despawn": "Zniknięcie",
253+
"popup_lvl": "Lvl",
254+
"popup_cp_too_high": "Zbyt wysokie CP",
255+
"popup_rank": "Ranking",
256+
"popup_form": "Forma",
257+
"popup_count": "Ilość",
258+
"popup_total": "W sumie",
259+
"popup_total_count": "Całkowita ilość",
260+
"popup_pokestop_count": "Ilość Pokéstopów",
261+
"popup_gym_count": "Ilość gymów",
262+
"popup_submissions_until_gym": "Portale brakujące do powstania nowego gyma",
263+
"popup_never": "Nigdy",
264+
"popup_next_submission": "Kolejny portal spowoduje powstanie nowego gyma!",
265+
"popup_wind_direction": "Kierunek wiatru",
266+
"popup_wind": "Siła wiatru",
267+
"popup_cloud": "Stopień zachmurzenia",
268+
"popup_rain": "Ilość opadów",
269+
"popup_snow": "Ilość opadów śniegu",
270+
"popup_fog": "Stopień zamglenia",
271+
"popup_special_effects": "Poziom efektów specjalnych",
272+
"popup_severity": "Trudność",
273+
"popup_warning": "Ostrzeżenie pogodowe",
274+
"popup_boosted": "Typy na booście",
275+
"popup_park": "Park",
276+
"popup_average": "Średnia",
277+
"popup_nest_data": "Dane nestu są przypuszczalne",
278+
"popup_verify_by_checking": "Zweryfikuj, sprawdzając aktualne spawny",
279+
"popup_date_imported": "Zaimportowana data",
280+
"popup_despawn_timer": "Licznik zniknięcia",
281+
"popup_minutes": "Minuty",
282+
"popup_instance": "Instancje",
283+
"popup_status": "Status",
284+
"popup_online": "Online",
285+
"popup_offline": "Offline",
286+
"popup_invalid_iv_filter": "Błędny filtr IV!",
287+
"popup_invalid_color_value": "Błędny kolor!",
288+
"popup_invalid_nest_filter": "Błędny filtr nestu!",
289+
"popup_invalid_candy_filter": "Błędny filtr candy!",
290+
"popup_invalid_stardust_filter": "Błędny filtr stardustu!",
291+
"tiny": "Niewielki",
292+
"small": "Mały",
293+
"normal": "Normalny",
294+
"large": "Duży",
295+
"big": "Wielki",
296+
"weather_none": "Żadna",
297+
"weather_clear": "Bezchmurnie",
298+
"weather_rain": "Deszcz",
299+
"weather_partly_cloudy": "Częściowe zachmurzenie",
300+
"weather_cloudy": "Pochmurno",
301+
"weather_windy": "Wietrznie",
302+
"weather_snow": "Śnieg",
303+
"weather_fog": "Mgła",
304+
"fire": "Ognisty",
305+
"grass": "Trawiasty",
306+
"ground": "Ziemny",
307+
"water": "Wodny",
308+
"electric": "Elektryczny",
309+
"bug": "Robaczy",
310+
"rock": "Kamienny",
311+
"fairy": "Wróżkowy",
312+
"fighting": "Walczący",
313+
"poison": "Trujący",
314+
"dragon": "Smoczy",
315+
"flying": "Latający",
316+
"psychic": "Psychiczny",
317+
"ice": "Lodowy",
318+
"steel": "Stalowy",
319+
"dark": "Ciemny",
320+
"ghost": "Duch",
321+
"common": "Pospolity",
322+
"uncommon": "Rzadziej spotykany",
323+
"rare": "Rzadki",
324+
"ultra_rare": "Bardzo rzadki",
325+
"regional": "Regionalny",
326+
"event": "Event",
327+
"kanto": "Region Kanto",
328+
"johto": "Region Johto",
329+
"hoenn": "Region Hoenn",
330+
"sinnoh": "Region Sinnoh",
331+
"unova": "Region Unova",
332+
"kalos": "Region Kalos",
333+
"alolan": "Alolański",
334+
"galarian": "Galariański",
335+
"ways_to_filter": "Sposoby filtrowania",
336+
"general_basics": "Podstawy",
337+
"iv_range": "Zakres IV",
338+
"iv_result": "90-100% IV Pokémona",
339+
"level_range": "Zakres poziomu",
340+
"level_result": "Poziom 30 do 35 Pokémona",
341+
"stats": "Statystyki",
342+
"stats_result": "Pokémon z 0-1 ataku, 14 obrony oraz 15 staminy",
343+
"cp_result": "Wszystkie Pokémony z CP 2000 do 3000",
344+
"not": "NIE",
345+
"not_result": "Wszystkie Pokémony bez zeskanowanego IV",
346+
"pvp": "PvP",
347+
"pvp_result": "Pokémony które mają 1-3 pozycję w Great lub Ultra lidze",
348+
"stringing_conditions_together": "Łączenie filtrów",
349+
"or": "ALBO",
350+
"or_explanation": "Operator ALBO do ustawiania oddzielnych warunków",
351+
"example": "Przykład",
352+
"or_result": "Zwraca wszystkie Pokémony które spełniają jeden z warunków: 95-100% IV ALBO Poziom 35 ALBO CP pomiędzy 2500 a 4000",
353+
"and_explanation": "Operator ORAZ do łączenia warunków ze sobą",
354+
"and_result": "Wszystkie Pokémony z: 80-100% IV ORAZ poziomem pomiędzy 25 a 30 ORAZ statystykami 15/10/10",
355+
"advanced": "Zaawansowane",
356+
"advanced_result": "Zwraca wszystkie Pokémony które spełniają warunek: (Od 0 do 1 ataku ORAZ 15 obrony ORAZ 15 staminy ORAZ (CP pomiędzy 1400 a 1500 ALBO CP pomiędzy 2400 a 2500)) ALBO (Poziomem pomiędzy 34 a 35 ALBO 90-100% IV) ALBO (Pozycją pomiędzy 1 a 3 Great lub Ultra ligi).",
357+
"popup_area": "Obszar",
358+
"popup_size": "Powierzchnia"
200359
}

0 commit comments

Comments
 (0)