From 9708332a80ab704e69a0abe38bb9a771b3a8bf80 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 3 Jan 2021 18:29:41 +1000 Subject: [PATCH] Android: Make tab titles game properties translatable --- .../github/stenzek/duckstation/GamePropertiesActivity.java | 6 +++--- android/app/src/main/res/values/strings.xml | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/android/app/src/main/java/com/github/stenzek/duckstation/GamePropertiesActivity.java b/android/app/src/main/java/com/github/stenzek/duckstation/GamePropertiesActivity.java index a82213304..9b47173c8 100644 --- a/android/app/src/main/java/com/github/stenzek/duckstation/GamePropertiesActivity.java +++ b/android/app/src/main/java/com/github/stenzek/duckstation/GamePropertiesActivity.java @@ -195,13 +195,13 @@ public class GamePropertiesActivity extends AppCompatActivity { new TabLayoutMediator(tabLayout, viewPager, (tab, position) -> { switch (position) { case 0: - tab.setText("Summary"); + tab.setText(R.string.game_properties_tab_summary); break; case 1: - tab.setText("Game Settings"); + tab.setText(R.string.game_properties_tab_game_settings); break; case 2: - tab.setText("Controller Settings"); + tab.setText(R.string.game_properties_tab_controller_settings); break; } }).attach(); diff --git a/android/app/src/main/res/values/strings.xml b/android/app/src/main/res/values/strings.xml index 8bf98b20b..c68b6ab61 100644 --- a/android/app/src/main/res/values/strings.xml +++ b/android/app/src/main/res/values/strings.xml @@ -186,4 +186,7 @@ Game Properties Use Global Setting Input Profile + Summary + Game Settings + Controller Settings