From 5d8e07eb63b49a26256e041705d2249b84b78d92 Mon Sep 17 00:00:00 2001 From: Adam Palay Date: Tue, 13 Aug 2013 11:02:44 -0400 Subject: [PATCH] replace html strings wtih tokens in templates --- .../registration/password_reset_confirm.html | 18 +++++++++++++++--- lms/templates/wiki/includes/cheatsheet.html | 6 +++--- lms/templates/wiki/includes/editor_widget.html | 4 +++- 3 files changed, 21 insertions(+), 7 deletions(-) diff --git a/lms/templates/registration/password_reset_confirm.html b/lms/templates/registration/password_reset_confirm.html index 607ff1a077..989d7984b4 100644 --- a/lms/templates/registration/password_reset_confirm.html +++ b/lms/templates/registration/password_reset_confirm.html @@ -91,7 +91,11 @@

@@ -123,7 +127,11 @@

{% trans "Your Password Reset Was Unsuccessful" %}

-

{% trans 'The password reset link was invalid, possibly because the link has already been used. Please return to the login page and start the password reset process again.' %}

+

+ {% blocktrans with start_link='' end_link='' %} + The password reset link was invalid, possibly because the link has already been used. Please return to the {{ start_link }}login page{{ end_link }} and start the password reset process again. + {% endblocktrans %} +

{% endif %} @@ -135,7 +143,11 @@

{% trans "Need Help?" %}

-

{% trans 'View our help section for contact information and answers to commonly asked questions' %}

+

+ {% blocktrans with start_link='' end_link='' %} + View our {{ start_link }}help section for contact information and answers to commonly asked questions{{ end_link }} + {% endblocktrans %} +

diff --git a/lms/templates/wiki/includes/cheatsheet.html b/lms/templates/wiki/includes/cheatsheet.html index 7ff7ae009c..660a83402a 100644 --- a/lms/templates/wiki/includes/cheatsheet.html +++ b/lms/templates/wiki/includes/cheatsheet.html @@ -7,9 +7,9 @@

{% trans "Wiki Syntax Help" %}

{% trans "This wiki uses Markdown for styling. There are several useful guides online. See any of the links below for in-depth details:" %}

{% trans "To create a new wiki article, create a link to it. Clicking the link gives you the creation page." %}

{% trans "[Article Name](wiki:ArticleName)" %}
diff --git a/lms/templates/wiki/includes/editor_widget.html b/lms/templates/wiki/includes/editor_widget.html index 4d9b1a7472..3745e6ee6d 100644 --- a/lms/templates/wiki/includes/editor_widget.html +++ b/lms/templates/wiki/includes/editor_widget.html @@ -4,5 +4,7 @@ {% comment %} Translators: Do not translate 'cheatsheetLink' {% endcomment %} - {% trans "Markdown syntax is allowed. See the cheatsheet for help." %} + {% blocktrans with start_link="" end_link="" %} + Markdown syntax is allowed. See the {{ start_link }}cheatsheet{{ end_link }} for help. + {% endblocktrans %}