Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[63568] Fix crowdin issue manually until we have a better solution

Christophe Bliard83cadc71794e
diff --git a/.github/workflows/crowdin.yml b/.github/workflows/crowdin.yml
index bfc94d1d796..a4135ee7057 100644
--- a/.github/workflows/crowdin.yml
+++ b/.github/workflows/crowdin.yml
@@ -81,6 +81,9 @@ jobs:
- name: "Fix root key in Portuguese crowdin translation files"
run: |
script/i18n/fix_crowdin_pt_language_root_key
+ - name: "Fix storages.health.checks.failures.zero key in Arabic and Latvian crowdin translation files"
+ run: |
+ script/i18n/fix_crowdin_storages_health_checks_failures_zero_key
- name: "Commit translations"
env:
BRANCH: ${{ matrix.branch }}
diff --git a/script/i18n/fix_crowdin_storages_health_checks_failures_zero_key b/script/i18n/fix_crowdin_storages_health_checks_failures_zero_key
new file mode 100755
index 00000000000..cda3deb3f24
--- /dev/null
+++ b/script/i18n/fix_crowdin_storages_health_checks_failures_zero_key
@@ -0,0 +1,13 @@
+#!/usr/bin/env bash
+
+# Temporary fix for https://community.openproject.org/wp/63568
+# Issue exists in Arabic (ar) and Latvian (lv) languages. Replace it in all
+# languages to be extra safe.
+echo "Fixing storages.health.checks.failures.zero key in crowdin translation files of storages module"
+if [ "$(uname -s)" = "Darwin" ]; then
+ sed -i '' 's/^ zero: "%{count} checks failed"$/ zero: "All checks passed"/' \
+ modules/storages/config/locales/crowdin/*.yml
+else
+ sed -i 's/^ zero: "%{count} checks failed"$/ zero: "All checks passed"/' \
+ modules/storages/config/locales/crowdin/*.yml
+fi