Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i18n donations #5724

Merged
merged 9 commits into from
Sep 22, 2021
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions crowdin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,21 @@ files:
sr: sr_RS
ku : kmr_TR
kmr: kmr
- source: /html/donate/en.html
translation: /html/donate/%two_letters_code%.html
languages_mapping:
two_letters_code:
zh-HK: zh_HK
zh-CN: zh_CN
en-AU: en_AU
en-GB: en_GB
en-US: en_US
pt-BR: pt_BR
pt-PT: pt_PT
nl-BE: nl_BE
nl: nl_NL
zh-TW: zh_TW
sr-CS: sr_CS
sr: sr_RS
ku : kmr_TR
kmr: kmr
6 changes: 3 additions & 3 deletions html/donate/en.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
/>

<div class="panel callout" style="margin-top:0.5rem">
<h3>Help us to fund the Open Food Facts 2021 budget!</h3>
<h3>Help us to fund the Open Food Facts 2022 budget!</h3>
<p>Open Food Facts is 100% free and independent of the food industry. We need your help to continue and to grow the project.</p>
</div>
</div>
Expand All @@ -139,7 +139,7 @@ <h2 style="margin-bottom:1rem">
</h2>

<div class="panel callout" style="margin-top:0.5rem">
<h3>Help us to fund the Open Food Facts 2021 budget!</h3>
<h3>Help us to fund the Open Food Facts 2022 budget!</h3>
<p>Open Food Facts is 100% free and independent of the food industry. We need your help to continue and to grow the project.</p>
</div>

Expand Down Expand Up @@ -193,7 +193,7 @@ <h3>Help us to fund the Open Food Facts 2021 budget!</h3>
<div class="columns large-5 xlarge-4 xxlarge-3 text-center">
<div style="max-width:425px">
<div class="loading">
<p>The donation form is being loaded.<br>You can also access it by <a href=" https://donorbox.org/your-donation-to-open-food-facts">clicking here</a>.</p>
<p>The donation form is being loaded.<br>You can also access it by <a href="https://donorbox.org/your-donation-to-open-food-facts">clicking here</a>.</p>
</div>

<script
Expand Down
18 changes: 17 additions & 1 deletion po/common/common.pot
Original file line number Diff line number Diff line change
Expand Up @@ -5731,4 +5731,20 @@ msgstr "Note: the Nutri-Score of teas and herbal teas corresponds to the product

msgctxt "g_per_100g"
msgid "%s g / 100 g"
msgstr "%s g / 100 g"
msgstr "%s g / 100 g"

msgctxt "donation_title"
msgid "Important: we need your support!"
msgstr ""

msgctxt "donation_body"
msgid "Open Food Facts is a collaborative project built by tens of thousands of volunteers and managed by a non-profit organization with 3 employees."
msgstr ""

msgctxt "donation_why"
msgid "We need your donations to <a href=\"[% link %]?utm_source=off&utm_medium=web&utm_campaign=donate-2020&utm_term=en-text\">fund the Open Food Facts 2021 budget</a> and to continue to develop the project. <strong>Thank you! ❤️</strong>"
teolemon marked this conversation as resolved.
Show resolved Hide resolved
msgstr ""

msgctxt "donation_cta"
msgid "Donate"
msgstr ""
13 changes: 6 additions & 7 deletions templates/web/common/includes/donate_banner.tt.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,15 @@ <h2>Tärkeää: tarvitsemme tukeasi!</h2>
</a>

[% ELSE %]

<h2>Important: we need your support!</h2>
<p>Open Food Facts is a collaborative project built by tens of thousands of volunteers
and managed by a non-profit organization with 3 employees.<br>
We need your donations to <a href="[% link %]?utm_source=off&utm_medium=web&utm_campaign=donate-2020&utm_term=en-text">fund the Open Food Facts 2021 budget</a>
and to continue to develop the project. <strong>Thank you! ❤️</strong></p>

<h2>[% lang('donation_title') %]</h2>
<p>[% lang('donation_body') %]<br>
[% lang('donation_why') %]
</p>
<div class="row">
<div class="small-12 large-4 columns">
<a href="[% link %]?utm_source=off&utm_medium=web&utm_campaign=donate-2020&utm_term=en-text-button" class="button round" style="margin-bottom:0">
Donate
[% lang('donation_cta') %]
</a>

[% END %]
Expand Down