Albirew/tachiyomi
Archivé
1
0
Bifurcation 0

Remove usages of incorrect platform yes/no strings

Cette révision appartient à :
arkon 2020-02-22 12:38:06 -05:00
Parent 8bb83782c7
révision b06f1c81bc
7 fichiers modifiés avec 14 ajouts et 14 suppressions

Voir le fichier

@ -28,8 +28,8 @@ class DeleteLibraryMangasDialog<T>(bundle: Bundle? = null) :
return MaterialDialog.Builder(activity!!)
.title(R.string.action_remove)
.customView(view, true)
.positiveText(android.R.string.yes)
.negativeText(android.R.string.no)
.positiveText(android.R.string.ok)
.negativeText(android.R.string.cancel)
.onPositive { _, _ ->
val deleteChapters = view.isChecked()
(targetController as? Listener)?.deleteMangasFromLibrary(mangas, deleteChapters)

Voir le fichier

@ -18,7 +18,7 @@ class ChangelogDialogController : DialogController() {
return MaterialDialog.Builder(activity)
.title(if (BuildConfig.DEBUG) "Notices" else "Changelog")
.customView(view, false)
.positiveText(android.R.string.yes)
.positiveText(R.string.action_close)
.build()
}

Voir le fichier

@ -17,8 +17,8 @@ class DeleteChaptersDialog<T>(bundle: Bundle? = null) : DialogController(bundle)
override fun onCreateDialog(savedViewState: Bundle?): Dialog {
return MaterialDialog.Builder(activity!!)
.content(R.string.confirm_delete_chapters)
.positiveText(android.R.string.yes)
.negativeText(android.R.string.no)
.positiveText(android.R.string.ok)
.negativeText(android.R.string.cancel)
.onPositive { _, _ ->
(targetController as? Listener)?.deleteChapters()
}
@ -29,4 +29,4 @@ class DeleteChaptersDialog<T>(bundle: Bundle? = null) : DialogController(bundle)
fun deleteChapters()
}
}
}

Voir le fichier

@ -48,8 +48,8 @@ class ReaderPageSheet(
MaterialDialog.Builder(activity)
.content(activity.getString(R.string.confirm_set_image_as_cover))
.positiveText(android.R.string.yes)
.negativeText(android.R.string.no)
.positiveText(android.R.string.ok)
.negativeText(android.R.string.cancel)
.onPositive { _, _ ->
activity.setAsCover(page)
dismiss()

Voir le fichier

@ -20,8 +20,8 @@ class ConfirmDeleteChaptersDialog<T>(bundle: Bundle? = null) : DialogController(
override fun onCreateDialog(savedViewState: Bundle?): Dialog {
return MaterialDialog.Builder(activity!!)
.content(R.string.confirm_delete_chapters)
.positiveText(android.R.string.yes)
.negativeText(android.R.string.no)
.positiveText(android.R.string.ok)
.negativeText(android.R.string.cancel)
.onPositive { _, _ ->
(targetController as? Listener)?.deleteChapters(chaptersToDelete)
}
@ -31,4 +31,4 @@ class ConfirmDeleteChaptersDialog<T>(bundle: Bundle? = null) : DialogController(
interface Listener {
fun deleteChapters(chaptersToDelete: List<RecentChapterItem>)
}
}
}

Voir le fichier

@ -143,8 +143,8 @@ class SettingsAdvancedController : SettingsController() {
override fun onCreateDialog(savedViewState: Bundle?): Dialog {
return MaterialDialog.Builder(activity!!)
.content(R.string.clear_database_confirmation)
.positiveText(android.R.string.yes)
.negativeText(android.R.string.no)
.positiveText(android.R.string.ok)
.negativeText(android.R.string.cancel)
.onPositive { _, _ ->
(targetController as? SettingsAdvancedController)?.clearDatabase()
}

Voir le fichier

@ -364,7 +364,7 @@ class SettingsBackupController : SettingsController() {
return MaterialDialog.Builder(activity)
.title(R.string.restore_completed)
.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)
.negativeText(R.string.action_open_log)
.onNegative { _, _ ->