-
Notifications
You must be signed in to change notification settings - Fork 492
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Internal: In legacy get_lang and templates isn't necessary to force t…
…he locale - refs BT#21304 The locale is set in request
- Loading branch information
Showing
4 changed files
with
13 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 10 additions & 11 deletions
21
src/CoreBundle/Resources/views/Mailer/Legacy/content_registration_platform.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
{% autoescape false %} | ||
{% set locale = locale|default('en') %} | ||
<p>{{ 'Dear'|trans({}, null, locale) }} {{ complete_name }},</p> | ||
<p>{{ 'Welcome to this platform'|trans({}, null, locale) }}</p> | ||
<p>{{ 'You are registered to'|trans({}, null, locale) }} {{ 'platform.site_name' | api_get_setting }} {{ 'with the following settings:'|trans({}, null, locale) }}</p> | ||
<p>{{ 'Username'|trans({}, null, locale) }} : {{ login_name }}<br> | ||
{{ 'Pass'|trans({}, null, locale) }} : {{ original_password }}</p> | ||
<p>{{ 'For more details visit %s'|trans({}, null, locale)|format(search_link) }}</p> | ||
<p>{{ 'In case of trouble, contact us.'|trans({}, null, locale) }}</p> | ||
<p>{{ 'Dear'|trans }} {{ complete_name }},</p> | ||
<p>{{ 'Welcome to this platform'|trans }}</p> | ||
<p>{{ 'You are registered to'|trans }} {{ 'platform.site_name' | api_get_setting }} {{ 'with the following settings:'|trans }}</p> | ||
<p>{{ 'Username'|trans }} : {{ login_name }}<br> | ||
{{ 'Pass'|trans }} : {{ original_password }}</p> | ||
<p>{{ 'For more details visit %s'|trans|format(search_link) }}</p> | ||
<p>{{ 'In case of trouble, contact us.'|trans }}</p> | ||
|
||
<p>{{ 'Sincerely'|trans({}, null, locale) }}</p> | ||
<p>{{ 'Sincerely'|trans }}</p> | ||
<p>{{ 'admin.administrator_name' | api_get_setting }} {{ 'admin.administrator_surname' | api_get_setting }}<br /> | ||
{{ 'Manager'|trans({}, null, locale) }} {{ 'platform.site_name' | api_get_setting }}<br /> | ||
{{ 'Manager'|trans }} {{ 'platform.site_name' | api_get_setting }}<br /> | ||
|
||
{% if 'admin.administrator_phone' | api_get_setting %} | ||
{{ 'T. ' ~ 'admin.administrator_phone' | api_get_setting }}<br /> | ||
{% endif %} | ||
{% if 'admin.administrator_email' | api_get_setting %} | ||
{{ 'Email'|trans({}, null, locale) ~ ': ' ~ 'admin.administrator_email' | api_get_setting }} | ||
{{ 'Email'|trans ~ ': ' ~ 'admin.administrator_email' | api_get_setting }} | ||
{% endif %} | ||
</p> | ||
{% endautoescape %} |
3 changes: 1 addition & 2 deletions
3
src/CoreBundle/Resources/views/Mailer/Legacy/subject_registration_platform.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
{% set locale = locale|default('en') %} | ||
{{ '['~ 'platform.site_name' | api_get_setting ~ '] ' ~ 'Your Reg'|trans({}, null, locale) ~ ' ' ~ 'platform.site_name' | api_get_setting }} | ||
{{ '['~ 'platform.site_name' | api_get_setting ~ '] ' ~ 'Your Reg'|trans ~ ' ' ~ 'platform.site_name' | api_get_setting }} |