Add string values for the ImportDialogFragment

This commit is contained in:
uykek 2020-07-09 08:41:07 +02:00
parent 61fc0a243a
commit 0ccb20ad19
3 changed files with 5 additions and 1 deletions

View file

@ -415,7 +415,7 @@ public class MainActivity extends BaseActivity implements NavigationView.OnNavig
DialogFragmentImportBoardBinding binding = DialogFragmentImportBoardBinding.inflate(inflater); DialogFragmentImportBoardBinding binding = DialogFragmentImportBoardBinding.inflate(inflater);
builder.setView(binding.getRoot()); builder.setView(binding.getRoot());
builder.setMessage(R.string.dialog_import_custom_sudoku); builder.setMessage(R.string.dialog_import_custom_sudoku);
builder.setPositiveButton(R.string.share_confirmation_confirm, new DialogInterface.OnClickListener() { builder.setPositiveButton(R.string.dialog_import_custom_sudoku_positive_button, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) { public void onClick(DialogInterface dialog, int id) {
for(IImportDialogFragmentListener l : listeners) { for(IImportDialogFragmentListener l : listeners) {
l.onImportDialogPositiveClick(binding.ver3ImportSudokuEditText.getText().toString()); l.onImportDialogPositiveClick(binding.ver3ImportSudokuEditText.getText().toString());

View file

@ -114,6 +114,8 @@
<string name="number_of_completed_games">Abgeschlossene <br>Spiele</br></string> <string name="number_of_completed_games">Abgeschlossene <br>Spiele</br></string>
<!-- ### Create custome sudoku ###--> <!-- ### Create custome sudoku ###-->
<string name="menu_import_custom_sudoku">Sudoku importieren</string> <string name="menu_import_custom_sudoku">Sudoku importieren</string>
<string name="dialog_import_custom_sudoku">Gib das Sudoku, das du importieren möchtest, ein:</string>
<string name="dialog_import_custom_sudoku_positive_button">Importieren</string>
<string name="finalize_custom_sudoku_dialog">Möchtest du dieses Sudoku fertigstellen?</string> <string name="finalize_custom_sudoku_dialog">Möchtest du dieses Sudoku fertigstellen?</string>
<string name="verify_custom_sudoku_process_toast">Verifiziere Level&#8230;</string> <string name="verify_custom_sudoku_process_toast">Verifiziere Level&#8230;</string>
<string name="finished_verifying_custom_sudoku_toast">Verifizierung abgeschlossen!</string> <string name="finished_verifying_custom_sudoku_toast">Verifizierung abgeschlossen!</string>

View file

@ -171,6 +171,8 @@
<!-- ### Create custome sudoku ###--> <!-- ### Create custome sudoku ###-->
<string name="menu_import_custom_sudoku">Import Sudoku</string> <string name="menu_import_custom_sudoku">Import Sudoku</string>
<string name="dialog_import_custom_sudoku">Enter the sudoku you wish to import:</string>
<string name="dialog_import_custom_sudoku_positive_button">Import</string>
<string name="finalize_custom_sudoku_dialog">Do you wish to finalize this sudoku?</string> <string name="finalize_custom_sudoku_dialog">Do you wish to finalize this sudoku?</string>
<string name="verify_custom_sudoku_process_toast">Verifying&#8230;</string> <string name="verify_custom_sudoku_process_toast">Verifying&#8230;</string>
<string name="finished_verifying_custom_sudoku_toast">Done verifying!</string> <string name="finished_verifying_custom_sudoku_toast">Done verifying!</string>