Skip to content

Commit

Permalink
feat: Add newsletter link (#7588) (#7615)
Browse files Browse the repository at this point in the history
* Add newsletter link (#7588)

* Add new string to translate

* typo

Co-authored-by: Stéphane Gigandet <stephane@openfoodfacts.org>
  • Loading branch information
CharlesNepote and stephanegigandet committed Oct 28, 2022
1 parent 44eb4ed commit 8c5012a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions po/common/common.pot
Original file line number Diff line number Diff line change
Expand Up @@ -1451,6 +1451,10 @@ msgctxt "newsletter_description"
msgid "Subscribe to the newsletter (2 emails per month maximum)"
msgstr ""

msgctxt "subscribe_to_our_newsletter"
msgid "Subscribe to our newsletter"
msgstr ""

msgctxt "next"
msgid "Next"
msgstr ""
Expand Down
4 changes: 4 additions & 0 deletions po/common/en.po
Original file line number Diff line number Diff line change
Expand Up @@ -1542,6 +1542,10 @@ msgctxt "newsletter_description"
msgid "Subscribe to the newsletter (2 emails per month maximum)"
msgstr "Subscribe to the newsletter (2 emails per month maximum)"

msgctxt "subscribe_to_our_newsletter"
msgid "Subscribe to our newsletter"
msgstr "Subscribe to our newsletter"

msgctxt "next"
msgid "Next"
msgstr "Next"
Expand Down
4 changes: 4 additions & 0 deletions po/common/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -1399,6 +1399,10 @@ msgctxt "newsletter_description"
msgid "Subscribe to the newsletter (2 emails per month maximum)"
msgstr "S'inscrire à la lettre d'information (2 e-mails par mois maximum)"

msgctxt "subscribe_to_our_newsletter"
msgid "Subscribe to our newsletter"
msgstr "S'inscrire à notre lettre d'information"

msgctxt "next"
msgid "Next"
msgstr "Suivant"
Expand Down
3 changes: 3 additions & 0 deletions templates/web/common/site_layout.tt.html
Original file line number Diff line number Diff line change
Expand Up @@ -294,13 +294,15 @@ <h1>[% title %]</h1>
<h3 class="title-5 text-medium">[% lang('footer_join_the_community') %]</h3>
<p>[% f_lang('f_discover_our_code_of_conduct', { url => lang('footer_code_of_conduct_link') } ) %]</p>
<p>[% f_lang('f_join_us_on_slack', { url => "https://slack.openfoodfacts.org" } ) %]</p>
<p><a href="https://forum.openfoodfacts.org/">Forum</a></p>
<p id="footer_social_icons">[% f_lang('f_footer_follow_us_links', { links => '
<a href="https://twitter.com/openfoodfacts"><img src="/images/icons/dist/twitter.svg" class="footer_social_icon" alt="Twitter"></a>
<a href="https://www.facebook.com/OpenFoodFacts"><img src="/images/icons/dist/facebook.svg" class="footer_social_icon" alt="Facebook"></a>
<a href="https://www.instagram.com/open.food.facts/"><img src="/images/icons/dist/instagram.svg" class="footer_social_icon" alt="Instagram"></a>
'})
%]
</p>
<p><a href="https://link.openfoodfacts.org/newsletter-[% language %]">[% lang('subscribe_to_our_newsletter') %]</a></p>
</div>
<div class="small-12 large-6 columns project v-space-normal">
<h3 class="title-5 text-medium">[% lang('footer_discover_the_project') %]</h3>
Expand Down Expand Up @@ -337,6 +339,7 @@ <h3 class="title-5 text-medium">[% lang('footer_discover_the_project') %]</h3>
<li><a href="[% lang('footer_data_link') %]">[% lang('footer_data') %]</a></li>
<li><a href="[% lang('donate_link') %]">[% lang('donate') %]</a></li>
<li><a href="[% lang('footer_producers_link') %]">[% lang('footer_producers') %]</a></li>
<li><a href="https://link.openfoodfacts.org/newsletter-[% language %]">[% lang('subscribe_to_our_newsletter') %]</a></li>
</ul>
</div>

Expand Down

0 comments on commit 8c5012a

Please sign in to comment.