mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 02:51:47 +01:00
Remove usages of incorrect platform yes/no strings
This commit is contained in:
parent
8bb83782c7
commit
b06f1c81bc
@ -28,8 +28,8 @@ class DeleteLibraryMangasDialog<T>(bundle: Bundle? = null) :
|
|||||||
return MaterialDialog.Builder(activity!!)
|
return MaterialDialog.Builder(activity!!)
|
||||||
.title(R.string.action_remove)
|
.title(R.string.action_remove)
|
||||||
.customView(view, true)
|
.customView(view, true)
|
||||||
.positiveText(android.R.string.yes)
|
.positiveText(android.R.string.ok)
|
||||||
.negativeText(android.R.string.no)
|
.negativeText(android.R.string.cancel)
|
||||||
.onPositive { _, _ ->
|
.onPositive { _, _ ->
|
||||||
val deleteChapters = view.isChecked()
|
val deleteChapters = view.isChecked()
|
||||||
(targetController as? Listener)?.deleteMangasFromLibrary(mangas, deleteChapters)
|
(targetController as? Listener)?.deleteMangasFromLibrary(mangas, deleteChapters)
|
||||||
|
@ -18,7 +18,7 @@ class ChangelogDialogController : DialogController() {
|
|||||||
return MaterialDialog.Builder(activity)
|
return MaterialDialog.Builder(activity)
|
||||||
.title(if (BuildConfig.DEBUG) "Notices" else "Changelog")
|
.title(if (BuildConfig.DEBUG) "Notices" else "Changelog")
|
||||||
.customView(view, false)
|
.customView(view, false)
|
||||||
.positiveText(android.R.string.yes)
|
.positiveText(R.string.action_close)
|
||||||
.build()
|
.build()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,8 +17,8 @@ class DeleteChaptersDialog<T>(bundle: Bundle? = null) : DialogController(bundle)
|
|||||||
override fun onCreateDialog(savedViewState: Bundle?): Dialog {
|
override fun onCreateDialog(savedViewState: Bundle?): Dialog {
|
||||||
return MaterialDialog.Builder(activity!!)
|
return MaterialDialog.Builder(activity!!)
|
||||||
.content(R.string.confirm_delete_chapters)
|
.content(R.string.confirm_delete_chapters)
|
||||||
.positiveText(android.R.string.yes)
|
.positiveText(android.R.string.ok)
|
||||||
.negativeText(android.R.string.no)
|
.negativeText(android.R.string.cancel)
|
||||||
.onPositive { _, _ ->
|
.onPositive { _, _ ->
|
||||||
(targetController as? Listener)?.deleteChapters()
|
(targetController as? Listener)?.deleteChapters()
|
||||||
}
|
}
|
||||||
|
@ -48,8 +48,8 @@ class ReaderPageSheet(
|
|||||||
|
|
||||||
MaterialDialog.Builder(activity)
|
MaterialDialog.Builder(activity)
|
||||||
.content(activity.getString(R.string.confirm_set_image_as_cover))
|
.content(activity.getString(R.string.confirm_set_image_as_cover))
|
||||||
.positiveText(android.R.string.yes)
|
.positiveText(android.R.string.ok)
|
||||||
.negativeText(android.R.string.no)
|
.negativeText(android.R.string.cancel)
|
||||||
.onPositive { _, _ ->
|
.onPositive { _, _ ->
|
||||||
activity.setAsCover(page)
|
activity.setAsCover(page)
|
||||||
dismiss()
|
dismiss()
|
||||||
|
@ -20,8 +20,8 @@ class ConfirmDeleteChaptersDialog<T>(bundle: Bundle? = null) : DialogController(
|
|||||||
override fun onCreateDialog(savedViewState: Bundle?): Dialog {
|
override fun onCreateDialog(savedViewState: Bundle?): Dialog {
|
||||||
return MaterialDialog.Builder(activity!!)
|
return MaterialDialog.Builder(activity!!)
|
||||||
.content(R.string.confirm_delete_chapters)
|
.content(R.string.confirm_delete_chapters)
|
||||||
.positiveText(android.R.string.yes)
|
.positiveText(android.R.string.ok)
|
||||||
.negativeText(android.R.string.no)
|
.negativeText(android.R.string.cancel)
|
||||||
.onPositive { _, _ ->
|
.onPositive { _, _ ->
|
||||||
(targetController as? Listener)?.deleteChapters(chaptersToDelete)
|
(targetController as? Listener)?.deleteChapters(chaptersToDelete)
|
||||||
}
|
}
|
||||||
|
@ -143,8 +143,8 @@ class SettingsAdvancedController : SettingsController() {
|
|||||||
override fun onCreateDialog(savedViewState: Bundle?): Dialog {
|
override fun onCreateDialog(savedViewState: Bundle?): Dialog {
|
||||||
return MaterialDialog.Builder(activity!!)
|
return MaterialDialog.Builder(activity!!)
|
||||||
.content(R.string.clear_database_confirmation)
|
.content(R.string.clear_database_confirmation)
|
||||||
.positiveText(android.R.string.yes)
|
.positiveText(android.R.string.ok)
|
||||||
.negativeText(android.R.string.no)
|
.negativeText(android.R.string.cancel)
|
||||||
.onPositive { _, _ ->
|
.onPositive { _, _ ->
|
||||||
(targetController as? SettingsAdvancedController)?.clearDatabase()
|
(targetController as? SettingsAdvancedController)?.clearDatabase()
|
||||||
}
|
}
|
||||||
|
@ -364,7 +364,7 @@ class SettingsBackupController : SettingsController() {
|
|||||||
return MaterialDialog.Builder(activity)
|
return MaterialDialog.Builder(activity)
|
||||||
.title(R.string.restore_completed)
|
.title(R.string.restore_completed)
|
||||||
.content(activity.getString(R.string.restore_completed_content, timeString,
|
.content(activity.getString(R.string.restore_completed_content, timeString,
|
||||||
if (errors > 0) "$errors" else activity.getString(android.R.string.no)))
|
if (errors > 0) "$errors" else activity.getString(android.R.string.cancel)))
|
||||||
.positiveText(R.string.action_close)
|
.positiveText(R.string.action_close)
|
||||||
.negativeText(R.string.action_open_log)
|
.negativeText(R.string.action_open_log)
|
||||||
.onNegative { _, _ ->
|
.onNegative { _, _ ->
|
||||||
|
Loading…
Reference in New Issue
Block a user