Make strings translatable

This commit is contained in:
Marvin W 2020-07-21 23:16:49 +02:00
parent 638b088781
commit d5dfbadaff
No known key found for this signature in database
GPG Key ID: 072E9235DB996F2A
15 changed files with 49 additions and 30 deletions

View File

@ -36,6 +36,10 @@ android {
kotlinOptions {
jvmTarget = "1.8"
}
lintOptions {
warning "MissingTranslation"
}
}
apply from: "../gradle/androidJars.gradle"

View File

@ -114,7 +114,7 @@
android:maxLines="2"
android:paddingStart="56dp"
android:paddingLeft="56dp"
android:text="Use backend"
android:text="@string/nlp_backend_enable"
android:textAppearance="?attr/textAppearanceListItem"
android:textColor="?android:attr/textColorPrimaryInverse" />
@ -162,7 +162,7 @@
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:singleLine="true"
android:text="Configure"
android:text="@string/nlp_backend_action_configure"
android:textAppearance="?attr/textAppearanceListItem" />
</RelativeLayout>
</LinearLayout>
@ -198,7 +198,7 @@
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:singleLine="true"
android:text='About'
android:text="@string/nlp_backend_action_about"
android:textAppearance="?attr/textAppearanceListItem" />
</RelativeLayout>
</LinearLayout>
@ -238,7 +238,7 @@
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:singleLine="true"
android:text="Description"
android:text="@string/nlp_backend_description"
android:textAppearance="?attr/textAppearanceListItem"
android:textColor="?android:attr/textColorSecondary" />
@ -284,7 +284,7 @@
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:singleLine="true"
android:text="Last location"
android:text="@string/nlp_backend_last_location"
android:textAppearance="?attr/textAppearanceListItem"
android:textColor="?android:attr/textColorSecondary" />

View File

@ -34,7 +34,7 @@
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Network-based Geolocation modules"
android:text="@string/nlp_backends_network_location"
android:ellipsize="marquee"
android:paddingStart="56dp"
android:paddingLeft="56dp"
@ -79,7 +79,7 @@
android:paddingTop="8dp"
android:paddingBottom="8dp"
android:singleLine="true"
android:text="Address lookup modules"
android:text="@string/nlp_backends_geocoding"
android:textAppearance="?attr/preferenceCategoryTitleTextAppearance"
android:textColor="?attr/colorAccent"/>
</LinearLayout>

View File

@ -74,7 +74,7 @@
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:singleLine="true"
android:text='@{entry.name ?? "No provider installed"}'
android:text='@{entry.name ?? @string/nlp_backends_none}'
android:textAppearance="?attr/textAppearanceListItem"
tools:text="@tools:sample/lorem" />
</RelativeLayout>

View File

@ -12,7 +12,7 @@
<fragment
android:id="@+id/backendListFragment"
android:name="org.microg.nlp.ui.BackendListFragment"
android:label="Location modules"
android:label="@string/nlp_backends_title"
tools:layout="@layout/backend_list">
<action
android:id="@+id/openBackendDetails"
@ -25,7 +25,7 @@
<fragment
android:id="@+id/backendDetailsFragment"
android:name="org.microg.nlp.ui.BackendDetailsFragment"
android:label="Location module details"
android:label="@string/nlp_backend_details_title"
tools:layout="@layout/backend_details">
<argument
android:name="type"

View File

@ -5,6 +5,12 @@
-->
<resources>
<string name="network_location">Funknetz-basierte Ortung</string>
<string name="geocoding">Adressauflösung</string>
<string name="nlp_backends_network_location">Module für Funknetz-basierte Ortung</string>
<string name="nlp_backends_geocoding">Module für Adressauflösung</string>
<string name="nlp_backend_action_configure">Konfigurieren</string>
<string name="nlp_backend_action_about">Infos</string>
<string name="nlp_backend_enable">Modul benutzen</string>
<string name="nlp_backend_description">Beschreibung</string>
<string name="nlp_backend_last_location">Letzte Ortung</string>
</resources>

View File

@ -5,6 +5,6 @@
-->
<resources>
<string name="network_location">Ret-bazita pozici-trovado</string>
<string name="geocoding">Adres-elserĉado</string>
<string name="nlp_backend_action_configure">Agordi</string>
<string name="nlp_backend_action_about">Pri</string>
</resources>

View File

@ -5,6 +5,6 @@
-->
<resources>
<string name="network_location">Géolocalisation réseau</string>
<string name="geocoding">Géocodage</string>
<string name="nlp_backend_action_configure">Configurer</string>
<string name="nlp_backend_action_about">À propos</string>
</resources>

View File

@ -5,6 +5,6 @@
-->
<resources>
<string name="network_location">Geolokalizacja oparta o sieć</string>
<string name="geocoding">Wyszukiwanie adresów</string>
<string name="nlp_backend_action_configure">Konfiguruj</string>
<string name="nlp_backend_action_about">O programie</string>
</resources>

View File

@ -5,6 +5,5 @@
-->
<resources>
<string name="network_location">Localizare geografică bazată pe rețea</string>
<string name="geocoding">Căutare adrese</string>
<string name="nlp_backend_action_configure">Configuraţi</string>
</resources>

View File

@ -5,6 +5,6 @@
-->
<resources>
<string name="network_location">Местоположение по сети</string>
<string name="geocoding">Поиск адреса</string>
<string name="nlp_backend_action_configure">Настроить</string>
<string name="nlp_backend_action_about">О программе</string>
</resources>

View File

@ -5,6 +5,6 @@
-->
<resources>
<string name="network_location">Мрежна геолокација</string>
<string name="geocoding">Потрага адресе</string>
<string name="nlp_backend_action_configure">Подеси</string>
<string name="nlp_backend_action_about">О програму</string>
</resources>

View File

@ -5,6 +5,6 @@
-->
<resources>
<string name="network_location">Географічне позиціювання на основі мереж</string>
<string name="geocoding">Пошук адрес</string>
<string name="nlp_backend_action_configure">Сконфігурувати</string>
<string name="nlp_backend_action_about">Про</string>
</resources>

View File

@ -5,6 +5,6 @@
-->
<resources>
<string name="network_location">基於網路的地理位置定位</string>
<string name="geocoding">地址查閱</string>
<string name="nlp_backend_action_configure">設定</string>
<string name="nlp_backend_action_about">關於</string>
</resources>

View File

@ -5,6 +5,16 @@
-->
<resources>
<string name="network_location">Network-based Geolocation</string>
<string name="geocoding">Address lookup</string>
<string name="nlp_backends_title">Location modules</string>
<string name="nlp_backend_details_title">Location module details</string>
<string name="nlp_backends_network_location">Network-based Geolocation modules</string>
<string name="nlp_backends_geocoding">Address lookup modules</string>
<string name="nlp_backends_none">No module installed</string>
<string name="nlp_backend_action_configure">Configure</string>
<string name="nlp_backend_action_about">About</string>
<string name="nlp_backend_enable">Use module</string>
<string name="nlp_backend_description">Description</string>
<string name="nlp_backend_last_location">Last location</string>
</resources>