Skip to content

Commit

Permalink
Localize strings in exercise view and notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
madaian authored and raphendyr committed Aug 9, 2018
1 parent 4aa270f commit 0068423
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions exercise/templates/exercise/submission_plain.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
</head>
<body>
<p class="submission-title">
{% if exercise.parent %}{{ exercise.parent }}:{% endif %}
{{ exercise }}
{% if exercise.parent %}{{ exercise.parent|parse_localization }}:{% endif %}
{{ exercise|parse_localization }}
</p>
<table class="submission-info table table-bordered table-condensed">
<tr>
Expand Down
3 changes: 2 additions & 1 deletion notification/templates/notification/_notification_menu.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{% load course %}
{% if count > 0 %}
<li role="presentation" class="menu-notification dropdown" id="notification-alert">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
Expand All @@ -9,7 +10,7 @@
{% for entry in notifications %}
<li>
<a href="{{ entry.link }}" class="page-modal">
{{ entry.name }}
{{ entry.name|parse_localization }}
</a>
</li>
{% endfor %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{% load course %}
{% load i18n %}
{% if count > 0 %}
<div class="alert alert-danger visible-xs">
Expand All @@ -7,7 +8,7 @@
<ul>
{% for entry in notifications %}
<li><a href="{{ entry.link }}" class="page-modal">
{{ entry.name }}
{{ entry.name|parse_localization }}
</a></li>
{% endfor %}
</ul>
Expand Down

0 comments on commit 0068423

Please sign in to comment.