Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a2d049e280 | ||
|
|
a393624d03 |
No files matched your search
@@ -130,13 +130,13 @@ fun DeleteWordDialog(
|
|||||||
AlertDialog(
|
AlertDialog(
|
||||||
onDismissRequest = onDismiss,
|
onDismissRequest = onDismiss,
|
||||||
icon = { Icon(Icons.Default.Delete, contentDescription = null) },
|
icon = { Icon(Icons.Default.Delete, contentDescription = null) },
|
||||||
title = { Text("Wort löschen?") },
|
title = { Text(stringResource(R.string.dialog_delete_title)) },
|
||||||
text = { Text("„$word“ wird dauerhaft entfernt.") },
|
text = { Text(stringResource(R.string.dialog_delete_message, word)) },
|
||||||
confirmButton = {
|
confirmButton = {
|
||||||
TextButton(onClick = onConfirm) { Text("Löschen") }
|
TextButton(onClick = onConfirm) { Text(stringResource(R.string.action_delete)) }
|
||||||
},
|
},
|
||||||
dismissButton = {
|
dismissButton = {
|
||||||
TextButton(onClick = onDismiss) { Text("Abbrechen") }
|
TextButton(onClick = onDismiss) { Text(stringResource(R.string.action_cancel)) }
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -152,7 +152,7 @@ fun EditWordDialog(
|
|||||||
AlertDialog(
|
AlertDialog(
|
||||||
onDismissRequest = onDismiss,
|
onDismissRequest = onDismiss,
|
||||||
icon = { Icon(Icons.Default.Edit, contentDescription = null) },
|
icon = { Icon(Icons.Default.Edit, contentDescription = null) },
|
||||||
title = { Text("Wort bearbeiten") },
|
title = { Text(stringResource(R.string.dialog_edit_title)) },
|
||||||
text = {
|
text = {
|
||||||
OutlinedTextField(
|
OutlinedTextField(
|
||||||
value = text,
|
value = text,
|
||||||
@@ -166,10 +166,10 @@ fun EditWordDialog(
|
|||||||
TextButton(
|
TextButton(
|
||||||
onClick = { onSave(text) },
|
onClick = { onSave(text) },
|
||||||
enabled = text.isNotBlank()
|
enabled = text.isNotBlank()
|
||||||
) { Text("Speichern") }
|
) { Text(stringResource(R.string.action_save)) }
|
||||||
},
|
},
|
||||||
dismissButton = {
|
dismissButton = {
|
||||||
TextButton(onClick = onDismiss) { Text("Abbrechen") }
|
TextButton(onClick = onDismiss) { Text(stringResource(R.string.action_cancel)) }
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,19 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<string name="hint_new_word">Enter new Word</string>
|
<string name="hint_new_word">Enter new word</string>
|
||||||
<string name="hint_add_word">Add word</string>
|
<string name="hint_add_word">Add word</string>
|
||||||
<string name="msg_no_words_yet">No words yet.</string>
|
<string name="msg_no_words_yet">No words yet.</string>
|
||||||
<string name="msg_no_words">No words</string>
|
<string name="msg_no_words">No words</string>
|
||||||
<string name="title_weekly_focus">Weekly Focus</string>
|
<string name="title_weekly_focus">Weekly focus</string>
|
||||||
<string name="title_settings">Settings</string>
|
<string name="title_settings">Settings</string>
|
||||||
<string name="title_words">Words</string>
|
<string name="title_words">Words</string>
|
||||||
<string name="title_home">Home</string>
|
<string name="title_home">Home</string>
|
||||||
|
|
||||||
|
<string name="action_delete">Delete</string>
|
||||||
|
<string name="action_cancel">Cancel</string>
|
||||||
|
<string name="action_save">Save</string>
|
||||||
|
|
||||||
|
<string name="dialog_delete_title">Delete word?</string>
|
||||||
|
<string name="dialog_delete_message">“%1$s” will be permanently removed.</string>
|
||||||
|
<string name="dialog_edit_title">Edit word</string>
|
||||||
</resources>
|
</resources>
|
||||||
@@ -9,4 +9,14 @@
|
|||||||
<string name="title_settings">Einstellungen</string>
|
<string name="title_settings">Einstellungen</string>
|
||||||
<string name="title_words">Wörter</string>
|
<string name="title_words">Wörter</string>
|
||||||
<string name="title_home">Start</string>
|
<string name="title_home">Start</string>
|
||||||
|
|
||||||
|
<!-- Aktionen -->
|
||||||
|
<string name="action_delete">Löschen</string>
|
||||||
|
<string name="action_cancel">Abbrechen</string>
|
||||||
|
<string name="action_save">Speichern</string>
|
||||||
|
|
||||||
|
<!-- Dialoge -->
|
||||||
|
<string name="dialog_delete_title">Wort löschen?</string>
|
||||||
|
<string name="dialog_delete_message">„%1$s“ wird dauerhaft entfernt.</string>
|
||||||
|
<string name="dialog_edit_title">Wort bearbeiten</string>
|
||||||
</resources>
|
</resources>
|
||||||
Reference in new issue
Block a user