From cf9cf9293b29233962c4b8a22a08c0ceb0b258b2 Mon Sep 17 00:00:00 2001 From: Oliver Valls <199462+tramuntanal@users.noreply.github.com> Date: Thu, 21 Nov 2024 11:21:00 +0100 Subject: [PATCH] Fix missing translation on first login on Decidim v0.28 (#10) * Fix missing translation on first login * Make GH Actions run against release branches * Update Changelog and version * Normalize translations * Add first_login transations to ignore unused --- .github/workflows/lint.yml | 2 ++ .github/workflows/test.yml | 3 +++ CHANGELOG.md | 4 ++++ Gemfile.lock | 2 +- config/i18n-tasks.yml | 1 + config/locales/ca.yml | 4 ++++ config/locales/en.yml | 4 ++++ config/locales/es.yml | 4 ++++ lib/decidim/verifications/members_picker/version.rb | 2 +- 9 files changed, 24 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 78ccaf4..db806fd 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -4,6 +4,8 @@ on: push: branches: - master + - release/* + - "*-stable" pull_request: env: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d2c2c52..d37b30b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,6 +4,9 @@ on: push: branches: - master + - release/* + - "*-stable" + pull_request: env: diff --git a/CHANGELOG.md b/CHANGELOG.md index f87bacd..f6d3a35 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ Following Semantic Versioning 2. ## next version: +## Version 0.1.1 (PATCH) +- Breaking semanting versioning to have one minor for each decidim minor +- Fix missing translation on first login + ## Version 0.0.7 (MINOR) - Increase minimum Decidim version to 0.28 - Downgrade Ruby version to 3.1.1 diff --git a/Gemfile.lock b/Gemfile.lock index 436f507..c27f343 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - decidim-verifications-members_picker (0.0.7) + decidim-verifications-members_picker (0.1.1) decidim-core (>= 0.28.0) decidim-verifications (>= 0.28.0) diff --git a/config/i18n-tasks.yml b/config/i18n-tasks.yml index aee719e..95c3c50 100644 --- a/config/i18n-tasks.yml +++ b/config/i18n-tasks.yml @@ -8,4 +8,5 @@ locales: [en, ca, es] ignore_unused: - "decidim.authorization_handlers.members_picker_authorization_handler.*" + - "decidim.verifications.authorizations.first_login.*" - "decidim.verifications.members_picker_authorization.extra_explanation" diff --git a/config/locales/ca.yml b/config/locales/ca.yml index 3d6466f..45bcb09 100644 --- a/config/locales/ca.yml +++ b/config/locales/ca.yml @@ -9,6 +9,10 @@ ca: members_picker_help: "(separats per comes)" name: Tria quins correus electrònics poden participar al component verifications: + authorizations: + first_login: + actions: + members_picker_authorization_handler: Elecció de membres members_picker_authorization: extra_explanation: La participació està restringida a només uns participants amb permís. diff --git a/config/locales/en.yml b/config/locales/en.yml index 6a5aeb0..6731ce6 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -11,6 +11,10 @@ en: name: Pick the emails of the users that will be able to participate in the current component verifications: + authorizations: + first_login: + actions: + members_picker_authorization_handler: Members picker members_picker_authorization: extra_explanation: Participation is restricted to participants with the permitted email. diff --git a/config/locales/es.yml b/config/locales/es.yml index dac2e7e..bba0c1f 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -9,6 +9,10 @@ es: members_picker_help: "(separado por comas)" name: Elige qué correos electrónicos pueden participar en el componente verifications: + authorizations: + first_login: + actions: + members_picker_authorization_handler: Elección de miembros members_picker_authorization: extra_explanation: La participación está restringida a sólo unos participantes con permiso diff --git a/lib/decidim/verifications/members_picker/version.rb b/lib/decidim/verifications/members_picker/version.rb index dc13a76..f31536a 100644 --- a/lib/decidim/verifications/members_picker/version.rb +++ b/lib/decidim/verifications/members_picker/version.rb @@ -5,7 +5,7 @@ module Decidim module Verifications module MembersPicker def self.version - "0.0.7" + "0.1.1" end end end