Android: Make tab titles game properties translatable

This commit is contained in:
Connor McLaughlin 2021-01-03 18:29:41 +10:00
parent fc3780815d
commit 9708332a80
2 changed files with 6 additions and 3 deletions

View File

@ -195,13 +195,13 @@ public class GamePropertiesActivity extends AppCompatActivity {
new TabLayoutMediator(tabLayout, viewPager, (tab, position) -> { new TabLayoutMediator(tabLayout, viewPager, (tab, position) -> {
switch (position) { switch (position) {
case 0: case 0:
tab.setText("Summary"); tab.setText(R.string.game_properties_tab_summary);
break; break;
case 1: case 1:
tab.setText("Game Settings"); tab.setText(R.string.game_properties_tab_game_settings);
break; break;
case 2: case 2:
tab.setText("Controller Settings"); tab.setText(R.string.game_properties_tab_controller_settings);
break; break;
} }
}).attach(); }).attach();

View File

@ -186,4 +186,7 @@
<string name="activity_game_properties">Game Properties</string> <string name="activity_game_properties">Game Properties</string>
<string name="game_properties_preference_use_global_setting">Use Global Setting</string> <string name="game_properties_preference_use_global_setting">Use Global Setting</string>
<string name="settings_input_profile">Input Profile</string> <string name="settings_input_profile">Input Profile</string>
<string name="game_properties_tab_summary">Summary</string>
<string name="game_properties_tab_game_settings">Game Settings</string>
<string name="game_properties_tab_controller_settings">Controller Settings</string>
</resources> </resources>