Skip to content

Commit

Permalink
chore: "Full" -> "One-way sync from server"
Browse files Browse the repository at this point in the history
  • Loading branch information
david-allison authored and lukstbit committed Mar 21, 2024
1 parent a946ce8 commit 4eecb79
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion AnkiDroid/src/main/java/com/ichi2/anki/Sync.kt
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ private suspend fun handleDownload(
}

Timber.i("Full Download Completed")
deckPicker.showSyncLogMessage(R.string.backup_full_sync_from_server, "")
deckPicker.showSyncLogMessage(R.string.backup_one_way_sync_from_server, "")
}

private suspend fun handleUpload(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class DatabaseErrorDialog : AsyncDialogFragment() {
values.add(3)
// one-way sync from server
if (isLoggedIn) {
options.add(res.getString(R.string.backup_full_sync_from_server))
options.add(res.getString(R.string.backup_one_way_sync_from_server))
values.add(4)
}
// delete old collection and build new one
Expand Down Expand Up @@ -299,7 +299,7 @@ class DatabaseErrorDialog : AsyncDialogFragment() {
DIALOG_ONE_WAY_SYNC_FROM_SERVER -> {
// Allow user to do a full-sync from the server
alertDialog.show {
title(R.string.backup_full_sync_from_server)
title(R.string.backup_one_way_sync_from_server)
message(text = message)
positiveButton(R.string.dialog_positive_overwrite) {
(activity as DeckPicker).sync(ConflictResolution.FULL_DOWNLOAD)
Expand All @@ -325,7 +325,7 @@ class DatabaseErrorDialog : AsyncDialogFragment() {
options.add(makeBold(res.getString(R.string.backup_restore)))
values.add(0)
if (isLoggedIn) {
options.add(makeBold(res.getString(R.string.backup_full_sync_from_server)))
options.add(makeBold(res.getString(R.string.backup_one_way_sync_from_server)))
values.add(1)
}
dialog.show {
Expand Down Expand Up @@ -522,7 +522,7 @@ class DatabaseErrorDialog : AsyncDialogFragment() {
DIALOG_NEW_COLLECTION -> res().getString(R.string.backup_new_collection)
DIALOG_CONFIRM_DATABASE_CHECK -> res().getString(R.string.check_db_title)
DIALOG_CONFIRM_RESTORE_BACKUP -> res().getString(R.string.restore_backup_title)
DIALOG_ONE_WAY_SYNC_FROM_SERVER -> res().getString(R.string.backup_full_sync_from_server)
DIALOG_ONE_WAY_SYNC_FROM_SERVER -> res().getString(R.string.backup_one_way_sync_from_server)
DIALOG_DB_LOCKED -> res().getString(R.string.database_locked_title)
INCOMPATIBLE_DB_VERSION -> res().getString(R.string.incompatible_database_version_title)
DIALOG_DB_ERROR -> res().getString(R.string.answering_error_title)
Expand Down
2 changes: 1 addition & 1 deletion AnkiDroid/src/main/res/values/09-backup.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<string name="backup_new_collection">New collection</string>
<string name="backup_del_collection">Delete collection and create new one</string>
<string name="backup_del_collection_question">Delete the collection and create a new one? This will drop all your learning progress and delete all cards.</string>
<string name="backup_full_sync_from_server">Full sync from server</string>
<string name="backup_one_way_sync_from_server">One-way sync from server</string>
<string name="backup_full_sync_from_server_question">Overwrite your collection with the one from AnkiWeb? This will drop all your learning progress and added information since your last sync.</string>
<string name="error_handling_title">Error handling</string>
<string name="error_handling_options" comment="In a warning message, the label of the suggested action that the user should take">Options</string>
Expand Down

0 comments on commit 4eecb79

Please sign in to comment.