Modern Apps git

← Modern-Apps.git

i18n: merge the pending Weblate translations and document lock recovery

Commit
9efba8ad6c708be965afa69ca05a33c99e3c4390
Author
Vayun Mathur <[email protected]>
When
2026-12-01 14:54 UTC (4 days ago)
Parents
e1f58df
Recovered the 6 pending Weblate commits from the git
exporter and integrated them onto main: Polish
install-confirm strings (appstore), Swedish layout/editor/
bonus/retry strings (calendar, files, wordmaker, web).
The web file conflicted: main's new shields_blocked_count
plurals kept, the translator's retry kept, go_forward not
resurrected (deleted from source). The unblockjam Swedish
'completed' edit targets a key main deleted from source —
main's deletion wins, no orphan translation reintroduced.
All added keys verified present in the English sources;
i18n_audit runs clean.

The lock itself: Weblate's rebase onto main has been
failing since Nov 18 (rapid main pushes + the dead-key
conflict above), leaving MergeFailure/RepositoryOutdated
alerts. docs/i18n-weblate.md now documents the flow, the
per-key merge rules, and the recovery procedure (Reset +
Unlock in the Calendar component after these commits land —
Reset is safe only because every pending commit is in this
one), plus the force-push setting that prevents recurrence.
The instance-side Reset/Unlock needs the owner's Weblate
login; no token exists on the devvm.

Diff

