Bimba.git

commit 7feea338534c4032a50953e5ae269f548afffa94

Author: Adam <git@apiote.xyz>

polish language and per-app languages

 app/build.gradle | 1 
 app/src/main/AndroidManifest.xml | 1 
 app/src/main/res/values-pl/strings.xml | 93 +++++++++++++++++++++++++++
 app/src/main/res/values/strings.xml | 13 +--
 app/src/main/res/xml/locales_config.xml | 6 +


diff --git a/app/build.gradle b/app/build.gradle
index 60e003d89ab7c2204cef0a159394409af656d8a8..1e37849d7ca14ec40cf642d01b65f2cc51601391 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -20,6 +20,7 @@         versionCode 21
         versionName "3.0.1"
 
         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+        resourceConfigurations += ["en", "pl"]
     }
 
     buildTypes {




diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index ded17a255910aa0caf84906254325b27dd95be8d..c855f7175173759dca78492b0ca2b6553d7506e4 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -15,6 +15,7 @@ 		android:enableOnBackInvokedCallback="true"
 		android:fullBackupContent="@xml/backup_rules"
 		android:icon="@mipmap/ic_launcher"
 		android:label="@string/app_name"
+		android:localeConfig="@xml/locales_config"
 		android:roundIcon="@mipmap/ic_launcher_round"
 		android:supportsRtl="true"
 		android:theme="@style/Theme.Bimba.Style"




diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index c29273c10f337a92325bd503d2243d31bb529227..44619c46efccbb0288935b313c3f5f121381a488 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -17,7 +17,7 @@ 	There was an error on the sever. Try again later
 	<string name="error_unknown">Unknown error happened</string>
 	<string name="error_connecting">Error connecting to the server. Try again later</string> <!-- send a bug report to bimba@git.apiote.xyz, details are: url=$URL, response=$response -->
 	<string name="error_offline">You are offline. Connect to the Internet</string>
-	<string name="error_gps">Cannot obtain location</string>
+	<string name="error_gps">Cannot obtain current location</string>
 	<string name="no_departures">No departures</string>
 	<string name="waiting_position">waiting for position</string>
 	<string name="vehicle_headsign">%1$s » %2$s</string>
@@ -36,7 +36,6 @@ 	standing only
 	<string name="occupancy_crowded">crowded</string>
 	<string name="occupancy_full">full</string>
 	<string name="occupancy_wont_let">won’t let in</string>
-	<string name="stop_title">%1$s [%2$s]</string>
 	<string name="no_map_app">No maps app installed</string>
 	<string name="departure_headsign">» %1$s</string>
 	<string name="departure_headsign_content_description">towards %1$s</string>
@@ -54,7 +53,7 @@ 	%1$s «» %2$s
 	<string name="line_headsigns_content_description">between %1$s and %2$s</string>
 	<string name="stops_nearby">Stops nearby</string>
 	<string name="results_for">Results for ‘%1$s’</string>
-	<string name="bimba_server_address_hint">Bimba server</string>
+	<string name="bimba_server_address_hint">Server</string>
 	<string name="bimba_server_token_hint">Token</string>
 	<string name="bimba_server_continue_button">Continue</string>
 	<string name="realtime_content_description">departure is realtime</string>
@@ -70,7 +69,7 @@ 	stop
 	<string name="seatbelts_everyone">Seatbelts, everyone!</string> <!-- taken from ‘Magic School Bus’. Should be translated like in the series -->
 	<string name="onboarding_question">How would you like to start?</string>
 	<string name="onboarding_simple">Simple</string>
-	<string name="onboarding_simple_action">choose cities</string>
+	<string name="onboarding_simple_action">choose localities</string>
 	<string name="onboarding_advanced">Advanced</string>
 	<string name="onboarding_advanced_action">choose server</string>
 	<string name="cancel">Cancel</string>
@@ -79,11 +78,11 @@ 	Rate limit
 	<string name="server_rate_limited_question">This server is rate-limited and no token was given. Do you want to continue?</string>
 	<string name="server_private_question">This server is private and no token was given</string>
 	<string name="last_update">Last update: %1$s</string>
-	<string name="title_feeds">Feeds</string>
+	<string name="title_feeds">Timetables</string>
 	<string name="title_servers">Servers</string>
-	<string name="title_cities">Cities</string>
+	<string name="title_cities">Localities</string>
 	<string name="error_url">Malformed URL provided</string>
-	<string name="error_traffic_spec">Cannot verify traffic server</string>
+	<string name="error_traffic_spec">Cannot verify server</string>
 	<string name="stops_near_code">Stops near %1$s</string>
 	<string name="code_is_not_full">Code is not full</string>
 	<string name="choose_server">Choose server flavour</string>




diff --git a/app/src/main/res/values-pl/strings.xml b/app/src/main/res/values-pl/strings.xml
new file mode 100644
index 0000000000000000000000000000000000000000..95365f4e60105b11ba1916a1df10055a74ecc0d0
--- /dev/null
+++ b/app/src/main/res/values-pl/strings.xml
@@ -0,0 +1,93 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+	<string name="app_name">Bimba</string>
+	<string name="title_home">Dom</string>
+	<string name="title_map">Mapa</string>
+	<string name="title_voyage">Podróż</string>
+	<string name="home_fab_description">ikona lokalizacji</string>
+	<string name="search_placeholder">Przeszukuj przystanki lub kody OLC</string>
+	<string name="title_activity_results">Wyniki</string>
+	<string name="cont">Kontynuuj</string>
+	<string name="save">Zapisz</string>
+	<string name="error_400">Aplikacja wykonała niepoprawne żądanie</string>
+	<string name="error_401">Żeton jest wymagany, aby używać tego serwera</string>
+	<string name="error_403">Żeton jest niepoprawny</string>
+	<string name="error_404">Nie znaleziono</string>
+	<string name="error_429">Przekroczono limit prób. Spróbuj ponownie później</string>
+	<string name="error_50x">Błąd serwera spróbój ponownie później</string>
+	<string name="error_unknown">Wystąpił nieznany błąd</string>
+	<string name="error_connecting">Błąd połączenia z serwerem. Spróbuj ponownie później</string>
+	<string name="error_offline">Brak połączenia z Internetem</string>
+	<string name="error_gps">Nie można uzyskać bierzącej pozycji</string>
+	<string name="no_departures">Brak odjazdów</string>
+	<string name="waiting_position">oczekiwanie na pozycję</string>
+	<string name="vehicle_headsign">%1$s » %2$s</string>
+	<string name="vehicle_headsign_content_description">%1$s w kierunku przystanku %2$s</string>
+	<string name="speed_in_km_per_h">%1$.3f km/h</string>
+	<string name="congestion_unknown">nieznane</string>
+	<string name="congestion_smooth">płynne</string>
+	<string name="congestion_stop_and_go">przestoje</string>
+	<string name="congestion_congestion">korki</string>
+	<string name="congestion_jams">zatory</string>
+	<string name="occupancy_unknown">nieznana</string>
+	<string name="occupancy_empty">pusty</string>
+	<string name="occupancy_many_seats">wiele miejsc</string>
+	<string name="occupancy_few_seats">kilka miejsc</string>
+	<string name="occupancy_standing_only">tylko stojące</string>
+	<string name="occupancy_crowded">zatłoczony</string>
+	<string name="occupancy_full">pełny</string>
+	<string name="occupancy_wont_let">nie wpuszcza</string>
+	<string name="no_map_app">Brak aplikacji map</string>
+	<string name="departure_headsign">» %1$s</string>
+	<string name="departure_headsign_content_description">w kierunku przystanku %1$s</string>
+	<string name="departure_momentarily">za moment</string>
+	<string name="departure_departed">odjechał</string>
+	<string name="departure_now">teraz</string>
+	<string name="at_time">o %1$02d:%2$02d</string>
+	<string name="at_time_realtime">o %1$02d:%2$02d:%3$02d</string>
+	<string name="on_demand">na żądanie</string>
+	<string name="no_boarding">brak</string>
+	<string name="on_boarding">wsiadanie</string>
+	<string name="off_boarding">wysiadanie</string>
+	<string name="boarding">standard</string>
+	<string name="line_headsigns">%1$s «» %2$s</string>
+	<string name="line_headsigns_content_description">pomiędzy przystankami %1$s i %2$s</string>
+	<string name="stops_nearby">Przystanki w pobliżu</string>
+	<string name="results_for">Wyniki dla „%1$s”</string>
+	<string name="bimba_server_address_hint">Serwer</string>
+	<string name="bimba_server_token_hint">Żeton</string>
+	<string name="bimba_server_continue_button">Kontynuuj</string>
+	<string name="realtime_content_description">odjazd w czasie rzeczywistym</string>
+	<string name="wheelchair_content_description">pojazd ma niską podłogę</string>
+	<string name="air_condition_content_description">klimatyzacja</string>
+	<string name="bicycles_allowed_content_description">przewóz rowerów dozwolony</string>
+	<string name="voice_announcements_content_description">komunikaty głosowe</string>
+	<string name="tickets_sold_content_description">możliwość kupienia biletów na pokładzie</string>
+	<string name="usb_charging_content_description">ładowarki USB</string>
+	<string name="show_departures">Pokaż odjazdy</string>
+	<string name="open_in_maps_app">Otwórz w aplikacji map</string>
+	<string name="stop_content_description">przystanek</string>
+	<string name="seatbelts_everyone">Zajmujcie miejsca!</string>
+	<string name="onboarding_question">Jak zaczynamy?</string>
+	<string name="onboarding_simple">Prosto</string>
+	<string name="onboarding_simple_action">wybór lokalizacji</string>
+	<string name="onboarding_advanced">Zaawansowane</string>
+	<string name="onboarding_advanced_action">wybór serwerów</string>
+	<string name="cancel">Anuluj</string>
+	<string name="error">Błąd</string>
+	<string name="rate_limit">Limit żądań</string>
+	<string name="server_rate_limited_question">Nie podano żetona, a serwer limituje żądania. Czy chcesz kontynuować?</string>
+	<string name="server_private_question">Nie podano żetona, a serwer jest prywatny</string>
+	<string name="last_update">Ostatnia aktualizacja: %1$s</string>
+	<string name="title_feeds">Rozkłady</string>
+	<string name="title_servers">Serwery</string>
+	<string name="title_cities">Lokalizacje</string>
+	<string name="error_url">Podano błędny URL</string>
+	<string name="error_traffic_spec">Nie można zweryfikować serwera</string>
+	<string name="stops_near_code">Przystanki w pobliżu %1$s</string>
+	<string name="code_is_not_full">Kod nie jest pełen</string>
+	<string name="choose_server">Wybierz rodzaj serwera</string>
+	<string name="ok">OK</string>
+	<string name="no_location_access">Brak uprawnień do lokalizacji</string>
+	<string name="no_location_message">Uprawnienia do używania lokalizacji są wymagane, aby znaleźć przystanki w pobliżu i pokazać aktualną pozycję na mapie. Pozostałe funkcje będą działały bez tych uprawnień. Mogą być one w każdym momencie nadane i odebrane w ustawieniach systemowych.</string>
+</resources>
\ No newline at end of file




diff --git a/app/src/main/res/xml/locales_config.xml b/app/src/main/res/xml/locales_config.xml
new file mode 100644
index 0000000000000000000000000000000000000000..7e4a28e84cc47579cf3d23a7ecc9321b8922c6a9
--- /dev/null
+++ b/app/src/main/res/xml/locales_config.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<locale-config xmlns:android="http://schemas.android.com/apk/res/android">
+<locale android:name="en"/>
+<locale android:name="pl"/>
+</locale-config>
+