Skip to content

Commit

Permalink
fix: update donation banner text (#9249)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanegigandet authored Nov 7, 2023
1 parent df378c6 commit 3c9c885
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 39 deletions.
14 changes: 6 additions & 8 deletions po/common/common.pot
Original file line number Diff line number Diff line change
Expand Up @@ -3984,6 +3984,10 @@ msgctxt "thank_you"
msgid "Thank you!"
msgstr ""

msgctxt "thank_you_very_much"
msgid "Thank you very much!"
msgstr ""

msgctxt "value_for_the_product"
msgid "Value for the product"
msgstr "Value for the product"
Expand Down Expand Up @@ -5728,14 +5732,8 @@ msgctxt "donation_title"
msgid "Important: we need your support!"
msgstr ""

# variable names between { } must not be translated, {number_of_employees} will be a number
msgctxt "donation_body_employees"
msgid "Open Food Facts is a collaborative project built by tens of thousands of volunteers and managed by a non-profit organization with {number_of_employees} employees."
msgstr ""

# variable names between { } must not be translated, {year} will be the upcoming year
msgctxt "donation_why_year"
msgid "We need your donations to fund the Open Food Facts {year} budget and to continue to develop the project."
msgctxt "donation_text_2023"
msgid "Help us make food transparency the norm! As an independent non-profit organization, we depend on your donations to continue informing consumers around the world about what they eat. Join the food revolution with a donation to the movement."
msgstr ""

msgctxt "donation_cta"
Expand Down
16 changes: 7 additions & 9 deletions po/common/en.po
Original file line number Diff line number Diff line change
Expand Up @@ -4008,6 +4008,10 @@ msgctxt "thank_you"
msgid "Thank you!"
msgstr "Thank you!"

msgctxt "thank_you_very_much"
msgid "Thank you very much!"
msgstr "Thank you very much!"

msgctxt "value_for_the_product"
msgid "Value for the product"
msgstr "Value for the product"
Expand Down Expand Up @@ -5752,15 +5756,9 @@ msgctxt "donation_title"
msgid "Important: we need your support!"
msgstr "Important: we need your support!"

# variable names between { } must not be translated, {number_of_employees} will be a number
msgctxt "donation_body_employees"
msgid "Open Food Facts is a collaborative project built by tens of thousands of volunteers and managed by a non-profit organization with {number_of_employees} employees."
msgstr "Open Food Facts is a collaborative project built by tens of thousands of volunteers and managed by a non-profit organization with {number_of_employees} employees."

# variable names between { } must not be translated, {year} will be the upcoming year
msgctxt "donation_why_year"
msgid "We need your donations to fund the Open Food Facts {year} budget and to continue to develop the project."
msgstr "We need your donations to fund the Open Food Facts {year} budget and to continue to develop the project."
msgctxt "donation_text_2023"
msgid "Help us make food transparency the norm! As an independent non-profit organization, we depend on your donations to continue informing consumers around the world about what they eat. Join the food revolution with a donation to the movement."
msgstr "Help us make food transparency the norm! As an independent non-profit organization, we depend on your donations to continue informing consumers around the world about what they eat. Join the food revolution with a donation to the movement."

msgctxt "donation_cta"
msgid "Donate"
Expand Down
16 changes: 7 additions & 9 deletions po/common/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -4010,6 +4010,10 @@ msgctxt "thank_you"
msgid "Thank you!"
msgstr "Merci !"

msgctxt "thank_you_very_much"
msgid "Thank you very much!"
msgstr "Merci beaucoup !"

msgctxt "value_for_the_product"
msgid "Value for the product"
msgstr "Valeur pour le produit"
Expand Down Expand Up @@ -5754,15 +5758,9 @@ msgctxt "donation_title"
msgid "Important: we need your support!"
msgstr "Important : nous avons besoin de votre soutien !"

# variable names between { } must not be translated, {number_of_employees} will be a number
msgctxt "donation_body_employees"
msgid "Open Food Facts is a collaborative project built by tens of thousands of volunteers and managed by a non-profit organization with {number_of_employees} employees."
msgstr "Open Food Facts est un projet collaboratif construit par des dizaines de milliers de bénévoles et géré par une organisation à but non lucratif avec {number_of_employees} employés."

# variable names between { } must not be translated, {year} will be the upcoming year
msgctxt "donation_why_year"
msgid "We need your donations to fund the Open Food Facts {year} budget and to continue to develop the project."
msgstr "Nous avons besoin de vos dons pour financer le budget {year} d'Open Food Facts et pour continuer à développer le projet."
msgctxt "donation_text_2023"
msgid "Help us make food transparency the norm! As an independent non-profit organization, we depend on your donations to continue informing consumers around the world about what they eat. Join the food revolution with a donation to the movement."
msgstr "Aidez-nous à faire de la transparence alimentaire la norme ! En tant qu'association à but non lucratif indépendante, nous dépendons de vos dons pour continuer à informer les consommateurs du monde entier sur ce qu'ils mangent. Rejoignez la révolution alimentaire avec un don défiscalisable."

msgctxt "donation_cta"
msgid "Donate"
Expand Down
5 changes: 1 addition & 4 deletions scss/_off.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1253,7 +1253,6 @@ $section-cyan: #008c8c;
padding: 1rem;
}
&--thank-you {
font-weight: bold;
span {
color: red;
font-size: 1rem;
Expand Down Expand Up @@ -1346,7 +1345,6 @@ $section-cyan: #008c8c;
padding: 1rem;
}
&--thank-you {
font-weight: bold;
span {
color: red;
font-size: 1rem;
Expand Down Expand Up @@ -1421,7 +1419,6 @@ $section-cyan: #008c8c;
padding: 1rem;
}
&--thank-you {
font-weight: bold;
span {
color: red;
font-size: 1rem;
Expand Down Expand Up @@ -1807,4 +1804,4 @@ a.panel_title {
margin-bottom: 3rem;
}
}
}
}
16 changes: 7 additions & 9 deletions templates/web/common/includes/donate_banner.tt.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,16 @@
<div class="donation-banner__content">
<a
class="donation-banner__content--button button round white-button"
href="[% link %]?utm_source=off&utf_medium=web&utm_campaign=donate-2023&utm_term=en-text-button"
href="[% link %]?utm_source=off&utf_medium=web&utm_campaign=donate-2023-a&utm_term=en-text-button"
>
<span class="material-icons">volunteer_activism</span>
[% lang('donation_cta') %]
</a>
<div class="donation-banner__content-paragraphs">
<p class="donation-banner__content-paragraphs--text">
[% f_lang('donation_body_employees', { 'number_of_employees' => '8' }) %] [%
f_lang('donation_why_year', { year => '2023' }) %]
[% lang("donation_text_2023") %]
</p>
<p class="donation-banner__content-paragraphs--thank-you">[% lang('thank_you') %] <span class="material-icons">favorite</span></p>
<p class="donation-banner__content-paragraphs--thank-you">[% lang('thank_you_very_much') %] <span class="material-icons">favorite</span></p>
</div>
<div class="donation-banner__content-close">
<span id="hide-donate-banner" class="donation-banner__content-close--icon material-icons" onclick="DonationButton();">close</span>
Expand Down Expand Up @@ -49,11 +48,11 @@
}

