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 = {
TextButton(onClick = onClickConfirm) {
Text(text = stringResource(android.R.string.ok))
Text(text = stringResource(R.string.action_ok))
}
},
onDismissRequest = onClickConfirm,

View File

@ -113,7 +113,7 @@ fun CategoryRenameDialog(
onDismissRequest()
},
) {
Text(text = stringResource(android.R.string.ok))
Text(text = stringResource(R.string.action_ok))
}
},
dismissButton = {
@ -163,7 +163,7 @@ fun CategoryDeleteDialog(
onDelete()
onDismissRequest()
},) {
Text(text = stringResource(android.R.string.ok))
Text(text = stringResource(R.string.action_ok))
}
},
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()
onDismissRequest()
},) {
Text(text = stringResource(android.R.string.ok))
Text(text = stringResource(R.string.action_ok))
}
},
dismissButton = {

View File

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

View File

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

View File

@ -26,7 +26,7 @@ fun DeleteChaptersDialog(
onConfirm()
},
) {
Text(text = stringResource(android.R.string.ok))
Text(text = stringResource(R.string.action_ok))
}
},
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 = {

View File

@ -387,7 +387,7 @@ object SettingsAdvancedScreen : SearchableSettings {
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)
},
) {
Text(text = stringResource(android.R.string.ok))
Text(text = stringResource(R.string.action_ok))
}
},
)
@ -249,7 +249,7 @@ object SettingsBackupScreen : SearchableSettings {
},
confirmButton = {
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 = {
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 = {

View File

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

View File

@ -137,7 +137,7 @@ fun <T> TriStateListDialog(
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))
}
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))
}
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()
onDismissRequest()
},) {
Text(text = stringResource(android.R.string.ok))
Text(text = stringResource(R.string.action_ok))
}
},
dismissButton = {

View File

@ -254,7 +254,7 @@ class MainActivity : BaseActivity() {
},
confirmButton = {
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 = {
TextButton(onClick = onConfirm) {
Text(stringResource(android.R.string.ok))
Text(stringResource(R.string.action_ok))
}
},
dismissButton = {