Modern Apps git

← Modern-Apps.git

everysync: fix all lint findings

Commit
7a9f5bbb92a6b08061c6155b47949c03d16f740a
Author
Vayun Mathur <[email protected]>
When
2026-11-17 03:58 UTC (19 days ago)
Parents
a107175
Fix every lint error and warning reported for the everysync module's own sources by :everysync:lintDev, now 0 errors / 0 warnings for everysync/** (remaining report entries are transitive library findings owned by other clusters).

Removed 12 orphaned Arabic translations (dav_*, icloud_*, sync_health and similar) that had no default-locale source string and no code references. Converted snapshot_row and snapshot_restored to plurals. Replaced Uri.parse with toUri() in the sync sinks, hoisted context.getString reads to stringResource/LocalResources in composition, switched to mutableIntStateOf, and declared POST_NOTIFICATIONS. Split SnapshotSection into its own file for OneComposablePerFile.

No @SuppressLint added; no lint config or baseline changed; no rule-bug categories.

Verified: ./gradlew :everysync:lintDev (0 own-module errors/warnings) and :everysync:testDevUnitTest green (179 tests).

Diff

everysync/src/main/AndroidManifest.xml
diff --git a/everysync/src/main/AndroidManifest.xml b/everysync/src/main/AndroidManifest.xmlindex 28370a2f35..3167823fd3 100644--- a/everysync/src/main/AndroidManifest.xml+++ b/everysync/src/main/AndroidManifest.xml@@ -7,6 +7,7 @@     <uses-permission android:name="com.vayunmathur.permission.SENSORS_OPTOUT" />      <uses-permission android:name="android.permission.INTERNET" />+    <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />     <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> 
everysync/src/main/java/com/vayunmathur/everysync/MainActivity.kt
diff --git a/everysync/src/main/java/com/vayunmathur/everysync/MainActivity.kt b/everysync/src/main/java/com/vayunmathur/everysync/MainActivity.ktindex 01ef2f9e37..3f30c71c16 100644--- a/everysync/src/main/java/com/vayunmathur/everysync/MainActivity.kt+++ b/everysync/src/main/java/com/vayunmathur/everysync/MainActivity.kt@@ -19,8 +19,7 @@ class MainActivity : MaActivity() {     private val viewModel: EverySyncViewModel by viewModels()      override fun onCreateBeforeContent() {-        // everysync://join links request access to someone else's vault — fire a-        // sealed join request (public ids only) and confirm on the snackbar.+        // A join link (everysync://join/...) requests vault access, so fire the request and confirm on the snackbar.         parseJoinLink(intent)?.let { handleJoinLink(it) }     } 
everysync/src/main/java/com/vayunmathur/everysync/data/sink/NoteSink.kt
diff --git a/everysync/src/main/java/com/vayunmathur/everysync/data/sink/NoteSink.kt b/everysync/src/main/java/com/vayunmathur/everysync/data/sink/NoteSink.ktindex e8e6391400..d8309a95b5 100644--- a/everysync/src/main/java/com/vayunmathur/everysync/data/sink/NoteSink.kt+++ b/everysync/src/main/java/com/vayunmathur/everysync/data/sink/NoteSink.kt@@ -3,6 +3,7 @@ package com.vayunmathur.everysync.data.sink import android.content.ContentValues import android.content.Context import android.net.Uri+import androidx.core.net.toUri import androidx.core.database.getLongOrNull import androidx.core.database.getStringOrNull import com.vayunmathur.everysync.data.RemoteNote@@ -75,10 +76,10 @@ object NoteSink {     private val json = Json { ignoreUnknownKeys = true }      fun notesUri(vaultId: String): Uri =-        Uri.parse("content://$AUTHORITY/vault/$vaultId/$PATH_NOTES")+        "content://$AUTHORITY/vault/$vaultId/$PATH_NOTES".toUri()      fun snapshotsUri(vaultId: String): Uri =-        Uri.parse("content://$AUTHORITY/vault/$vaultId/$PATH_SNAPSHOTS")+        "content://$AUTHORITY/vault/$vaultId/$PATH_SNAPSHOTS".toUri()      fun queryUri(vaultId: String): Uri =         notesUri(vaultId).buildUpon().appendPath(OP_QUERY_SINCE).build()@@ -87,7 +88,7 @@ object NoteSink {         notesUri(vaultId).buildUpon().appendPath(OP_UPSERT_RAW).build()      fun purgeUri(vaultId: String, table: String): Uri =-        Uri.parse("content://$AUTHORITY/vault/$vaultId/$table")+        "content://$AUTHORITY/vault/$vaultId/$table".toUri()             .buildUpon().appendPath(OP_DELETE_BY_VAULT).build()      /** Relay envelope for [note] (adapter bytes — what the relay log carries). */
everysync/src/main/java/com/vayunmathur/everysync/data/sink/PasswordSink.kt
diff --git a/everysync/src/main/java/com/vayunmathur/everysync/data/sink/PasswordSink.kt b/everysync/src/main/java/com/vayunmathur/everysync/data/sink/PasswordSink.ktindex 002183652c..059220e766 100644--- a/everysync/src/main/java/com/vayunmathur/everysync/data/sink/PasswordSink.kt+++ b/everysync/src/main/java/com/vayunmathur/everysync/data/sink/PasswordSink.kt@@ -3,6 +3,7 @@ package com.vayunmathur.everysync.data.sink import android.content.ContentValues import android.content.Context import android.net.Uri+import androidx.core.net.toUri import androidx.core.database.getLongOrNull import androidx.core.database.getStringOrNull import com.vayunmathur.everysync.data.RemotePassword@@ -113,13 +114,13 @@ object PasswordSink {     private val json = Json { ignoreUnknownKeys = true }      fun passwordsUri(vaultId: String): Uri =-        Uri.parse("content://$AUTHORITY/vault/$vaultId/$PATH_PASSWORDS")+        "content://$AUTHORITY/vault/$vaultId/$PATH_PASSWORDS".toUri()      fun passkeysUri(vaultId: String): Uri =-        Uri.parse("content://$AUTHORITY/vault/$vaultId/$PATH_PASSKEYS")+        "content://$AUTHORITY/vault/$vaultId/$PATH_PASSKEYS".toUri()      fun snapshotsUri(vaultId: String): Uri =-        Uri.parse("content://$AUTHORITY/vault/$vaultId/$PATH_SNAPSHOTS")+        "content://$AUTHORITY/vault/$vaultId/$PATH_SNAPSHOTS".toUri()      fun queryUri(vaultId: String, isPasskey: Boolean): Uri =         tableUri(vaultId, isPasskey).buildUpon()@@ -130,7 +131,7 @@ object PasswordSink {             .appendPath(OP_UPSERT_RAW).build()      fun purgeUri(vaultId: String, table: String): Uri =-        Uri.parse("content://$AUTHORITY/vault/$vaultId/$table")+        "content://$AUTHORITY/vault/$vaultId/$table".toUri()             .buildUpon().appendPath(OP_DELETE_BY_VAULT).build()      private fun tableUri(vaultId: String, isPasskey: Boolean): Uri =
everysync/src/main/java/com/vayunmathur/everysync/data/sink/TodoIpcSink.kt
diff --git a/everysync/src/main/java/com/vayunmathur/everysync/data/sink/TodoIpcSink.kt b/everysync/src/main/java/com/vayunmathur/everysync/data/sink/TodoIpcSink.ktindex 2533455d04..ba26a045e9 100644--- a/everysync/src/main/java/com/vayunmathur/everysync/data/sink/TodoIpcSink.kt+++ b/everysync/src/main/java/com/vayunmathur/everysync/data/sink/TodoIpcSink.kt@@ -3,6 +3,7 @@ package com.vayunmathur.everysync.data.sink import android.content.ContentValues import android.content.Context import android.net.Uri+import androidx.core.net.toUri import androidx.core.database.getLongOrNull import androidx.core.database.getStringOrNull import com.vayunmathur.everysync.data.RemoteTodo@@ -70,10 +71,10 @@ object TodoIpcSink {     const val PARAM_SINCE = "since"      fun todosUri(vaultId: String): Uri =-        Uri.parse("content://$AUTHORITY/vault/$vaultId/$PATH_TODOS")+        "content://$AUTHORITY/vault/$vaultId/$PATH_TODOS".toUri()      fun snapshotsUri(vaultId: String): Uri =-        Uri.parse("content://$AUTHORITY/vault/$vaultId/$PATH_SNAPSHOTS")+        "content://$AUTHORITY/vault/$vaultId/$PATH_SNAPSHOTS".toUri()      fun queryUri(vaultId: String): Uri =         todosUri(vaultId).buildUpon().appendPath(OP_QUERY_SINCE).build()@@ -82,7 +83,7 @@ object TodoIpcSink {         todosUri(vaultId).buildUpon().appendPath(OP_UPSERT_RAW).build()      fun purgeUri(vaultId: String, table: String): Uri =-        Uri.parse("content://$AUTHORITY/vault/$vaultId/$table")+        "content://$AUTHORITY/vault/$vaultId/$table".toUri()             .buildUpon().appendPath(OP_DELETE_BY_VAULT).build()      /** Relay envelope for [todo] (adapter bytes — what the relay log carries). */
everysync/src/main/java/com/vayunmathur/everysync/platform/EverySyncViewModel.kt
diff --git a/everysync/src/main/java/com/vayunmathur/everysync/platform/EverySyncViewModel.kt b/everysync/src/main/java/com/vayunmathur/everysync/platform/EverySyncViewModel.ktindex 9142995ea1..74b7009b6c 100644--- a/everysync/src/main/java/com/vayunmathur/everysync/platform/EverySyncViewModel.kt+++ b/everysync/src/main/java/com/vayunmathur/everysync/platform/EverySyncViewModel.kt@@ -197,7 +197,7 @@ class EverySyncViewModel(app: Application) : AndroidViewModel(app) {                 withContext(Dispatchers.Main) {                     announce(                         if (count != null) {-                            getApplication<Application>().getString(R.string.snapshot_restored, count)+                            getApplication<Application>().resources.getQuantityString(R.plurals.snapshot_restored, count, count)                         } else {                             getApplication<Application>().getString(R.string.snapshot_restore_failed)                         },
everysync/src/main/java/com/vayunmathur/everysync/ui/SnapshotSection.kt
diff --git a/everysync/src/main/java/com/vayunmathur/everysync/ui/SnapshotSection.kt b/everysync/src/main/java/com/vayunmathur/everysync/ui/SnapshotSection.ktnew file mode 100644index 0000000000..e7de2436d5--- /dev/null+++ b/everysync/src/main/java/com/vayunmathur/everysync/ui/SnapshotSection.kt@@ -0,0 +1,110 @@+package com.vayunmathur.everysync.ui++import androidx.compose.foundation.layout.Column+import androidx.compose.foundation.layout.Spacer+import androidx.compose.foundation.layout.fillMaxWidth+import androidx.compose.foundation.layout.height+import androidx.compose.runtime.Composable+import androidx.compose.runtime.getValue+import androidx.compose.runtime.mutableStateOf+import androidx.compose.runtime.remember+import androidx.compose.runtime.setValue+import androidx.compose.ui.Modifier+import androidx.compose.ui.platform.LocalContext+import androidx.compose.ui.res.pluralStringResource+import androidx.compose.ui.res.stringResource+import androidx.compose.ui.unit.dp+import com.vayunmathur.everysync.R+import com.vayunmathur.everysync.sync.SnapshotStore.SnapshotMeta+import com.vayunmathur.library.ui.AlertDialog+import com.vayunmathur.library.ui.DateString+import com.vayunmathur.library.ui.ListItem+import com.vayunmathur.library.ui.OutlinedButton+import com.vayunmathur.library.ui.SettingsSection+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.TextButton+import com.vayunmathur.library.ui.is24Hour+import kotlin.time.Instant++/**+ * Daily snapshot recovery: one row per restorable day (newest first) with a+ * confirm dialog. Restore replays records through the sinks as normal merge+ * input — newer edits win by LWW where they conflict, nothing is overwritten.+ */+@Composable+fun SnapshotSection(+    snapshots: List<SnapshotMeta>,+    restoring: Boolean,+    onRestore: (SnapshotMeta) -> Unit,+    onSnapshotNow: () -> Unit,+) {+    val context = LocalContext.current+    var pending: SnapshotMeta? by remember { mutableStateOf(null) }++    SettingsSection(title = stringResource(R.string.snapshots_title)) {+        Text(stringResource(R.string.snapshots_description))+        Spacer(Modifier.height(8.dp))+        OutlinedButton(+            onClick = onSnapshotNow,+            enabled = !restoring,+            modifier = Modifier.fillMaxWidth(),+        ) { Text(stringResource(R.string.snapshot_take_now)) }+        Spacer(Modifier.height(8.dp))+        if (snapshots.isEmpty()) {+            Text(stringResource(R.string.snapshots_empty))+        }+        Column {+            snapshots.forEach { snapshot ->+                val day = DateString.dateTime(+                    Instant.fromEpochMilliseconds(snapshot.dayEpochMs),+                    is24Hour(context),+                )+                ListItem(+                    headlineContent = { Text(day) },+                    supportingContent = {+                        Text(+                            pluralStringResource(+                                R.plurals.snapshot_row,+                                snapshot.recordCount,+                                snapshot.dataType,+                                snapshot.recordCount,+                            ),+                        )+                    },+                    trailingContent = {+                        OutlinedButton(+                            onClick = { pending = snapshot },+                            enabled = !restoring,+                            modifier = Modifier.fillMaxWidth(0.4f),+                        ) { Text(stringResource(R.string.snapshot_restore)) }+                    },+                )+            }+        }+    }++    pending?.let { snapshot ->+        val day = DateString.dateTime(+            Instant.fromEpochMilliseconds(snapshot.dayEpochMs),+            is24Hour(context),+        )+        AlertDialog(+            onDismissRequest = { pending = null },+            title = { Text(stringResource(R.string.snapshot_restore_title)) },+            text = { Text(stringResource(R.string.snapshot_restore_confirm, day, snapshot.dataType)) },+            confirmButton = {+                TextButton(+                    onClick = {+                        pending = null+                        onRestore(snapshot)+                    },+                ) { Text(stringResource(R.string.snapshot_restore)) }+            },+            dismissButton = {+                TextButton(onClick = { pending = null }) {+                    Text(stringResource(com.vayunmathur.library.ui.R.string.cancel))+                }+            },+        )+    }+}
everysync/src/main/java/com/vayunmathur/everysync/ui/SyncHealthSection.kt
diff --git a/everysync/src/main/java/com/vayunmathur/everysync/ui/SyncHealthSection.kt b/everysync/src/main/java/com/vayunmathur/everysync/ui/SyncHealthSection.ktindex 4c3a4d61a7..1d5b48711d 100644--- a/everysync/src/main/java/com/vayunmathur/everysync/ui/SyncHealthSection.kt+++ b/everysync/src/main/java/com/vayunmathur/everysync/ui/SyncHealthSection.kt@@ -1,29 +1,10 @@ package com.vayunmathur.everysync.ui -import androidx.compose.foundation.layout.Column-import androidx.compose.foundation.layout.Spacer-import androidx.compose.foundation.layout.fillMaxWidth-import androidx.compose.foundation.layout.height import androidx.compose.runtime.Composable-import androidx.compose.runtime.getValue-import androidx.compose.runtime.mutableStateOf-import androidx.compose.runtime.remember-import androidx.compose.runtime.setValue-import androidx.compose.ui.Modifier import androidx.compose.ui.res.stringResource-import androidx.compose.ui.unit.dp import com.vayunmathur.everysync.R-import com.vayunmathur.everysync.sync.SnapshotStore.SnapshotMeta-import com.vayunmathur.library.ui.AlertDialog import com.vayunmathur.library.ui.ListItem-import com.vayunmathur.library.ui.OutlinedButton-import com.vayunmathur.library.ui.SettingsSection import com.vayunmathur.library.ui.Text-import com.vayunmathur.library.ui.TextButton-import com.vayunmathur.library.ui.DateString-import com.vayunmathur.library.ui.is24Hour-import androidx.compose.ui.platform.LocalContext-import kotlin.time.Instant  /**  * Sync-health banner: shown when the last sync aborted instead of merging.@@ -39,84 +20,3 @@ fun SyncErrorBanner(errorText: String) {     ) } -/**- * Daily snapshot recovery: one row per restorable day (newest first) with a- * confirm dialog. Restore replays records through the sinks as normal merge- * input — newer edits win by LWW where they conflict, nothing is overwritten.- */-@Composable-fun SnapshotSection(-    snapshots: List<SnapshotMeta>,-    restoring: Boolean,-    onRestore: (SnapshotMeta) -> Unit,-    onSnapshotNow: () -> Unit,-) {-    val context = LocalContext.current-    var pending: SnapshotMeta? by remember { mutableStateOf(null) }--    SettingsSection(title = stringResource(R.string.snapshots_title)) {-        Text(stringResource(R.string.snapshots_description))-        Spacer(Modifier.height(8.dp))-        OutlinedButton(-            onClick = onSnapshotNow,-            enabled = !restoring,-            modifier = Modifier.fillMaxWidth(),-        ) { Text(stringResource(R.string.snapshot_take_now)) }-        Spacer(Modifier.height(8.dp))-        if (snapshots.isEmpty()) {-            Text(stringResource(R.string.snapshots_empty))-        }-        Column {-            snapshots.forEach { snapshot ->-                val day = DateString.dateTime(-                    Instant.fromEpochMilliseconds(snapshot.dayEpochMs),-                    is24Hour(context),-                )-                ListItem(-                    headlineContent = { Text(day) },-                    supportingContent = {-                        Text(-                            stringResource(-                                R.string.snapshot_row,-                                snapshot.dataType,-                                snapshot.recordCount,-                            ),-                        )-                    },-                    trailingContent = {-                        OutlinedButton(-                            onClick = { pending = snapshot },-                            enabled = !restoring,-                            modifier = Modifier.fillMaxWidth(0.4f),-                        ) { Text(stringResource(R.string.snapshot_restore)) }-                    },-                )-            }-        }-    }--    pending?.let { snapshot ->-        val day = DateString.dateTime(-            Instant.fromEpochMilliseconds(snapshot.dayEpochMs),-            is24Hour(context),-        )-        AlertDialog(-            onDismissRequest = { pending = null },-            title = { Text(stringResource(R.string.snapshot_restore_title)) },-            text = { Text(stringResource(R.string.snapshot_restore_confirm, day, snapshot.dataType)) },-            confirmButton = {-                TextButton(-                    onClick = {-                        pending = null-                        onRestore(snapshot)-                    },-                ) { Text(stringResource(R.string.snapshot_restore)) }-            },-            dismissButton = {-                TextButton(onClick = { pending = null }) {-                    Text(stringResource(com.vayunmathur.library.ui.R.string.cancel))-                }-            },-        )-    }-}
everysync/src/main/java/com/vayunmathur/everysync/ui/VaultSharingSection.kt
diff --git a/everysync/src/main/java/com/vayunmathur/everysync/ui/VaultSharingSection.kt b/everysync/src/main/java/com/vayunmathur/everysync/ui/VaultSharingSection.ktindex 2e974a8e1d..8050172b06 100644--- a/everysync/src/main/java/com/vayunmathur/everysync/ui/VaultSharingSection.kt+++ b/everysync/src/main/java/com/vayunmathur/everysync/ui/VaultSharingSection.kt@@ -130,6 +130,9 @@ private fun VaultShareDialog( ) {     val context = LocalContext.current     val messenger = rememberMessenger()+    val shareLinkChooser = stringResource(R.string.share_link_chooser)+    val inviteSent = stringResource(R.string.invite_sent)+    val inviteFailed = stringResource(R.string.invite_failed)     ShareVaultDialog(         vaultTitle = vault.meta.title,         shareLink = vault.shareLink,@@ -141,13 +144,11 @@ private fun VaultShareDialog(         safetyCode = safetyCode,         computingCode = computingCode,         onShareLink = {-            ExternalIntents.shareText(context, vault.shareLink, context.getString(R.string.share_link_chooser))+            ExternalIntents.shareText(context, vault.shareLink, shareLinkChooser)         },         onSendInvite = { recipientId, role ->             actions.sendInvite(vault.meta.vaultId, recipientId, role) { ok ->-                messenger.show(-                    context.getString(if (ok) R.string.invite_sent else R.string.invite_failed),-                )+                messenger.show(if (ok) inviteSent else inviteFailed)             }         },         onApproveRequest = { requesterId -> actions.approveRequest(vault.meta.vaultId, requesterId) },
everysync/src/main/res/values-ar/strings.xml
diff --git a/everysync/src/main/res/values-ar/strings.xml b/everysync/src/main/res/values-ar/strings.xmlindex c1efb357dd..ef659cfd4b 100644--- a/everysync/src/main/res/values-ar/strings.xml+++ b/everysync/src/main/res/values-ar/strings.xml@@ -7,25 +7,13 @@     <string name="last_synced">آخر مزامنة: <xliff:g id="date" example="Today 10:30 AM">%1$s</xliff:g></string>     <string name="never_synced">لم تتم المزامنة مطلقًا</string>     <string name="add_account_title">إضافة حساب</string>-    <string name="provider_via_health_connect">عبر Health Connect</string>-    <string name="dav_base_url">عنوان URL خادم</string>-    <string name="dav_username">اسم المستخدم / البريد الإلكتروني</string>-    <string name="dav_password">كلمة المرور (خاصة بالتطبيق)</string>-    <string name="login">تسجيل الدخول</string>-    <string name="icloud_app_password_steps">يحتاج iCloud إلى كلمة مرور خاصة بتطبيق (ليس كلمة مرور مُعرِّف Apple خاصّتك):\n\n١. سجّل الدخول على account.apple.com\n٢. افتح تسجيل الدخول والأمان ← كلمات السر الخاصة بالتطبيقات\n٣. أنشئ واحدة وسمّها \"EverySync\"\n٤. أدخل البريد الإلكتروني لمعرّف Apple خاصّتك وكلمة المرور هذه أدناه</string>-    <string name="icloud_create_password">إنشاء كلمة مرور خاصة بتطبيق</string>-    <string name="apple_id_email">البريد الإلكتروني لمعرّف Apple</string>-    <string name="app_specific_password">كلمة مرور خاصة بتطبيق</string>     <string name="sync_contacts">مزامنة جهات الاتصال</string>     <string name="sync_calendar">مزامنة التقويمات</string>-    <string name="sync_health">مزامنة الصحة</string>     <string name="remove_account">إزالة الحساب</string>     <string name="global_interval">الفاصل الزمني للمزامنة (دقائق)</string>     <string name="wifi_only">المزامنة عبر Wi-Fi فقط</string>     <string name="need_permissions">EverySync يحتاج الوصول لجهات الاتصال والتقويم لمزامنة خزائنك.</string>-    <string name="everysync_privacy_policy">يقوم EverySync بمزامنة جهات الاتصال، التقويمات وبيانات الصحة بين حساباتك السحابية وهذا الجهاز. يتم تخزين البيانات فقط على هذا الجهاز والخوادم التي تقوم بتكوينها.</string>     <string name="accounts_title">EverySync</string>-    <string name="dav_login_title">تسجيل الدخول لـ <xliff:g id="provider" example="iCloud">%1$s</xliff:g></string>     <string name="sync_passwords">مزامنة كلمات المرور</string>     <string name="sync_notes">مزامنة الملاحظات</string>     <string name="sync_todos">مزامنة المهام</string>@@ -51,12 +39,26 @@     <string name="sync_error_hint">تم إيقاف المزامنة مؤقتًا بأمان: لا بيانات تم حذفها. ستتم استئنافه في المزامنة التالية.</string>     <string name="snapshots_title">لقطات الاسترداد</string>     <string name="snapshots_description">لقطة واحدة مشفرة في اليوم، تُحتفظ لـ ٣٠ يومًا. تؤدي الاستعادة لإعادة تشغيل يوم من خلال المزامنة — لا تزال التعديلات الأحدث هي السائدة في حالة التعارض.</string>-    <string name="snapshot_row">%1$s · <xliff:g id="count" example="42">%2$d</xliff:g> تسجيلات</string>+    <plurals name="snapshot_row">+        <item quantity="zero">%1$s · <xliff:g id="count" example="42">%2$d</xliff:g> تسجيلات</item>+        <item quantity="one">%1$s · <xliff:g id="count" example="42">%2$d</xliff:g> تسجيل</item>+        <item quantity="two">%1$s · <xliff:g id="count" example="42">%2$d</xliff:g> تسجيلان</item>+        <item quantity="few">%1$s · <xliff:g id="count" example="42">%2$d</xliff:g> تسجيلات</item>+        <item quantity="many">%1$s · <xliff:g id="count" example="42">%2$d</xliff:g> تسجيلًا</item>+        <item quantity="other">%1$s · <xliff:g id="count" example="42">%2$d</xliff:g> تسجيل</item>+    </plurals>     <string name="snapshot_restore">استعادة</string>     <string name="snapshot_take_now">النسخ الاحتياطي الآن</string>     <string name="snapshots_empty">لا لقطات بعد. اللقطات تلتقط يوميًا وقبل إيقاف تشغيل المزامنة.</string>     <string name="snapshot_restore_title">استعادة اللقطة؟</string>     <string name="snapshot_restore_confirm">إعادة تشغيل <xliff:g id="date" example="Oct 13, 2026">%1$s</xliff:g> (<xliff:g id="type" example="passwords">%2$s</xliff:g>) من خلال المزامنة؟ لا تزال التعديلات الأحدث هي السائدة في حالة التعارض.</string>-    <string name="snapshot_restored">تمت استعادة <xliff:g id="count" example="42">%1$d</xliff:g> تسجيلات. جارٍ التسوية مع الخادم…</string>+    <plurals name="snapshot_restored">+        <item quantity="zero">تمت استعادة <xliff:g id="count" example="42">%1$d</xliff:g> تسجيلات. جارٍ التسوية مع الخادم…</item>+        <item quantity="one">تمت استعادة <xliff:g id="count" example="42">%1$d</xliff:g> تسجيل. جارٍ التسوية مع الخادم…</item>+        <item quantity="two">تمت استعادة <xliff:g id="count" example="42">%1$d</xliff:g> تسجيلان. جارٍ التسوية مع الخادم…</item>+        <item quantity="few">تمت استعادة <xliff:g id="count" example="42">%1$d</xliff:g> تسجيلات. جارٍ التسوية مع الخادم…</item>+        <item quantity="many">تمت استعادة <xliff:g id="count" example="42">%1$d</xliff:g> تسجيلًا. جارٍ التسوية مع الخادم…</item>+        <item quantity="other">تمت استعادة <xliff:g id="count" example="42">%1$d</xliff:g> تسجيل. جارٍ التسوية مع الخادم…</item>+    </plurals>     <string name="snapshot_restore_failed">تعذّر استعادة تلك اللقطة.</string> </resources>
everysync/src/main/res/values-et/strings.xml
diff --git a/everysync/src/main/res/values-et/strings.xml b/everysync/src/main/res/values-et/strings.xmlindex 55dfb9d5a0..d7ea515f2c 100644--- a/everysync/src/main/res/values-et/strings.xml+++ b/everysync/src/main/res/values-et/strings.xml@@ -47,8 +47,14 @@     <string name="sync_error_hint">Sünkroonimine on ohutul viisil peatatud: mitte mingeid andmeid pole kustutatud. Töö jätkub järgmisel sünkroonimisel.</string>     <string name="snapshots_title">Hetktõmmised taastamiseks</string>     <string name="snapshots_description">Üks 30 päeva hoitav krüptitud hetktõmmis iga päeva kohta. Taastamine toimuks ka sünkroonimisel ja kui andmetes on vastuolu, siis kehtima jäävad uuemad andmed.</string>-    <string name="snapshot_row">%1$s · <xliff:g id="count" example="42">%2$d</xliff:g> kirjet</string>+    <plurals name="snapshot_row">+        <item quantity="one">%1$s · <xliff:g id="count" example="42">%2$d</xliff:g> kirje</item>+        <item quantity="other">%1$s · <xliff:g id="count" example="42">%2$d</xliff:g> kirjet</item>+    </plurals>     <string name="snapshot_restore_confirm">Kas kordad/taastad <xliff:g id="date" example="Oct 13, 2026">%1$s</xliff:g> (<xliff:g id="type" example="salasõnad">%2$s</xliff:g>) andmed sünkroonimise ajal? Kui andmetes on vastuolu, siis kehtima jäävad uuemad andmed.</string>-    <string name="snapshot_restored"><xliff:g id="count" example="42">%1$d</xliff:g> kirjet on taastatud. Ühildan serveriga…</string>+    <plurals name="snapshot_restored">+        <item quantity="one"><xliff:g id="count" example="42">%1$d</xliff:g> kirje on taastatud. Ühildan serveriga…</item>+        <item quantity="other"><xliff:g id="count" example="42">%1$d</xliff:g> kirjet on taastatud. Ühildan serveriga…</item>+    </plurals>     <string name="snapshot_restore_failed">Hetktõmmise taastamine ei õnnestunud.</string> </resources>
everysync/src/main/res/values-sv/strings.xml
diff --git a/everysync/src/main/res/values-sv/strings.xml b/everysync/src/main/res/values-sv/strings.xmlindex e4a97324b6..203d823660 100644--- a/everysync/src/main/res/values-sv/strings.xml+++ b/everysync/src/main/res/values-sv/strings.xml@@ -43,12 +43,18 @@     <string name="sync_error_hint">Synkroniseringen har pausats säkert: inga data raderades. Den återupptas vid nästa synkronisering.</string>     <string name="snapshots_title">Återställningskopior</string>     <string name="snapshots_description">En krypterad säkerhetskopia per dag sparas i 30 dagar. Vid återställning spelas en dags ändringar upp via synkroniseringen. Nyare ändringar får företräde vid konflikter.</string>-    <string name="snapshot_row">%1$s · <xliff:g id="count" example="42">%2$d</xliff:g> poster</string>+    <plurals name="snapshot_row">+        <item quantity="one">%1$s · <xliff:g id="count" example="42">%2$d</xliff:g> post</item>+        <item quantity="other">%1$s · <xliff:g id="count" example="42">%2$d</xliff:g> poster</item>+    </plurals>     <string name="snapshot_restore">Återställ</string>     <string name="snapshot_take_now">Säkerhetskopiera nu</string>     <string name="snapshots_empty">Inga säkerhetskopior ännu. Säkerhetskopior tas varje dag och innan synkronisering stängs av.</string>     <string name="snapshot_restore_title">Återställa säkerhetskopia?</string>     <string name="snapshot_restore_confirm">Spela upp <xliff:g id="date" example="Oct 13, 2026">%1$s</xliff:g> (<xliff:g id="type" example="passwords">%2$s</xliff:g>) via synkronisering? Nyare ändringar får företräde vid konflikter.</string>-    <string name="snapshot_restored">Återställde <xliff:g id="count" example="42">%1$d</xliff:g> poster. Synkroniserar med servern…</string>+    <plurals name="snapshot_restored">+        <item quantity="one">Återställde <xliff:g id="count" example="42">%1$d</xliff:g> post. Synkroniserar med servern…</item>+        <item quantity="other">Återställde <xliff:g id="count" example="42">%1$d</xliff:g> poster. Synkroniserar med servern…</item>+    </plurals>     <string name="snapshot_restore_failed">Kunde inte återställa säkerhetskopian.</string> </resources>
everysync/src/main/res/values/strings.xml
diff --git a/everysync/src/main/res/values/strings.xml b/everysync/src/main/res/values/strings.xmlindex 663a8a7bfe..e591255988 100644--- a/everysync/src/main/res/values/strings.xml+++ b/everysync/src/main/res/values/strings.xml@@ -90,7 +90,10 @@     <string name="snapshots_title">Recovery snapshots</string>     <string name="snapshots_description">One encrypted snapshot per day, kept for 30 days. Restoring replays a day through sync — newer edits still win where they conflict.</string>     <!-- SnapshotSection row: %1$s = vault type, %2$d = record count -->-    <string name="snapshot_row">%1$s · <xliff:g id="count" example="42">%2$d</xliff:g> records</string>+    <plurals name="snapshot_row">+        <item quantity="one">%1$s · <xliff:g id="count" example="42">%2$d</xliff:g> record</item>+        <item quantity="other">%1$s · <xliff:g id="count" example="42">%2$d</xliff:g> records</item>+    </plurals>     <string name="snapshot_restore">Restore</string>     <string name="snapshot_take_now">Back up now</string>     <string name="snapshots_empty">No snapshots yet. Snapshots are taken daily and before sync is turned off.</string>@@ -98,6 +101,9 @@     <!-- SnapshotSection restore confirm: %1$s = date, %2$s = vault type -->     <string name="snapshot_restore_confirm">Replay <xliff:g id="date" example="Oct 13, 2026">%1$s</xliff:g> (<xliff:g id="type" example="passwords">%2$s</xliff:g>) through sync? Newer edits still win where they conflict.</string>     <!-- ViewModel announce: %1$d = restored record count -->-    <string name="snapshot_restored">Restored <xliff:g id="count" example="42">%1$d</xliff:g> records. Reconciling with the server…</string>+    <plurals name="snapshot_restored">+        <item quantity="one">Restored <xliff:g id="count" example="42">%1$d</xliff:g> record. Reconciling with the server…</item>+        <item quantity="other">Restored <xliff:g id="count" example="42">%1$d</xliff:g> records. Reconciling with the server…</item>+    </plurals>     <string name="snapshot_restore_failed">Could not restore that snapshot.</string> </resources>