From 64c1706866d036e555ffe35d61ef64e9f85c10a9 Mon Sep 17 00:00:00 2001 From: Quentin Champenois <26109239+Quentinchampenois@users.noreply.github.com> Date: Fri, 3 May 2024 15:34:04 +0200 Subject: [PATCH] chore: Add french i18n locales & CSS (#4) * chore: Add french locales * lint: Normalize i18n keys * fix: Add CSS styles for emitters --- .../stylesheets/decidim/emitter/emitter.scss | 9 +++++++ config/locales/en.yml | 20 +++++++-------- config/locales/fr.yml | 25 +++++++++++++++++++ 3 files changed, 44 insertions(+), 10 deletions(-) create mode 100644 config/locales/fr.yml diff --git a/app/packs/stylesheets/decidim/emitter/emitter.scss b/app/packs/stylesheets/decidim/emitter/emitter.scss index 2378fa0..8912ba3 100644 --- a/app/packs/stylesheets/decidim/emitter/emitter.scss +++ b/app/packs/stylesheets/decidim/emitter/emitter.scss @@ -1 +1,10 @@ /* css for decidim_emitter */ + +.emitter-header .card-data__item{ + border-bottom: 1px solid #e8e8e8; + margin-bottom: 0px; + + img { + max-width: 60%; + } +} diff --git a/config/locales/en.yml b/config/locales/en.yml index acfb77d..dcaa1e2 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -8,18 +8,18 @@ en: explanation: 'Guidance for logo:' message_1: Preferrably a logo that will be seen on a white background. message_2: The service reduce the image. - participatory_processes: + components: emitter: - emitter_text: Consultation published by %{developer_group} + name: Emitter + participatory_processes: admin: participatory_processes: form: - emitter_now: "Emitter now" - emitter_new: "New emitter" - emitter_name: "Emitter name" - emitter: "Emitter" - emitter_logo: "Emitter logo" - emitter_logo_select: "Select an emitter" - components: + emitter: Emitter + emitter_logo: Emitter logo + emitter_logo_select: Select an emitter + emitter_name: Emitter name + emitter_new: New emitter + emitter_now: Emitter now emitter: - name: Emitter + emitter_text: Consultation published by %{developer_group} diff --git a/config/locales/fr.yml b/config/locales/fr.yml new file mode 100644 index 0000000..ad33f35 --- /dev/null +++ b/config/locales/fr.yml @@ -0,0 +1,25 @@ +--- +fr: + decidim: + admin: + forms: + file_help: + emitter: + explanation: 'Consignes pour le logo :' + message_1: De préférence un logo qui sera visible sur un fond blanc. + message_2: Le service réduit l'image. + components: + emitter: + name: Émetteur + participatory_processes: + admin: + participatory_processes: + form: + emitter: Émetteur + emitter_logo: Logo + emitter_logo_select: Sélectionner un émetteur + emitter_name: Nom de l'émetteur + emitter_new: Nouvel émetteur + emitter_now: Émetteur actuel + emitter: + emitter_text: Publié par %{developer_group}