From 53d216657964abcdb3d75776fcdcdccbfff6840f Mon Sep 17 00:00:00 2001 From: drummer83 Date: Sun, 1 Dec 2024 23:39:44 +0100 Subject: [PATCH] Make Connected Apps links available in Transifex --- .../_affiliate_sales_data.html.haml | 4 +- .../connected_apps/_discover_regen.html.haml | 3 +- .../form/connected_apps/_vine.html.haml | 4 +- config/locales/en.yml | 40 +++++-------------- 4 files changed, 18 insertions(+), 33 deletions(-) diff --git a/app/views/admin/enterprises/form/connected_apps/_affiliate_sales_data.html.haml b/app/views/admin/enterprises/form/connected_apps/_affiliate_sales_data.html.haml index 52ec355a358..dc003d8e7d3 100644 --- a/app/views/admin/enterprises/form/connected_apps/_affiliate_sales_data.html.haml +++ b/app/views/admin/enterprises/form/connected_apps/_affiliate_sales_data.html.haml @@ -10,6 +10,8 @@ %em= t(".need_to_be_manager") unless managed_by_user?(enterprise) - else = button_to t(".disable"), admin_enterprise_connected_app_path(connected_app.id, enterprise_id: enterprise.id), method: :delete + %hr .connected-app__description - = t ".description_html" + %p= t ".description" + %b= link_to( t(".link_label_html"), "#{t(".link_url")}", target: "_blank") diff --git a/app/views/admin/enterprises/form/connected_apps/_discover_regen.html.haml b/app/views/admin/enterprises/form/connected_apps/_discover_regen.html.haml index 1bab8f75ec1..e7d0e283de0 100644 --- a/app/views/admin/enterprises/form/connected_apps/_discover_regen.html.haml +++ b/app/views/admin/enterprises/form/connected_apps/_discover_regen.html.haml @@ -27,4 +27,5 @@ %hr .connected-app__description - = t ".description_html" + %p= t ".description" + %b= link_to( t(".link_label_html"), "#{t(".link_url")}", target: "_blank") diff --git a/app/views/admin/enterprises/form/connected_apps/_vine.html.haml b/app/views/admin/enterprises/form/connected_apps/_vine.html.haml index 1413e28676f..ab127cc6ab6 100644 --- a/app/views/admin/enterprises/form/connected_apps/_vine.html.haml +++ b/app/views/admin/enterprises/form/connected_apps/_vine.html.haml @@ -25,6 +25,8 @@ .connected-app__vine-content .vine-disable = button_to t(".disable"), admin_enterprise_connected_app_path(connected_app.id, enterprise_id: enterprise.id), method: :delete + %hr .connected-app__description - = t ".description_html" + %p= t ".description" + %b= link_to( t(".link_label_html"), "#{t(".link_url")}", target: "_blank") diff --git a/config/locales/en.yml b/config/locales/en.yml index e033aae510d..6d064ab1ae7 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1414,20 +1414,14 @@ en: legend: "Connected apps" affiliate_sales_data: title: "INRAE / UFC QUE CHOISIR Research" - tagline: "Allow this research project to access your orders data anonymously" + tagline: "Allow this research project to access your orders data anonymously." enable: "Allow data sharing" disable: "Stop sharing" loading: "Loading" need_to_be_manager: "Only managers can connect apps." - description_html: | -

- INRAE and UFC QUE CHOISIR are teaming up to study food prices in short food systems and compare them with prices in the supermarket, for a given set of products. The data that is used by INRAE is mixed with data coming from other short food chain platforms in France. No individual product prices will be publicly disclosed through this project. -

-

- Learn more about this research project - -

+ description: "INRAE and UFC QUE CHOISIR are teaming up to study food prices in short food systems and compare them with prices in the supermarket, for a given set of products. The data that is used by INRAE is mixed with data coming from other short food chain platforms in France. No individual product prices will be publicly disclosed through this project." + link_label_html: "Learn more about this research project " + link_url: "https://apropos.coopcircuits.fr/" discover_regen: title: "Discover Regenerative" tagline: "Allow Discover Regenerative to publish your enterprise information." @@ -1439,18 +1433,9 @@ en: Your Open Food Network account is connected to Discover Regenerative. Add or update information on your Discover Regenerative listing here. link_label: "Manage listing" - description_html: | -

- Eligible producers can showcase their regenerative credentials, - farming practices and more through a profile listing. - Simplifying how buyers can find regenerative produce and connect - with producers of interest. -

-

- Learn more about Discover Regenerative - -

+ description: "Eligible producers can showcase their regenerative credentials, farming practices and more through a profile listing. Simplifying how buyers can find regenerative produce and connect with producers of interest." + link_label_html: "Learn more about Discover Regenerative " + link_url: "https://about.openfoodnetwork.org.au/regen-produce-portal/" vine: title: "Voucher Integration Engine (VINE)" tagline: "Allow redemption of VINE vouchers in your shopfront." @@ -1459,14 +1444,9 @@ en: need_to_be_manager: "Only managers can connect apps." vine_api_key: "VINE API Key" vine_secret: "VINE secret" - description_html: | -

- To enable VINE for your enterprise, enter your API key and secret. -

-

- VINE - -

+ description: "To enable VINE for your enterprise, enter your API key and secret." + link_label_html: "VINE " + link_url: "https://apropos.coopcircuits.fr" api_parameters_empty: "Please enter an API key and a secret" api_parameters_error: "Check you entered your API key and secret correctly, contact your instance manager if the error persists" connection_error: "API connection error, please try again"