diff --git a/lms/templates/wiki/includes/cheatsheet.html b/lms/templates/wiki/includes/cheatsheet.html index f8507d2011..7ff7ae009c 100644 --- a/lms/templates/wiki/includes/cheatsheet.html +++ b/lms/templates/wiki/includes/cheatsheet.html @@ -1,21 +1,24 @@ -<%! from django.utils.translation import ugettext as _ %> +{% load i18n %}
${_("This wiki uses Markdown for styling. There are several useful guides online. See any of the links below for in-depth details:")}
+{% trans "This wiki uses Markdown for styling. There are several useful guides online. See any of the links below for in-depth details:" %}
${_("To create a new wiki article, create a link to it. Clicking the link gives you the creation page.")}
-${_("[Article Name](wiki:ArticleName)")}
+ {% 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)" %}
circuit-schematic:
@@ -25,30 +28,34 @@ $LaTeX Math Expression$
-${_("http://wikipedia.org\
-[{Wikipedia}](http://wikipedia.org)\
-[{edX} Wiki](wiki:/edx/)").format(edX="edX", Wikipedia="Wikipedia")}
+{% comment %}
+ Translators: Do not translate "edX" or "Wikipedia"
+{% endcomment %}
+{% trans "http://wikipedia.org" %}
+{% trans "[Wikipedia](http://wikipedia.org)" %}
+{% trans "[edX Wiki](wiki:/edx/)" %}
+
-${_("Huge Header")}
+{% trans "Huge Header" %}
===========
-${_("Smaller Header")}
+{% trans "Smaller Header" %}
--------------
-${_("*emphasis* or _emphasis_")}
+{% trans "*emphasis* or _emphasis_" %}
-${_("**strong** or __strong__")}
+{% trans "**strong** or __strong__" %}
-${_("- Unordered List\
- - Sub Item 1\
- - Sub Item 2")}
+- {% trans "Unordered List" %}
+ - {% trans "Sub Item 1" %}
+ - {% trans "Sub Item 2" %}
-${_("1. Ordered\
-2. List")}
+1. {% trans "Ordered" %}
+2. {% trans "List" %}
-${_("> Quotes")}
+> {% trans "Quotes" %}
- ${_('Markdown syntax is allowed. See the _{("cheatsheet")} for help.')} + {% comment %} + Translators: Do not translate 'cheatsheetLink' + {% endcomment %} + {% trans "Markdown syntax is allowed. See the cheatsheet for help." %}
diff --git a/lms/templates/wiki/preview_inline.html b/lms/templates/wiki/preview_inline.html index faa230df86..4f8aafeeff 100644 --- a/lms/templates/wiki/preview_inline.html +++ b/lms/templates/wiki/preview_inline.html @@ -1,4 +1,3 @@ -<%! from django.utils.translation import ugettext as _ %> {% load wiki_tags i18n %}{% load compressed %} @@ -29,8 +28,8 @@ {% if revision and revision.deleted %}${_("Restoring to this revision will mark the article as deleted.")}
+ {% trans "This revision has been deleted." %} +{% trans "Restoring to this revision will mark the article as deleted." %}