1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-28 11:35:48 +01:00

Make strings translatable

This commit is contained in:
Arjan Schrijver 2024-06-08 22:21:55 +02:00
parent 83b532e16e
commit a2e6009623
5 changed files with 28 additions and 14 deletions

View File

@ -20,7 +20,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAlignment="center"
android:text="Open Source"
android:text="@string/first_start_open_source_title"
android:textSize="30sp"/>
<TextView
@ -29,7 +29,7 @@
android:layout_marginTop="20dp"
android:textSize="20sp"
android:textAlignment="center"
android:text="Gadgetbridge is an open source app. It is developed by the community, for the community.\n\nAnyone is welcome to contribute via code, documentation, testing and donations.\n\nGadgetbridge contains no ads and no tracking. It works only locally on your Android device, so it is 100% privacy friendly.\n\nVisit our website for more information, documentation and links to our communication channels." />
android:text="@string/first_start_open_source_text" />
<ImageView
android:layout_width="match_parent"

View File

@ -16,7 +16,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAlignment="center"
android:text="Get started"
android:text="@string/first_start_get_started_title"
android:textSize="25sp"/>
<TextView
@ -25,28 +25,28 @@
android:layout_marginTop="20dp"
android:textSize="20sp"
android:textAlignment="center"
android:text="To get started, add your first device directly from this screen, restore a backup or start with a clean database." />
android:text="@string/first_start_get_started_desc" />
<Button
android:id="@+id/welcome_button_add_device"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="30dp"
android:text="Add first device" />
android:text="@string/first_start_get_started_add_first_device_button" />
<Button
android:id="@+id/welcome_button_restore"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:text="Restore backup" />
android:text="@string/first_start_get_started_restore_button" />
<Button
android:id="@+id/welcome_button_to_app"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:text="Go to the app" />
android:text="@string/first_start_get_started_go_to_app_button" />
</LinearLayout>
</RelativeLayout>

View File

@ -20,7 +20,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAlignment="center"
android:text="Overview"
android:text="@string/first_start_overview_title"
android:textSize="30sp"/>
<TextView
@ -29,7 +29,7 @@
android:layout_marginTop="20dp"
android:textSize="20sp"
android:textAlignment="center"
android:text="Gadgetbridge has two main views, each with their own purpose." />
android:text="@string/first_start_overview_desc" />
<ImageView
android:layout_width="match_parent"
@ -43,7 +43,7 @@
android:layout_height="wrap_content"
android:textSize="20sp"
android:textAlignment="center"
android:text="The dashboard allows you to get a quick idea of how you're doing today. The calendar view shows the status of your goals over a whole month." />
android:text="@string/first_start_overview_dashboard" />
<ImageView
android:layout_width="match_parent"
@ -57,7 +57,7 @@
android:layout_height="wrap_content"
android:textSize="20sp"
android:textAlignment="center"
android:text="The devices view shows all devices you have configured and their status, and gives access to device specific functions such as detailed charts, settings, apps and alarms." />
android:text="@string/first_start_overview_devices" />
</LinearLayout>
</ScrollView>

View File

@ -11,7 +11,7 @@
android:layout_height="wrap_content"
android:layout_marginTop="30dp"
android:textAlignment="center"
android:text="Permissions"
android:text="@string/first_start_permissions_title"
android:textSize="30sp"/>
<TextView
@ -20,14 +20,14 @@
android:layout_marginTop="20dp"
android:textSize="20sp"
android:textAlignment="center"
android:text="Gadgetbridge needs a lot of permissions to perform all its functions. Review the permissions and their purposes below." />
android:text="@string/first_start_permissions_desc" />
<Button
android:id="@+id/button_request_all"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:text="Request all permissions"/>
android:text="@string/first_start_permissions_request_all_button"/>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/permissions_list"

View File

@ -3422,4 +3422,18 @@
<string name="music_huawei_device_info">Supported formats: %1$s\nWatch storage: %2$d MB</string>
<string name="first_start_intro_welcome_to">Welcome to</string>
<string name="first_start_intro_tag_line">Break free from the proprietary apps and cloud services of gadget vendors.</string>
<string name="first_start_overview_title">Overview</string>
<string name="first_start_overview_desc">Gadgetbridge has two main views, each with their own purpose.</string>
<string name="first_start_overview_dashboard">The dashboard allows you to get a quick idea of how you\'re doing today. The calendar view shows the status of your goals over a whole month.</string>
<string name="first_start_overview_devices">The devices view shows all devices you have configured and their status, and gives access to device specific functions such as detailed charts, settings, apps and alarms.</string>
<string name="first_start_open_source_title">Open Source</string>
<string name="first_start_open_source_text">Gadgetbridge is an open source app. It is developed by the community, for the community.\n\nAnyone is welcome to contribute via code, documentation, testing and donations.\n\nGadgetbridge contains no ads and no tracking. It works only locally on your Android device, so it is 100% privacy friendly.\n\nVisit our website for more information, documentation and links to our communication channels.</string>
<string name="first_start_permissions_title">Permissions</string>
<string name="first_start_permissions_desc">Gadgetbridge needs a lot of permissions to perform all its functions. Review the permissions and their purposes below.</string>
<string name="first_start_permissions_request_all_button">Request all permissions</string>
<string name="first_start_get_started_title">Get started</string>
<string name="first_start_get_started_desc">To get started, add your first device directly from this screen, restore a backup or start with a clean database.</string>
<string name="first_start_get_started_add_first_device_button">Add first device</string>
<string name="first_start_get_started_restore_button">Restore backup</string>
<string name="first_start_get_started_go_to_app_button">Go to the app</string>
</resources>