function DonationButton() {
setBannerCookie('off-donation-banner', 1, 180);
setBannerCookie('off-donation-banner-2023-a', 1, 180);
bannerID.style.display = 'none';
}

if (getBannerCookie('off-donation-banner') !== '') {
if (getBannerCookie('off-donation-banner-2023-a') !== '') {
bannerID.style.display = 'none';
} else {
bannerID.style.display = 'flex';
Expand All @@ -70,15 +69,14 @@
<div class="donation-banner-footer__content">
<a
class="donation-banner-footer__content--button button round white-button"
href="[% link %]?utm_source=off&utf_medium=web&utm_campaign=donate-2023&utm_term=en-text-button"
href="[% link %]?utm_source=off&utf_medium=web&utm_campaign=donate-2023-a&utm_term=en-text-button"
>
<span class="material-icons">volunteer_activism</span>
[% lang('donation_cta') %]
</a>
<div class="donation-banner-footer__content-paragraphs">
<p class="donation-banner-footer__content-paragraphs--text">
[% f_lang('donation_body_employees', { 'number_of_employees' => '8' }) %] [%
f_lang('donation_why_year', { year => '2023' }) %]
[% lang("donation_text_2023") %]
</p>
<p class="donation-banner-footer__content-paragraphs--thank-you">[% lang('thank_you') %] <span class="material-icons">favorite</span></p>
</div>
Expand Down

0 comments on commit 3c9c885

Please sign in to comment.