changeset f54aa06ce556 in modules/sale_gift_card:default
details:
https://hg.tryton.org/modules/sale_gift_card?cmd=changeset&node=f54aa06ce556
description:
Use i18n directive for email template
issue10328
review321021003
diffstat:
email.html | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r 8df83d0cea81 -r f54aa06ce556 email.html
--- a/email.html Sat May 15 09:22:28 2021 +0200
+++ b/email.html Sun May 16 18:13:04 2021 +0200
@@ -1,12 +1,14 @@
<!DOCTYPE html>
-<html xmlns:py="http://genshi.edgewall.org/">
+<html xmlns:py="http://genshi.edgewall.org/"
xmlns:i18n="http://genshi.edgewall.org/i18n">
<head>
<title>Gift Card</title>
</head>
<body>
<py:for each="gift_card in records">
<div style="display: block; text-align: center">
- <h1>You received a gift card of ${format_currency(gift_card.value,
None, gift_card.currency)} for ${gift_card.company.rec_name}.</h1>
+ <h1 i18n:msg="value,company">
+ You received a gift card of ${format_currency(gift_card.value,
None, gift_card.currency)} for ${gift_card.company.rec_name}.
+ </h1>
<h2>Here is your code:</h2>
<div style="padding: 1em; font-size: 2em;
width: max-content; margin-left: auto; margin-right:
auto;