Android: Make tab titles game properties translatable
This commit is contained in:
parent
fc3780815d
commit
9708332a80
|
@ -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();
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue