Skip to content

Commit 003985e

Browse files
Copilotteolemon
andauthored
feat: add 2026 donation strings, update template, update banner colors
Agent-Logs-Url: https://github.com/openfoodfacts/openfoodfacts-server/sessions/89865f33-aa11-499e-be21-0b62b1619ded Co-authored-by: teolemon <1689815+teolemon@users.noreply.github.com>
1 parent ba73bf2 commit 003985e

4 files changed

Lines changed: 95 additions & 23 deletions

File tree

po/common/common.pot

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6035,6 +6035,42 @@ msgctxt "donation_button_2024_text"
60356035
msgid "I SUPPORT"
60366036
msgstr "I SUPPORT"
60376037

6038+
msgctxt "donation_hook_2026"
6039+
msgid "Help us inform millions of consumers around the world about what they eat"
6040+
msgstr "Help us inform millions of consumers around the world about what they eat"
6041+
6042+
msgctxt "donation_list_2026_main"
6043+
msgid "Your donations fund the day-to-day operations of our non-profit association:"
6044+
msgstr "Your donations fund the day-to-day operations of our non-profit association:"
6045+
6046+
msgctxt "donation_list_2026_first"
6047+
msgid "keeping our database open & available to all,"
6048+
msgstr "keeping our database open & available to all,"
6049+
6050+
msgctxt "donation_list_2026_first_sub"
6051+
msgid "technical infrastructure (website/mobile app) & a small permanent team"
6052+
msgstr "technical infrastructure (website/mobile app) & a small permanent team"
6053+
6054+
msgctxt "donation_list_2026_second"
6055+
msgid "remain independent of the food industry,"
6056+
msgstr "remain independent of the food industry,"
6057+
6058+
msgctxt "donation_list_2026_third"
6059+
msgid "engage a community of committed citizens,"
6060+
msgstr "engage a community of committed citizens,"
6061+
6062+
msgctxt "donation_list_2026_fourth"
6063+
msgid "support the advancement of public health research."
6064+
msgstr "support the advancement of public health research."
6065+
6066+
msgctxt "donation_financial_2026_text"
6067+
msgid "Each donation counts! We appreciate your support in bringing further food transparency in the world."
6068+
msgstr "Each donation counts! We appreciate your support in bringing further food transparency in the world."
6069+
6070+
msgctxt "donation_button_2026_text"
6071+
msgid "I SUPPORT"
6072+
msgstr "I SUPPORT"
6073+
60386074
msgctxt "donation_cta"
60396075
msgid "Donate"
60406076
msgstr ""

po/common/en.po

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6048,6 +6048,42 @@ msgctxt "donation_button_2024_text"
60486048
msgid "I SUPPORT"
60496049
msgstr "I SUPPORT"
60506050

6051+
msgctxt "donation_hook_2026"
6052+
msgid "Help us inform millions of consumers around the world about what they eat"
6053+
msgstr "Help us inform millions of consumers around the world about what they eat"
6054+
6055+
msgctxt "donation_list_2026_main"
6056+
msgid "Your donations fund the day-to-day operations of our non-profit association:"
6057+
msgstr "Your donations fund the day-to-day operations of our non-profit association:"
6058+
6059+
msgctxt "donation_list_2026_first"
6060+
msgid "keeping our database open & available to all,"
6061+
msgstr "keeping our database open & available to all,"
6062+
6063+
msgctxt "donation_list_2026_first_sub"
6064+
msgid "technical infrastructure (website/mobile app) & a small permanent team"
6065+
msgstr "technical infrastructure (website/mobile app) & a small permanent team"
6066+
6067+
msgctxt "donation_list_2026_second"
6068+
msgid "remain independent of the food industry,"
6069+
msgstr "remain independent of the food industry,"
6070+
6071+
msgctxt "donation_list_2026_third"
6072+
msgid "engage a community of committed citizens,"
6073+
msgstr "engage a community of committed citizens,"
6074+
6075+
msgctxt "donation_list_2026_fourth"
6076+
msgid "support the advancement of public health research."
6077+
msgstr "support the advancement of public health research."
6078+
6079+
msgctxt "donation_financial_2026_text"
6080+
msgid "Each donation counts! We appreciate your support in bringing further food transparency in the world."
6081+
msgstr "Each donation counts! We appreciate your support in bringing further food transparency in the world."
6082+
6083+
msgctxt "donation_button_2026_text"
6084+
msgid "I SUPPORT"
6085+
msgstr "I SUPPORT"
6086+
60516087
msgctxt "donation_cta"
60526088
msgid "Donate"
60536089
msgstr "Donate"

scss/_off.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1294,7 +1294,7 @@ $border-pink: #ff6e78;
12941294
display: flex;
12951295
justify-content: center;
12961296
align-items: center;
1297-
background-color: $section-cyan;
1297+
background-color: $background-orange;
12981298
color: white;
12991299
padding: 10px;
13001300
margin: 10px;
@@ -1328,7 +1328,7 @@ $border-pink: #ff6e78;
13281328
flex-direction: column;
13291329
}
13301330
&__main-title {
1331-
color: $border-pink;
1331+
color: black;
13321332
font-weight: 800;
13331333
font-size: 25px;
13341334
}
@@ -1356,20 +1356,20 @@ $border-pink: #ff6e78;
13561356
font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS",
13571357
sans-serif;
13581358
font-size: 15px;
1359-
color: #008c8c;
1359+
color: black;
13601360
font-weight: bolder;
13611361
}
13621362
}
13631363
&__donate-button {
13641364
width: 40%;
13651365
a button {
1366-
background-color: $border-pink;
1366+
background-color: black;
13671367
border-radius: 30px;
13681368
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
13691369
font-size: 20px;
13701370
font-weight: 900;
13711371
&:hover {
1372-
background-color: rgba($border-pink, 0.8);
1372+
background-color: rgba(0, 0, 0, 0.8);
13731373
}
13741374
}
13751375
}

templates/web/common/includes/donate_banner.tt.html

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ <h2>Help us promote biodiversity in Open Food Facts!</h2>
361361

362362
<div class="donation-banner__left-aside">
363363
<div class="donation-banner__hook-section">
364-
<p>[% lang("donation_hook_2024") %]</p>
364+
<p>[% lang("donation_hook_2026") %]</p>
365365
</div>
366366
<img src="/images/misc/donation-banners/donation-banner-group-photo.png" alt="group photo donation 2024" />
367367
</div>
@@ -377,22 +377,22 @@ <h2>Help us promote biodiversity in Open Food Facts!</h2>
377377
<h3 class="donation-banner__main-title">[% f_lang("f_donation_title_year", { year => "2026" } ) %]</h3>
378378
</div>
379379
<div style="padding:1rem;">
380-
<p>[% lang("donation_list_2024_main") %]</p>
380+
<p>[% lang("donation_list_2026_main") %]</p>
381381
<ul>
382382
<li>
383-
[% lang("donation_list_2024_first") %]
383+
[% lang("donation_list_2026_first") %]
384384
<ul>
385-
<li>[% lang("donation_list_2024_first_sub") %]</li>
385+
<li>[% lang("donation_list_2026_first_sub") %]</li>
386386
</ul>
387387
</li>
388388
<li>
389-
<p>[% lang("donation_list_2024_second") %]</p>
389+
<p>[% lang("donation_list_2026_second") %]</p>
390390
</li>
391391
<li>
392-
<p>[% lang("donation_list_2024_third") %]</p>
392+
<p>[% lang("donation_list_2026_third") %]</p>
393393
</li>
394394
<li>
395-
<p>[% lang("donation_list_2024_fourth") %]</p>
395+
<p>[% lang("donation_list_2026_fourth") %]</p>
396396
</li>
397397
</ul>
398398
</div>
@@ -403,13 +403,13 @@ <h3 class="donation-banner__main-title">[% f_lang("f_donation_title_year", { yea
403403
[% IF cc == "fr" %]
404404
(déductible à 66 % de vos impôts: ex. un don de 20€ vous reviendra à 6,80€)
405405
[% ELSE %]
406-
[% lang("donation_financial_2024_text") %]
406+
[% lang("donation_financial_2026_text") %]
407407
[% END %]
408408
</p>
409409
</div>
410410
<div class="donation-banner__actions-section__donate-button">
411411
<a href="[% link %]?utm_source=off&utf_medium=web&utm_campaign=donate-2026-a&utm_term=en-text-button">
412-
<button>[% lang("donation_button_2024_text") %]</button>
412+
<button>[% lang("donation_button_2026_text") %]</button>
413413
</a>
414414
</div>
415415
</div>
@@ -467,7 +467,7 @@ <h3 class="donation-banner__main-title">[% f_lang("f_donation_title_year", { yea
467467
<section class="donation-banner-footer row">
468468
<div class="donation-banner-footer__left-aside">
469469
<div class="donation-banner-footer__hook-section">
470-
<p>[% lang("donation_hook_2024") %]</p>
470+
<p>[% lang("donation_hook_2026") %]</p>
471471
</div>
472472
<img src="/images/misc/donation-banners/donation-banner-group-photo.png" alt="The Open Food Facts community during the Open Food Facts Days" />
473473
</div>
@@ -482,34 +482,34 @@ <h3 class="donation-banner__main-title">[% f_lang("f_donation_title_year", { yea
482482
/>
483483
<h3 class="donation-banner-footer__main-title">[% f_lang("f_donation_title_year", { year => "2026" } ) %]</h3>
484484
</div>
485-
<p>[% lang("donation_list_2024_main") %]</p>
485+
<p>[% lang("donation_list_2026_main") %]</p>
486486
<ul>
487487
<li>
488-
[% lang("donation_list_2024_first") %]
488+
[% lang("donation_list_2026_first") %]
489489
<ul>
490-
<li>[% lang("donation_list_2024_first_sub") %]</li>
490+
<li>[% lang("donation_list_2026_first_sub") %]</li>
491491
</ul>
492492
</li>
493493
<li>
494-
<p>[% lang("donation_list_2024_second") %]</p>
494+
<p>[% lang("donation_list_2026_second") %]</p>
495495
</li>
496496
<li>
497-
<p>[% lang("donation_list_2024_third") %]</p>
497+
<p>[% lang("donation_list_2026_third") %]</p>
498498
</li>
499499
<li>
500-
<p>[% lang("donation_list_2024_fourth") %]</p>
500+
<p>[% lang("donation_list_2026_fourth") %]</p>
501501
</li>
502502
</ul>
503503
</div>
504504
<div class="donation-banner-footer__actions-section">
505505
<div class="donation-banner-footer__actions-section__financial">
506506
<p>
507-
[% lang("donation_financial_2024_text") %]
507+
[% lang("donation_financial_2026_text") %]
508508
</p>
509509
</div>
510510
<div class="donation-banner-footer__actions-section__donate-button">
511511
<a href="[% link %]?utm_source=off&utf_medium=web&utm_campaign=donate-2026-a&utm_term=en-text-button">
512-
<button>[% lang("donation_button_2024_text") %]</button>
512+
<button>[% lang("donation_button_2026_text") %]</button>
513513
</a>
514514
</div>
515515
</div>

0 commit comments

Comments
 (0)