Added translation and refactored user activation txt email

This commit is contained in:
PCoder 2017-09-02 13:25:47 +05:30
parent aecdff2ab7
commit eb79251fc0
3 changed files with 29 additions and 27 deletions

View file

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-09-02 03:08+0530\n" "POT-Creation-Date: 2017-09-02 07:47+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -102,6 +102,9 @@ msgstr ""
msgid "SUBMIT" msgid "SUBMIT"
msgstr "ABSENDEN" msgstr "ABSENDEN"
msgid "Your Data Center Light Team"
msgstr "Dein Data Center Light Team"
msgid "Thank you for your request." msgid "Thank you for your request."
msgstr "Vielen Dank für Ihre Anfrage." msgstr "Vielen Dank für Ihre Anfrage."
@ -125,34 +128,24 @@ msgstr ""
msgid "Thank you!" msgid "Thank you!"
msgstr "Vielen Dank!" msgstr "Vielen Dank!"
msgid "account activation" msgid "Account Activation"
msgstr "Accountaktivierung" msgstr "Account Aktivierung"
#, python-format #, python-format
msgid "" msgid ""
"\n" "\n"
" You can activate your %(dcl_text)s account by <a href=" "You can activate your Data Center Light account by <a href=\"%(base_url)s"
"\"%(base_url)s%(activation_link)s\">clicking here</a>.<br/><br/>\n" "%(activation_link)s\">clicking here</a>.<br/>\n"
" You can also copy and paste the following link into the " "You can also copy and paste the following link into the address bar of your "
"address bar of your browser and follow the link in order to activate your " "browser<br/>\n"
"datacenterlight account.<br/>\n" "to activate your Data Center Light account.<br/>\n"
"%(base_url)s%(activation_link)s\n" "%(base_url)s%(activation_link)s\n"
" "
msgstr "" msgstr ""
"\n" "\n"
"<a href=\"%(base_url)s%(activation_link)s\">Klicke hier</a> " "<a href=\"%(base_url)s%(activation_link)s\">Klicke hier</a> "
"um deinen %(dcl_text)s zu aktivieren.<br/><br/>\n" "um deinen Data Center Light Account zu aktivieren oder kopiere den folgenden "
" Oder kopiere den folgenden Link in die Adressleiste deines " "Link in die Adressleiste deines Browsers.<br/>\n"
"Browsers und folge dann dem Link um deinen %(dcl_text)s Account zu "
"aktivieren.<br/>\n"
"%(base_url)s%(activation_link)s\n" "%(base_url)s%(activation_link)s\n"
" "
msgid "Your"
msgstr "Dein"
msgid "team"
msgstr "Team"
#, python-format #, python-format
msgid "" msgid ""
@ -481,6 +474,12 @@ msgstr "ist kein gültiger Name"
msgid "is not a proper email" msgid "is not a proper email"
msgstr "ist keine gültige E-Mailadresse" msgstr "ist keine gültige E-Mailadresse"
#~ msgid "Your"
#~ msgstr "Dein"
#~ msgid "team"
#~ msgstr "Team"
#~ msgid "Questions?" #~ msgid "Questions?"
#~ msgstr "Fragen?" #~ msgstr "Fragen?"

View file

@ -2,7 +2,7 @@
{% load static from staticfiles %} {% load static from staticfiles %}
{% load i18n %} {% load i18n %}
{% block email_head %} {% block email_head %}
{{dcl_text}} {% trans 'account activation' %} {{dcl_text}} {% trans 'Account Activation' %}
{% endblock %} {% endblock %}
{% block email_body %} {% block email_body %}
{% blocktrans %} {% blocktrans %}

View file

@ -1,11 +1,14 @@
{% extends "datacenterlight/emails/base_email.txt" %}
{% load static from staticfiles %} {% load static from staticfiles %}
{% load i18n %} {% load i18n %}
{{dcl_text}} {% trans 'account activation' %} {% block email_head %}
{{dcl_text}} {% trans 'Account Activation' %}
{% endblock %}
{% block email_body %}
{% blocktrans %} {% blocktrans %}
Hi, Hi,
You can activate your {{dcl_text}} account by clicking here {{base_url}}{{activation_link}} You can activate your {{dcl_text}} account by clicking here {{base_url}}{{activation_link}}
{% endblocktrans %} {% endblocktrans %}
{% endblock %}
{% trans 'Your' %} {{dcl_text}} {% trans 'team' %}