Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
3170e36c
Commit
3170e36c
authored
Oct 17, 2014
by
Mark Hoeber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed highlight underscore, which was breaking on RTD
parent
f0b7850d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
13 deletions
+5
-13
docs/en_us/developers/source/i18n.rst
+5
-13
No files found.
docs/en_us/developers/source/i18n.rst
View file @
3170e36c
...
...
@@ -202,8 +202,6 @@ native Coffeescript features that break the extraction from the .js files:
Underscore template files
=========================
.. highlight:: underscore
Underscore template files are used in conjunction with JavaScript, and so the
same techniques are used for localization. Ensure that the i18n JavaScript
library has already been loaded, and then use the regular i18n functions
...
...
@@ -211,19 +209,13 @@ such as ``gettext`` and ``interpolate`` from your template.
For example::
<div class="group-visibility-label">
<% if (group.group_name) { %>
<%-
interpolate(
gettext('This post is visible only to %(group_name)s.'),
<%-
interpolate(
gettext('This post is visible only to %(group_name)s.'),
{group_name: group.group_name},
true
)
%>
<% } else { %>
<%- gettext('This post is visible to everyone.') %>
<% } %>
</div>
)
%>
Note: it is recommended that you use ``<%-`` for all translated strings
as this will HTML escape the string before including it in the page. This
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment