-
Notifications
You must be signed in to change notification settings - Fork 74
added babel for messages extraction #509
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
Open
lucvin
wants to merge
2
commits into
indico:master
Choose a base branch
from
lucvin:mail-translation
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[jinja2: **/templates/**.txt] | ||
encoding = utf-8 | ||
trimmed = true | ||
|
||
[jinja2: **/templates/**.html] | ||
encoding = utf-8 | ||
trimmed = true | ||
This file contains hidden or 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 |
---|---|---|
|
@@ -31,7 +31,7 @@ | |
<tr> | ||
<td style="text-align: center; color: #aaa; font-size: 11px; padding-bottom: 10px;"> | ||
<p style="padding: 0 50px; margin-top: 10px;"> | ||
This email was sent by <a href="{{ url_for('index', _external=true) }}">newdle</a>. | ||
{% trans %}This email was sent by{% endtrans %} <a href="{{ url_for('index', _external=true) }}">newdle</a>. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't have partial sentences in translatable strings. The link must be part of it. You can do something like this: {% set newdle_link -%}
<a href="{{ url_for('index', _external=true) }}">newdle</a>
{%- endset %}
{% trans %}This email was sent by {{ newdle_link }}.{% endtrans %} |
||
</p> | ||
</td> | ||
</tr> | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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,11 +1,13 @@ | ||
{% extends 'base_email.txt' %} | ||
{% block content -%} | ||
{% trans %} | ||
Hi {{ participant }}, | ||
|
||
{{ creator }} has deleted the newdle "{{ title }}". | ||
{% endtrans %} | ||
|
||
{%- if comment %} | ||
|
||
Comment: {{ comment }} | ||
{% trans %}Comment: {{ comment }}{% endtrans %} | ||
{%- endif -%} | ||
{%- endblock %} |
This file contains hidden or 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 | ||||
---|---|---|---|---|---|---|
|
@@ -2,26 +2,26 @@ | |||||
|
||||||
{% block content %} | ||||||
<p> | ||||||
Hi {{ participant }}, you have a fresh newdle! | ||||||
{% trans %}"Hi {{ participant }}, you have a fresh newdle!"{% endtrans %} | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
</p> | ||||||
|
||||||
<table border="0" cellpadding="0" cellspacing="0" | ||||||
style="padding: 20px; margin: 35px auto 0 auto; border-radius: 5px; background: #ffe6e8; min-width: 550px;"> | ||||||
<tr> | ||||||
<td style="border: 0; padding: 0 0 0 20px; text-align: left;"> | ||||||
<p> | ||||||
Please help <b>{{ creator }}</b> choose a time for the event "<b>{{ title }}</b>". | ||||||
{% trans %}Please help <b>{{ creator }}</b> choose a time for the event "<b>{{ title }}</b>".{% endtrans %} | ||||||
</p> | ||||||
</td> | ||||||
</tr> | ||||||
</table> | ||||||
<p style="margin: 30px 0 15px"> | ||||||
<a href="{{ answer_link }}" | ||||||
style="background: #2389D7; border-radius: 3px; color: #fff; border: none; outline: none; min-width: 200px; padding: 15px 25px; font-size: 14px; font-family: inherit; cursor: pointer; -webkit-appearance: none; text-decoration: none;"> | ||||||
Go to the newdle to respond | ||||||
{% trans %}Go to the newdle to respond{% endtrans %} | ||||||
</a> | ||||||
</p> | ||||||
<p style="margin-top: 30px; font-size: 12px;"> | ||||||
The link above is personalized for you; please do not forward/share it. | ||||||
{% trans %}The link above is personalized for you; please do not forward/share it.{% endtrans %} | ||||||
</p> | ||||||
{% endblock %} |
This file contains hidden or 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,10 +1,12 @@ | ||
{% extends 'base_email.txt' %} | ||
{% block content -%} | ||
{% trans %} | ||
Hi {{ participant }}, | ||
|
||
Please help {{ creator }} choose a time for the event | ||
"{{ title }}". | ||
|
||
Respond to their newdle poll now using this personalized link: | ||
{{ answer_link }} | ||
{% endtrans %} | ||
{%- endblock %} |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,10 +1,12 @@ | ||
{% extends 'base_email.txt' %} | ||
{% block content -%} | ||
{% trans %} | ||
Hi {{ participant }}, | ||
|
||
{{ creator }} picked a final date for the event "{{ title }}". | ||
|
||
It will take place on: | ||
{{ date }} | ||
{{ start_time }} - {{ end_time }} ({{ timezone }}) | ||
{% endtrans %} | ||
{%- endblock %} |
This file contains hidden or 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 hidden or 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,10 +1,12 @@ | ||
{% extends 'base_email.txt' %} | ||
{% block content -%} | ||
{% trans %} | ||
Hi {{ participant }}, | ||
|
||
{{ creator }} confirmed your answer for the event "{{ title }}". | ||
|
||
Your chosen timeslot is: | ||
{{ date }} | ||
{{ start_time }} - {{ end_time }} ({{ timezone }}) | ||
{% endtrans %} | ||
{%- endblock %} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please configure your editor to end files with a linebreka