Skip to content

Commit

Permalink
fix: unlocalized knowledge panel string for Smoothie (#6682)
Browse files Browse the repository at this point in the history
* Update carbon_footprint.tt.json

The carbon emission figure comes from ADEME's Agribalyse database, for the category:

* Update common.pot

* Update en.po
  • Loading branch information
teolemon authored Apr 25, 2022
1 parent aed4a4b commit f58b3c8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions po/common/common.pot
Original file line number Diff line number Diff line change
Expand Up @@ -5836,6 +5836,10 @@ msgctxt "source_ademe_agribalyse"
msgid "Source: ADEME Agribalyse Database"
msgstr "Source: ADEME Agribalyse Database"

msgctxt "source_ademe_agribalyse_for_category"
msgid "The carbon emission figure comes from ADEME's Agribalyse database, for the category:"
msgstr "The carbon emission figure comes from ADEME's Agribalyse database, for the category:"

msgctxt "environment_card_title"
msgid "Environment"
msgstr "Environment"
Expand Down
4 changes: 4 additions & 0 deletions po/common/en.po
Original file line number Diff line number Diff line change
Expand Up @@ -5858,6 +5858,10 @@ msgctxt "source_ademe_agribalyse"
msgid "Source: ADEME Agribalyse Database"
msgstr "Source: ADEME Agribalyse Database"

msgctxt "source_ademe_agribalyse_for_category"
msgid "The carbon emission figure comes from ADEME's Agribalyse database, for the category:"
msgstr "The carbon emission figure comes from ADEME's Agribalyse database, for the category:"

msgctxt "environment_card_title"
msgid "Environment"
msgstr "Environment"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
"text_element": {
"text_type": "summary",
"html": `
<p>The carbon emission figure comes from ADEME's Agribalyse database, for the category:
<p>[% lang('source_ademe_agribalyse_for_category') %]
<a href=\"https://agribalyse.ademe.fr/app/aliments/[% product.ecoscore_data.agribalyse.code %]\">[% panel.agribalyse_category_name.dquote %]</a>
([% lang('source_ademe_agribalyse') %]
([% lang('source_ademe_agribalyse') %])
</p>
`
}
Expand Down

0 comments on commit f58b3c8

Please sign in to comment.