Make android game data extraction ui translatable

This commit is contained in:
Benau
2020-07-19 14:21:14 +08:00
parent 6aab8857cc
commit a3b0c4d240
4 changed files with 83 additions and 6 deletions

View File

@@ -75,7 +75,8 @@ public class SuperTuxKartActivity extends SDLActivity
ViewGroup.LayoutParams.WRAP_CONTENT);
ll_param.gravity = Gravity.CENTER;
TextView tv = new TextView(this);
tv.setText("Extracting game data...");
// From values strings.xml which is generated by make.sh
tv.setText(getString(R.string.po_extract_game_data));
tv.setLayoutParams(ll_param);
ll_param = new LinearLayout.LayoutParams(
@@ -343,10 +344,9 @@ public class SuperTuxKartActivity extends SDLActivity
}
AlertDialog.Builder error =
new AlertDialog.Builder(SDL.getContext());
error.setMessage("Check remaining device space or " +
"reinstall SuperTuxKart.");
error.setTitle("Extract game data error");
error.setPositiveButton("Exit",
error.setMessage(getString(R.string.po_extract_error_msg));
error.setTitle(getString(R.string.po_extract_error));
error.setPositiveButton(getString(R.string.po_quit),
new DialogInterface.OnClickListener()
{
@Override