Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Update Crowdin translation docs

Manav Rathi10ca082a0937
diff --git a/mobile/apps/photos/docs/translations.md b/mobile/apps/photos/docs/translations.md
index b3c8bcdc06..a7810705ef 100644
--- a/mobile/apps/photos/docs/translations.md
+++ b/mobile/apps/photos/docs/translations.md
@@ -10,21 +10,19 @@ Volunteers can add a new _translation_ in their language corresponding to each
such source key-value to our
[Crowdin project](https://crowdin.com/project/ente-photos-app).
-When a new source string is added, we run a [GitHub workflow](../../.github/workflows/mobile-crowdin-push.yml)
-that
-
-- Uploads sources to Crowdin - So any new key value pair we add in the source
- `intl_en.arb` becomes available to translators to translate.
+When a new source string is added, a [GitHub workflow](../../../../.github/workflows/mobile-photos-crowdin-push-sources.yml)
+runs to upload sources to Crowdin, so any new key value pair we add in the
+source `intl_en.arb` becomes available to translators to translate.
-Every monday, we run a [GitHub workflow](../../.github/workflows/mobile-crowdin-sync.yml)
-that
+Every Monday, we run a [GitHub workflow](../../../../.github/workflows/mobile-crowdin-sync.yml)
+that
- Downloads translations from Crowdin - So any new translations that
translators have made on the Crowdin dashboard (for existing sources) will
be added to the corresponding `intl_XX.arb`.
-The workflow also uploads existing translations and also downloads new sources
-from Crowdin, but these two should be no-ops.
+The sync workflow also uploads the current source strings before downloading
+translations.
## Adding a new string
@@ -66,22 +64,22 @@ from Crowdin, but these two should be no-ops.
1. Commit the changes and create a PR in which it is advised to tag at least one
of the developers (i.e. [laurenspriem](https://github.com/laurenspriem))
-1. During the next sync, the workflow will upload new source strings to Crowdin's
-dashboard, allowing translators to translate it.
+1. After the PR is merged, the source-push workflow will upload new source
+strings to Crowdin's dashboard, allowing translators to translate it.
## Updating an existing string
1. Update the existing value for the key in the source `intl_en.arb`.
-1. Commit the changes and create a PR in which it is advised to tag at least one of
+1. Commit the changes and create a PR in which it is advised to tag at least one of
the developers (i.e. [laurenspriem](https://github.com/laurenspriem))
-1. During the next sync, the workflow will upload new source strings to Crowdin's
-dashboard, allowing translators to translate it.
+1. After the PR is merged, the source-push workflow will upload the changed
+source strings to Crowdin's dashboard, allowing translators to translate it.
## Deleting an existing string
1. Remove the key value pair from the source `intl_en.arb`.
-1. Commit the changes and create a PR in which it is advised to tag at least one of
+1. Commit the changes and create a PR in which it is advised to tag at least one of
the developers (i.e. [laurenspriem](https://github.com/laurenspriem))
-1. During the next sync, the workflow will delete that source item from all
- existing translations (both in the Crowdin project and also from the
- other `intl_XX.arb` files in the repository).
+1. After the PR is merged, the source-push workflow will update Crowdin. During
+ the next sync, the workflow will remove that source item from the other
+ `intl_XX.arb` files in the repository.
diff --git a/web/docs/translations.md b/web/docs/translations.md
index 285138a0e1..fffc98a8f7 100644
--- a/web/docs/translations.md
+++ b/web/docs/translations.md
@@ -10,8 +10,8 @@ Volunteers can add a new _translation_ in their language corresponding to each
such source key-value to our
[Crowdin project](https://crowdin.com/project/ente-photos-web).
-Everyday, we run a [GitHub workflow](../../.github/workflows/web-crowdin.yml)
-that
+Every Monday, and whenever source strings or the Crowdin config change on `main`,
+we run a [GitHub workflow](../../.github/workflows/web-crowdin-sync.yml) that
- Uploads sources to Crowdin - So any new key value pair we add in the source
`translation.json` becomes available to translators to translate.
@@ -20,8 +20,8 @@ that
have made on the Crowdin dashboard (for existing sources) will be added to the
corresponding `lang/translation.json`.
-The workflow also uploads existing translations and also downloads new sources
-from Crowdin, but these two should be no-ops.
+The workflow also uploads the current source strings before downloading
+translations.
## Adding a new string
@@ -41,5 +41,5 @@ from Crowdin, but these two should be no-ops.
- Remove the key value pair from the source `translation.json`.
- During the next sync, the workflow will delete that source item from all
- existing translations (both in the Crowdin project and also from the he other
+ existing translations (both in the Crowdin project and also from the other
`lang/translation.json` files in the repository).