Skip to content

Commit

Permalink
Separate default “Sir/Madam” from trans. string.
Browse files Browse the repository at this point in the history
  • Loading branch information
dokterbob committed Feb 20, 2020
1 parent a1d5db1 commit 041626c
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 10 deletions.
17 changes: 13 additions & 4 deletions newsletter/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-11-17 19:25+0000\n"
"POT-Creation-Date: 2020-02-20 11:13+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down Expand Up @@ -606,11 +606,20 @@ msgstr ""
msgid "Subscription to %(title)s"
msgstr ""

#: templates/newsletter/message/subscribe.html:10
#: templates/newsletter/message/subscribe.txt:1
#: templates/newsletter/message/unsubscribe.html:9
#: templates/newsletter/message/unsubscribe.txt:1
#: templates/newsletter/message/update.html:9
#: templates/newsletter/message/update.txt:1
msgid "Sir/Madam"
msgstr ""

#: templates/newsletter/message/subscribe.html:10
#: templates/newsletter/message/subscribe.txt:1
#, python-format
msgid ""
"Dear %(name|default:\"Sir/Madam\")s,\n"
"Dear %(name)s,\n"
"\n"
"you, or someone in your name requested a subscription to %(title)s.\n"
"\n"
Expand All @@ -634,7 +643,7 @@ msgstr ""
#: templates/newsletter/message/unsubscribe.txt:1
#, python-format
msgid ""
"Dear %(name|default:\"Sir/Madam\")s,\n"
"Dear %(name)s,\n"
"\n"
"you, or someone in your name requested unsubscription from %(title)s.\n"
"\n"
Expand All @@ -658,7 +667,7 @@ msgstr ""
#: templates/newsletter/message/update.txt:1
#, python-format
msgid ""
"Dear %(name|default:\"Sir/Madam\")s,\n"
"Dear %(name)s,\n"
"\n"
"you, or someone in your name requested updating your personal information "
"for %(title)s.\n"
Expand Down
2 changes: 1 addition & 1 deletion newsletter/templates/newsletter/message/subscribe.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</title>
</head>
<body>
{% blocktrans with name=subscription.name title=newsletter.title domain=site.domain url=subscription.subscribe_activate_url %}Dear {{ name|default:"Sir/Madam" }},
{% blocktrans with name=subscription.name|default:_("Sir/Madam") title=newsletter.title domain=site.domain url=subscription.subscribe_activate_url %}Dear {{ name }},

you, or someone in your name requested a subscription to {{ title }}.

Expand Down
2 changes: 1 addition & 1 deletion newsletter/templates/newsletter/message/subscribe.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% load i18n %}{% blocktrans with name=subscription.name title=newsletter.title domain=site.domain url=subscription.subscribe_activate_url %}Dear {{ name|default:"Sir/Madam" }},
{% load i18n %}{% blocktrans with name=subscription.name|default:_("Sir/Madam") title=newsletter.title domain=site.domain url=subscription.subscribe_activate_url %}Dear {{ name }},

you, or someone in your name requested a subscription to {{ title }}.

Expand Down
2 changes: 1 addition & 1 deletion newsletter/templates/newsletter/message/unsubscribe.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>{% blocktrans with title=newsletter.title %}Unsubscription from {{ title }}{% endblocktrans %}</title>
</head>
<body>
{% blocktrans with name=subscription.name title=newsletter.title domain=site.domain url=subscription.unsubscribe_activate_url %}Dear {{ name|default:"Sir/Madam" }},
{% blocktrans with name=subscription.name|default:_("Sir/Madam") title=newsletter.title domain=site.domain url=subscription.unsubscribe_activate_url %}Dear {{ name }},

you, or someone in your name requested unsubscription from {{ title }}.

Expand Down
2 changes: 1 addition & 1 deletion newsletter/templates/newsletter/message/unsubscribe.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% load i18n %}{% blocktrans with name=subscription.name title=newsletter.title domain=site.domain url=subscription.unsubscribe_activate_url %}Dear {{ name|default:"Sir/Madam" }},
{% load i18n %}{% blocktrans with name=subscription.name|default:_("Sir/Madam") title=newsletter.title domain=site.domain url=subscription.unsubscribe_activate_url %}Dear {{ name }},

you, or someone in your name requested unsubscription from {{ title }}.

Expand Down
2 changes: 1 addition & 1 deletion newsletter/templates/newsletter/message/update.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>{% blocktrans with title=newsletter.title %}Update of subscription to {{ title }}{% endblocktrans %}</title>
</head>
<body>
{% blocktrans with name=subscription.name title=newsletter.title domain=site.domain url=subscription.update_activate_url %}Dear {{ name|default:"Sir/Madam" }},
{% blocktrans with name=subscription.name|default:_("Sir/Madam") title=newsletter.title domain=site.domain url=subscription.update_activate_url %}Dear {{ name }},

you, or someone in your name requested updating your personal information for {{ title }}.

Expand Down
2 changes: 1 addition & 1 deletion newsletter/templates/newsletter/message/update.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% load i18n %}{% blocktrans with name=subscription.name title=newsletter.title domain=site.domain url=subscription.update_activate_url %}Dear {{ name|default:"Sir/Madam" }},
{% load i18n %}{% blocktrans with name=subscription.name|default:_("Sir/Madam") title=newsletter.title domain=site.domain url=subscription.update_activate_url %}Dear {{ name }},

you, or someone in your name requested updating your personal information for {{ title }}.

Expand Down

0 comments on commit 041626c

Please sign in to comment.