forked from Schanbro/WeekFocus
chore(l10n): add translations
This commit is contained in:
1 parent
27d1a4b6ea
commit
a393624d03
3 files changed
+29
-11
No files matched your search
@@ -130,13 +130,13 @@ fun DeleteWordDialog(
|
||||
AlertDialog(
|
||||
onDismissRequest = onDismiss,
|
||||
icon = { Icon(Icons.Default.Delete, contentDescription = null) },
|
||||
title = { Text("Wort löschen?") },
|
||||
text = { Text("„$word“ wird dauerhaft entfernt.") },
|
||||
title = { Text(stringResource(R.string.dialog_delete_title)) },
|
||||
text = { Text(stringResource(R.string.dialog_delete_message, word)) },
|
||||
confirmButton = {
|
||||
TextButton(onClick = onConfirm) { Text("Löschen") }
|
||||
TextButton(onClick = onConfirm) { Text(stringResource(R.string.action_delete)) }
|
||||
},
|
||||
dismissButton = {
|
||||
TextButton(onClick = onDismiss) { Text("Abbrechen") }
|
||||
TextButton(onClick = onDismiss) { Text(stringResource(R.string.action_cancel)) }
|
||||
}
|
||||
)
|
||||
}
|
||||
@@ -152,7 +152,7 @@ fun EditWordDialog(
|
||||
AlertDialog(
|
||||
onDismissRequest = onDismiss,
|
||||
icon = { Icon(Icons.Default.Edit, contentDescription = null) },
|
||||
title = { Text("Wort bearbeiten") },
|
||||
title = { Text(stringResource(R.string.dialog_edit_title)) },
|
||||
text = {
|
||||
OutlinedTextField(
|
||||
value = text,
|
||||
@@ -166,10 +166,10 @@ fun EditWordDialog(
|
||||
TextButton(
|
||||
onClick = { onSave(text) },
|
||||
enabled = text.isNotBlank()
|
||||
) { Text("Speichern") }
|
||||
) { Text(stringResource(R.string.action_save)) }
|
||||
},
|
||||
dismissButton = {
|
||||
TextButton(onClick = onDismiss) { Text("Abbrechen") }
|
||||
TextButton(onClick = onDismiss) { Text(stringResource(R.string.action_cancel)) }
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user