diff --git a/app/templates/api/create_edit_token.html b/app/templates/api/create_edit_token.html index 44b2b00f..3372bc26 100644 --- a/app/templates/api/create_edit_token.html +++ b/app/templates/api/create_edit_token.html @@ -14,7 +14,7 @@ {% if token %}
{% endif %} @@ -30,15 +30,14 @@- For security reasons, access tokens will only be shown once. - Reset the token if it is lost. + {{ _("For security reasons, access tokens will only be shown once. Reset the token if it is lost.") }}
{% if access_token %} {% endif %}- View Notification + {{ _("View Notification") }}
{% endblock %} {% block footer %} - You are receiving this email because you are a registered user of ContentDB, - and have email notifications enabled.- View Notifications + {{ _("View Notifications") }}
{% endblock %} {% block footer %} - You are receiving this email because you are a registered user of ContentDB, - and have email notifications enabled.- This email has been sent to you because someone (hopefully you) - has entered your email address as a user's email. + {{ _("This email has been sent to you because someone (hopefully you) has entered your email address as a user's email.") }}
- If it wasn't you, then just delete this email. + {{ _("If it wasn't you, then just delete this email.") }}
- If this was you, then please click this link to confirm the address: + {{ _("If this was you, then please click this link to confirm the address:") }}
- Confirm Email Address + {{ _("Confirm Email Address") }}
- Or paste this into your browser: {{ abs_url_for('users.verify_email', token=token) }}
+ {{ _("Or paste this into your browser:") }}
+ {{ abs_url_for('users.verify_email', token=token) }}
{% endblock %}
{% block footer %}
- You are receiving this email because someone (hopefully you) entered your email address as a user's email.
+ {{ _("You are receiving this email because someone (hopefully you) entered your email address as a user's email.") }}
+
{{ _("Unsubscribe") }}
diff --git a/app/templates/emails/verify_unsubscribe.html b/app/templates/emails/verify_unsubscribe.html
index f9b3648d..a75d7b90 100644
--- a/app/templates/emails/verify_unsubscribe.html
+++ b/app/templates/emails/verify_unsubscribe.html
@@ -1,22 +1,24 @@
{% extends "emails/base.html" %}
{% block content %}
-
- We're sorry to see you go. You just need to do one more thing before your email is blacklisted. + {{ _("We're sorry to see you go. You just need to do one more thing before your email is blacklisted.") }}
- Unsubscribe + {{ _("Unsubscribe") }}
- Or paste this into your browser: {{ abs_url_for('users.unsubscribe', token=sub.token) }}
+ {{ _("Or paste this into your browser:") }} {{ abs_url_for('users.unsubscribe', token=sub.token) }}
{% endblock %} {% block footer %} - You are receiving this email because someone (hopefully you) entered your email address in the unsubscribe form. + {{ _("You are receiving this email because someone (hopefully you) entered your email address in the unsubscribe form.") }} {% endblock %} diff --git a/app/templates/macros/audit_log.html b/app/templates/macros/audit_log.html index 38c18ec3..410ac0c1 100644 --- a/app/templates/macros/audit_log.html +++ b/app/templates/macros/audit_log.html @@ -29,7 +29,7 @@ {{ entry.causer.username }} {% else %} - Deleted User + {{ _("Deleted User") }} {% endif %} @@ -61,7 +61,7 @@ {% else %} -
No audit log entires.
+{{ _("No audit log entries.") }}
{% endfor %} {% endmacro %} diff --git a/app/templates/macros/forms.html b/app/templates/macros/forms.html index dec9bf2d..208b37e7 100644 --- a/app/templates/macros/forms.html +++ b/app/templates/macros/forms.html @@ -49,7 +49,7 @@ {{ field(class_=fieldclass or 'form-control', **kwargs) }} - View + {{ _("View") }} @@ -104,7 +104,7 @@ {% endif %}- Warning: Non-free code and media. + {{ _("Warning: Non-free code and media.") }}
{% elif not package.license.is_foss and package.type != package.type.TXP %}- Warning: Non-free code. + {{ _("Warning: Non-free code.") }}
{% elif not package.media_license.is_foss %}- Warning: Non-free media. + {{ _("Warning: Non-free media.") }}
{% endif %}No threads found
+{{ _("No threads found") }}
{% endfor %} {% endmacro %} @@ -209,6 +209,6 @@ {% else %} -No threads found
+{{ _("No threads found") }}
{% endfor %} {% endmacro %} diff --git a/app/templates/macros/todo.html b/app/templates/macros/todo.html index ff493869..f714ddc8 100644 --- a/app/templates/macros/todo.html +++ b/app/templates/macros/todo.html @@ -54,7 +54,7 @@ {% else %} -No outdated packages.
+{{ _("No outdated packages.") }}
{% endfor %} {% endmacro %} diff --git a/app/templates/macros/topics.html b/app/templates/macros/topics.html index d75f9d9e..279c6e93 100644 --- a/app/templates/macros/topics.html +++ b/app/templates/macros/topics.html @@ -2,11 +2,11 @@- | Title | - {% if show_author %}Author | {% endif %} -Name | -Date | -Actions | +{{ _("Title") }} | + {% if show_author %}{{ _("Author") }} | {% endif %} +{{ _("Name") }} | +{{ _("Date") }} | +{{ _("Actions") }} |
---|---|---|---|---|---|---|---|---|---|---|
{{ topic.title }} - {% if topic.wip %}[WIP]{% endif %} + {% if topic.wip %}[{{ _("WIP") }}]{% endif %} | {% if show_author %}{{ topic.author.display_name}} | @@ -26,15 +26,15 @@ {% if current_user == topic.author or topic.author.checkPerm(current_user, "CHANGE_AUTHOR") %} - Create + {{ _("Create") }} {% endif %} {% if show_discard and current_user.is_authenticated and topic.checkPerm(current_user, "TOPIC_DISCARD") %} {% if topic.discarded %} - Show + {{ _("Show") }} {% else %} - Discard + {{ _("Discard") }} {% endif %} {% endif %} @@ -53,14 +53,17 @@ {% for topic in topics %}{% if user.github_username %} - Connected [{{ user.github_username }}] + {{ _("Connected") }} [{{ user.github_username }}] {% if user == current_user %} - View ContentDB's GitHub Permissions + + {{ _("View ContentDB's GitHub Permissions") }} + {% endif %} {% elif user == current_user %} - Link Github + + {{ _("Link Github") }} + {% else %} - None + {{ _("None") }} {% endif %} |
{{ _("Account Deletion and Deactivation isn't available to users yet.") }} diff --git a/app/templates/users/change_set_password.html b/app/templates/users/change_set_password.html index 2457a785..7e33b2a3 100644 --- a/app/templates/users/change_set_password.html +++ b/app/templates/users/change_set_password.html @@ -8,14 +8,16 @@ {% if optional %}