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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Move success translation to separate key
Jan Sandbrinkc7768513bd93
diff --git a/.github/workflows/crowdin.yml b/.github/workflows/crowdin.ymlindex 1b0e4039697..bfc94d1d796 100644--- a/.github/workflows/crowdin.yml+++ b/.github/workflows/crowdin.yml@@ -81,11 +81,6 @@ 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"- # Only run if the file exists- if: ${{ hashFiles('script/i18n/fix_crowdin_storages_health_checks_failures_zero_key') != '' }}- run: |- script/i18n/fix_crowdin_storages_health_checks_failures_zero_key- name: "Commit translations"env:BRANCH: ${{ matrix.branch }}diff --git a/modules/storages/app/common/storages/peripherals/connection_validators/validation_group_result.rb b/modules/storages/app/common/storages/peripherals/connection_validators/validation_group_result.rbindex 84aac5a7d77..36e6b887ebc 100644--- a/modules/storages/app/common/storages/peripherals/connection_validators/validation_group_result.rb+++ b/modules/storages/app/common/storages/peripherals/connection_validators/validation_group_result.rb@@ -82,7 +82,7 @@ module Storagesin { warning: 1.. }I18n.t("storages.health.checks.warnings", count: tally[:warning])else- I18n.t("storages.health.checks.failures", count: 0)+ I18n.t("storages.health.checks.success")endenddiff --git a/modules/storages/app/common/storages/peripherals/connection_validators/validator_result.rb b/modules/storages/app/common/storages/peripherals/connection_validators/validator_result.rbindex 4bcb88e7ec1..563dbbc5445 100644--- a/modules/storages/app/common/storages/peripherals/connection_validators/validator_result.rb+++ b/modules/storages/app/common/storages/peripherals/connection_validators/validator_result.rb@@ -73,7 +73,7 @@ module Storagesin { warning: 1.. }I18n.t("storages.health.checks.warnings", count: tally[:warning])else- I18n.t("storages.health.checks.failures", count: 0)+ I18n.t("storages.health.checks.success")endenddiff --git a/modules/storages/app/components/storages/admin/side_panel/validation_result_component.rb b/modules/storages/app/components/storages/admin/side_panel/validation_result_component.rbindex 4a48be6525f..0861b4c26dc 100644--- a/modules/storages/app/components/storages/admin/side_panel/validation_result_component.rb+++ b/modules/storages/app/components/storages/admin/side_panel/validation_result_component.rb@@ -58,7 +58,7 @@ module Storagestext: I18n.t("storages.health.checks.warnings", count: tally[:warning])}else- { icon: :"check-circle", icon_color: :success, text: I18n.t("storages.health.checks.failures", count: 0) }+ { icon: :"check-circle", icon_color: :success, text: I18n.t("storages.health.checks.success") }endenddiff --git a/modules/storages/config/locales/en.yml b/modules/storages/config/locales/en.ymlindex 9a6003a838d..b7139549257 100644--- a/modules/storages/config/locales/en.yml+++ b/modules/storages/config/locales/en.yml@@ -273,7 +273,7 @@ en:failures:one: "%{count} check failed"other: "%{count} checks failed"- zero: All checks passed+ success: All checks passedwarnings:one: "%{count} check returned a warning"other: "%{count} checks returned a warning"diff --git a/script/i18n/fix_crowdin_storages_health_checks_failures_zero_key b/script/i18n/fix_crowdin_storages_health_checks_failures_zero_keydeleted file mode 100755index cda3deb3f24..00000000000--- a/script/i18n/fix_crowdin_storages_health_checks_failures_zero_key+++ /dev/null@@ -1,13 +0,0 @@-#!/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