Use our own translation for "OK"

I missed this in the PR that it came with, but I guess it'll be useful if we go multiplatform.
This commit is contained in:
arkon 2023-06-24 10:38:34 -04:00
parent 2eca8511cb
commit f344831d58
17 changed files with 21 additions and 21 deletions

View File

@ -415,7 +415,7 @@ private fun NsfwWarningDialog(
}, },
confirmButton = { confirmButton = {
TextButton(onClick = onClickConfirm) { TextButton(onClick = onClickConfirm) {
Text(text = stringResource(android.R.string.ok)) Text(text = stringResource(R.string.action_ok))
} }
}, },
onDismissRequest = onClickConfirm, onDismissRequest = onClickConfirm,

View File

@ -113,7 +113,7 @@ fun CategoryRenameDialog(
onDismissRequest() onDismissRequest()
}, },
) { ) {
Text(text = stringResource(android.R.string.ok)) Text(text = stringResource(R.string.action_ok))
} }
}, },
dismissButton = { dismissButton = {
@ -163,7 +163,7 @@ fun CategoryDeleteDialog(
onDelete() onDelete()
onDismissRequest() onDismissRequest()
},) { },) {
Text(text = stringResource(android.R.string.ok)) Text(text = stringResource(R.string.action_ok))
} }
}, },
dismissButton = { dismissButton = {
@ -233,7 +233,7 @@ fun ChangeCategoryDialog(
) )
}, },
) { ) {
Text(text = stringResource(android.R.string.ok)) Text(text = stringResource(R.string.action_ok))
} }
} }
}, },

View File

@ -91,7 +91,7 @@ fun HistoryDeleteAllDialog(
onDelete() onDelete()
onDismissRequest() onDismissRequest()
},) { },) {
Text(text = stringResource(android.R.string.ok)) Text(text = stringResource(R.string.action_ok))
} }
}, },
dismissButton = { dismissButton = {

View File

@ -53,7 +53,7 @@ fun DeleteLibraryMangaDialog(
) )
}, },
) { ) {
Text(text = stringResource(android.R.string.ok)) Text(text = stringResource(R.string.action_ok))
} }
}, },
title = { title = {

View File

@ -209,7 +209,7 @@ private fun SetAsDefaultDialog(
onDismissRequest() onDismissRequest()
}, },
) { ) {
Text(text = stringResource(android.R.string.ok)) Text(text = stringResource(R.string.action_ok))
} }
}, },
) )

View File

@ -26,7 +26,7 @@ fun DeleteChaptersDialog(
onConfirm() onConfirm()
}, },
) { ) {
Text(text = stringResource(android.R.string.ok)) Text(text = stringResource(R.string.action_ok))
} }
}, },
title = { title = {

View File

@ -83,7 +83,7 @@ class ClearDatabaseScreen : Screen() {
} }
}, },
) { ) {
Text(text = stringResource(android.R.string.ok)) Text(text = stringResource(R.string.action_ok))
} }
}, },
dismissButton = { dismissButton = {

View File

@ -387,7 +387,7 @@ object SettingsAdvancedScreen : SearchableSettings {
uriHandler.openUri("https://shizuku.rikka.app/download") uriHandler.openUri("https://shizuku.rikka.app/download")
}, },
) { ) {
Text(text = stringResource(android.R.string.ok)) Text(text = stringResource(R.string.action_ok))
} }
}, },
) )

View File

@ -196,7 +196,7 @@ object SettingsBackupScreen : SearchableSettings {
onConfirm(flag) onConfirm(flag)
}, },
) { ) {
Text(text = stringResource(android.R.string.ok)) Text(text = stringResource(R.string.action_ok))
} }
}, },
) )
@ -249,7 +249,7 @@ object SettingsBackupScreen : SearchableSettings {
}, },
confirmButton = { confirmButton = {
TextButton(onClick = onDismissRequest) { TextButton(onClick = onDismissRequest) {
Text(text = stringResource(android.R.string.ok)) Text(text = stringResource(R.string.action_ok))
} }
}, },
) )

View File

@ -373,7 +373,7 @@ object SettingsLibraryScreen : SearchableSettings {
}, },
confirmButton = { confirmButton = {
TextButton(onClick = { onValueChanged(leadValue, followValue) }) { TextButton(onClick = { onValueChanged(leadValue, followValue) }) {
Text(text = stringResource(android.R.string.ok)) Text(text = stringResource(R.string.action_ok))
} }
}, },
) )

View File

@ -83,7 +83,7 @@ fun EditTextPreferenceWidget(
} }
}, },
) { ) {
Text(text = stringResource(android.R.string.ok)) Text(text = stringResource(R.string.action_ok))
} }
}, },
dismissButton = { dismissButton = {

View File

@ -96,7 +96,7 @@ fun MultiSelectListPreferenceWidget(
isDialogShown = false isDialogShown = false
}, },
) { ) {
Text(text = stringResource(android.R.string.ok)) Text(text = stringResource(R.string.action_ok))
} }
}, },
dismissButton = { dismissButton = {

View File

@ -137,7 +137,7 @@ fun <T> TriStateListDialog(
onValueChanged(included, excluded) onValueChanged(included, excluded)
}, },
) { ) {
Text(text = stringResource(android.R.string.ok)) Text(text = stringResource(R.string.action_ok))
} }
}, },
) )

View File

@ -174,7 +174,7 @@ fun TrackDateSelector(
Text(text = stringResource(android.R.string.cancel)) Text(text = stringResource(android.R.string.cancel))
} }
TextButton(onClick = { onConfirm(pickerState.selectedDateMillis!!) }) { TextButton(onClick = { onConfirm(pickerState.selectedDateMillis!!) }) {
Text(text = stringResource(android.R.string.ok)) Text(text = stringResource(R.string.action_ok))
} }
} }
} }
@ -212,7 +212,7 @@ private fun BaseSelector(
Text(text = stringResource(android.R.string.cancel)) Text(text = stringResource(android.R.string.cancel))
} }
TextButton(onClick = onConfirm) { TextButton(onClick = onConfirm) {
Text(text = stringResource(android.R.string.ok)) Text(text = stringResource(R.string.action_ok))
} }
} }
}, },

View File

@ -22,7 +22,7 @@ fun UpdatesDeleteConfirmationDialog(
onConfirm() onConfirm()
onDismissRequest() onDismissRequest()
},) { },) {
Text(text = stringResource(android.R.string.ok)) Text(text = stringResource(R.string.action_ok))
} }
}, },
dismissButton = { dismissButton = {

View File

@ -254,7 +254,7 @@ class MainActivity : BaseActivity() {
}, },
confirmButton = { confirmButton = {
TextButton(onClick = { showChangelog = false }) { TextButton(onClick = { showChangelog = false }) {
Text(text = stringResource(android.R.string.ok)) Text(text = stringResource(R.string.action_ok))
} }
}, },
) )

View File

@ -89,7 +89,7 @@ private fun SetCoverDialog(
}, },
confirmButton = { confirmButton = {
TextButton(onClick = onConfirm) { TextButton(onClick = onConfirm) {
Text(stringResource(android.R.string.ok)) Text(stringResource(R.string.action_ok))
} }
}, },
dismissButton = { dismissButton = {