appstore/src/main/res/values-pl/strings.xml
diff --git a/appstore/src/main/res/values-pl/strings.xml b/appstore/src/main/res/values-pl/strings.xmlindex 73f01341f4..fdf21ef426 100644--- a/appstore/src/main/res/values-pl/strings.xml+++ b/appstore/src/main/res/values-pl/strings.xml@@ -234,4 +234,8 @@     <string name="tv_detail_screenshots">Zrzuty ekranu</string>     <string name="updates_foreign_title">Zainstalowane z innych źródeł</string>     <string name="updates_foreign_subtitle">Funkcja „Aktualizuj wszystkie” pomija te aplikacje – aby zaktualizować wybraną pozycję tutaj, dotknij przy niej „Aktualizuj”.</string>+    <string name="install_confirm_title">Aktualizacja gotowa dla %1$s</string>+    <string name="install_confirm_body">Dotknij, aby potwierdzić aktualizację.</string>+    <string name="install_confirm_channel_name">Potwierdzenia instalacji</string>+    <string name="install_confirm_channel_description">Prosi o potwierdzenie aktualizacji, która pojawiła się, gdy sklep był uruchomiony w tle.</string> </resources>
calendar/src/main/res/values-sv/strings.xml
diff --git a/calendar/src/main/res/values-sv/strings.xml b/calendar/src/main/res/values-sv/strings.xmlindex 6d298e0861..9ca0f9c896 100644--- a/calendar/src/main/res/values-sv/strings.xml+++ b/calendar/src/main/res/values-sv/strings.xml@@ -173,4 +173,6 @@     <string name="reminder_custom_title">Anpassad påminnelse</string>     <string name="reminder_unit_minutes">Minuter</string>     <string name="reminder_unit_hours">Timmar</string>+    <string name="layout_month_agenda">Månad + Agenda</string>+    <string name="layout_short_month_agenda">MA</string> </resources>
docs/i18n-weblate.md
diff --git a/docs/i18n-weblate.md b/docs/i18n-weblate.mdnew file mode 100644index 0000000000..39a3dc21f6--- /dev/null+++ b/docs/i18n-weblate.md@@ -0,0 +1,64 @@+# Translations (Hosted Weblate)++## Flow++- Instance: https://hosted.weblate.org/projects/modern-apps/ — one+  component per app module, file mask+  `<module>/src/main/res/values-*/strings.xml`, source template+  `<module>/src/main/res/values/strings.xml`.+- Components read branch `main` of+  `https://git.maproj.org/Modern-Apps.git`, commit translations on+  Weblate's local `main`, and push to the `translate` branch+  (`push_branch=translate`, `merge_style=rebase`,+  `push_on_commit=true`). Linked components share the repository of+  their link target, so one repository error locks every component in+  the group.+- Translations reach the apps when `translate` is merged into `main`+  in this repo. Until that merge happens, Weblate's rebased+  translation commits are not ancestors of the remote `translate`+  tip, so its hourly push is rejected as non-fast-forward. Merging+  `translate` promptly is part of the flow, not an optional cleanup.++## Merging translations++Merge `origin/translate` (or cherry-pick the pending commits from+the Weblate git exporter,+`https://hosted.weblate.org/git/modern-apps/calendar/`) into `main`.+Resolve per key, in this order:++- A key deleted from the English source is deleted from every+  locale; a translator edit to such a key is dropped, never+  reintroduced (it would be an orphan `ExtraTranslation`).+- A key whose English text changed keeps the main-side source; the+  translation is retranslated against it in Weblate.+- Otherwise the translator's value wins.+- End-of-file appends on both sides keep both additions; do not+  duplicate a key main already carries elsewhere in the file.++## Lock recovery++A `MergeFailure` alert auto-locks all linked components and leaves+Weblate's clone mid-rebase. Recovery, in the Weblate UI for one+repository-holding component (Calendar covers the calendar-linked+group; Backup covers its group):++1. Integrate the pending translation commits into `main` as above,+   so nothing translators did is lost.+2. Repository maintenance → **Reset**. This discards Weblate's local+   commits and mid-rebase state and re-syncs from `main`. Do not+   retry the rebase first: it replays the same commits onto the same+   conflict.+3. Unlock the component; the linked components unlock with it.+4. Confirm the `MergeFailure` / `RepositoryOutdated` alerts clear+   and a repository push succeeds.++## Server-side settings (Weblate project admin)++- With `merge_style=rebase` and a separate `translate` push branch,+  enable force push for the component VCS (`git_force_push`) so a+  rebased push to `translate` succeeds between merges into `main`;+  without it every rebase after `main` moves is a non-fast-forward+  rejection and pending commits pile up until one conflicts.+- Keep `push_on_commit` on so translated strings are committed in+  Weblate immediately; the pending-commit list is the recovery+  source when a lock happens.
files/src/main/res/values-sv/strings.xml
diff --git a/files/src/main/res/values-sv/strings.xml b/files/src/main/res/values-sv/strings.xmlindex 03a7db8c50..d1ac06213d 100644--- a/files/src/main/res/values-sv/strings.xml+++ b/files/src/main/res/values-sv/strings.xml@@ -101,4 +101,6 @@         <item quantity="other">Raderade <xliff:g id="count" example="3">%1$d</xliff:g> objekt permanent</item>     </plurals>     <string name="trash_request_failed">Kunde inte öppna begäran om papperskorgen</string>+    <string name="editor_load_failed">Kunde inte läsa denna fil så den kan inte redigeras här. Originalfilen har inte ändrats.</string>+    <string name="editor_save_failed">Kunde inte spara dina ändringar. Filen på disken har inte uppdaterats.</string> </resources>
games/wordmaker/src/main/res/values-sv/strings.xml
diff --git a/games/wordmaker/src/main/res/values-sv/strings.xml b/games/wordmaker/src/main/res/values-sv/strings.xmlindex dbab185ead..a530670a96 100644--- a/games/wordmaker/src/main/res/values-sv/strings.xml+++ b/games/wordmaker/src/main/res/values-sv/strings.xml@@ -37,4 +37,8 @@     <string name="cd_submit">Skicka</string>     <string name="cd_backspace">Backsteg</string>     <string name="no_definition_available">Ingen definition finns tillgänglig för detta ord.</string>+    <plurals name="bonus_words_title">+        <item quantity="one">Bonusord (<xliff:g id="count" example="1">%1$d</xliff:g>)</item>+        <item quantity="other">Bonusord (<xliff:g id="count" example="3">%1$d</xliff:g>)</item>+    </plurals> </resources>
web/src/main/res/values-sv/strings.xml
diff --git a/web/src/main/res/values-sv/strings.xml b/web/src/main/res/values-sv/strings.xmlindex ae1ecdd915..57a44704dd 100644--- a/web/src/main/res/values-sv/strings.xml+++ b/web/src/main/res/values-sv/strings.xml@@ -118,4 +118,5 @@         <item quantity="one">%1$d blockerad på den här sidan</item>         <item quantity="other">%1$d blockerade på den här sidan</item>     </plurals>+    <string name="retry">Försök igen</string> </resources>