diff --git a/AnkiDroid/src/main/java/com/ichi2/anki/Sync.kt b/AnkiDroid/src/main/java/com/ichi2/anki/Sync.kt index 1e74bb490114..3b587982092f 100644 --- a/AnkiDroid/src/main/java/com/ichi2/anki/Sync.kt +++ b/AnkiDroid/src/main/java/com/ichi2/anki/Sync.kt @@ -366,7 +366,7 @@ suspend fun monitorMediaSync( .setPositiveButton(R.string.dialog_continue) { _, _ -> scope.cancel() } - .setNegativeButton(R.string.dialog_cancel) { _, _ -> + .setNegativeButton(TR.syncAbortButton()) { _, _ -> cancelMediaSync(backend) } .show() diff --git a/AnkiDroid/src/main/java/com/ichi2/anki/worker/SyncMediaWorker.kt b/AnkiDroid/src/main/java/com/ichi2/anki/worker/SyncMediaWorker.kt index b4bc1e613e94..cc0d6b16eb64 100644 --- a/AnkiDroid/src/main/java/com/ichi2/anki/worker/SyncMediaWorker.kt +++ b/AnkiDroid/src/main/java/com/ichi2/anki/worker/SyncMediaWorker.kt @@ -113,7 +113,7 @@ class SyncMediaWorker( override suspend fun getForegroundInfo(): ForegroundInfo { val title = applicationContext.getString(R.string.syncing_media) - val cancelTitle = applicationContext.getString(R.string.dialog_cancel) + val cancelTitle = CollectionManager.TR.syncAbortButton() val notification = buildNotification { setContentTitle(title) setOngoing(true) @@ -148,7 +148,7 @@ class SyncMediaWorker( private fun getProgressNotification(progress: CharSequence): Notification { val title = applicationContext.getString(R.string.syncing_media) - val cancelTitle = applicationContext.getString(R.string.dialog_cancel) + val cancelTitle = CollectionManager.TR.syncAbortButton() return buildNotification { setContentTitle(title)