Merge pull request #29605 from edx/jawayria/fix-ugettext-lms1
fix: replace 'ugettext' with 'gettext' in lms
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<%page expression_filter="h"/>
|
||||
<%inherit file="../main.html"/>
|
||||
<%!
|
||||
from django.utils.translation import ugettext as _
|
||||
from django.utils.translation import gettext as _
|
||||
%>
|
||||
|
||||
<%block name="pagetitle">${_("API Access Request")}</%block>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<%inherit file="../../main.html"/>
|
||||
<%!
|
||||
from django.urls import reverse
|
||||
from django.utils.translation import ugettext as _
|
||||
from django.utils.translation import gettext as _
|
||||
from openedx.core.djangolib.js_utils import js_escaped_string
|
||||
%>
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<%page expression_filter="h"/>
|
||||
<%inherit file="../main.html"/>
|
||||
<%!
|
||||
from django.utils.translation import ugettext as _
|
||||
from django.utils.translation import gettext as _
|
||||
|
||||
from openedx.core.djangoapps.api_admin.models import ApiAccessRequest
|
||||
from openedx.core.djangolib.markup import HTML, Text
|
||||
@@ -43,7 +43,7 @@ ${_("API Access Request Status")}
|
||||
</div>
|
||||
|
||||
<p>${_('If you would like to regenerate your API client information, please use the form below.')}</p>
|
||||
|
||||
|
||||
% endif
|
||||
<div class="catalog-body">
|
||||
<div class="api-form-container">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<%inherit file="../main.html"/>
|
||||
<%!
|
||||
from django.urls import reverse
|
||||
from django.utils.translation import ugettext as _
|
||||
from django.utils.translation import gettext as _
|
||||
%>
|
||||
|
||||
<%block name="pagetitle">${_("API Terms of Service")}</%block>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<%!
|
||||
from django.urls import reverse
|
||||
from django.utils.translation import ugettext as _
|
||||
from django.utils.translation import gettext as _
|
||||
%>
|
||||
|
||||
<div class="bookmark-button-wrapper">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<%page expression_filter="h"/>
|
||||
<%!
|
||||
from openedx.core.djangolib.markup import Text, HTML
|
||||
from django.utils.translation import ugettext as _
|
||||
from django.utils.translation import gettext as _
|
||||
|
||||
%>
|
||||
<%inherit file="../main.html" />
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<%!
|
||||
from openedx.core.djangolib.markup import HTML, Text
|
||||
from django.conf import settings
|
||||
from django.utils.translation import ugettext as _
|
||||
from django.utils.translation import gettext as _
|
||||
|
||||
%>
|
||||
<%inherit file="../main.html" />
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<%page expression_filter="h"/>
|
||||
|
||||
<%!
|
||||
from django.utils.translation import ugettext as _
|
||||
from django.utils.translation import gettext as _
|
||||
from django.urls import reverse
|
||||
from openedx.core.djangolib.markup import HTML, Text
|
||||
%>
|
||||
@@ -10,13 +10,13 @@ from openedx.core.djangolib.markup import HTML, Text
|
||||
<button title="${_('Open Calculator')}" aria-controls="calculator_wrapper" aria-expanded="false" class="calc utility-control-button">
|
||||
<span class="icon fa fa-calculator" aria-hidden="true"></span>
|
||||
</button>
|
||||
|
||||
|
||||
<div id="calculator_wrapper">
|
||||
<form id="calculator">
|
||||
<div class="input-wrapper">
|
||||
<label for="calculator_input" class="label-calc-input sr">${_('Enter equation')}</label>
|
||||
<input type="text" id="calculator_input" title="${_('Calculator Input Field')}" />
|
||||
|
||||
|
||||
<div class="help-wrapper">
|
||||
<button type="button" title="${_('Hints')}" id="calculator_hint" aria-haspopup="true" aria-expanded="false" aria-controls="calculator_input_help"></button>
|
||||
<ul id="calculator_input_help" class="help" aria-hidden="true">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<%namespace name='static' file='/static_content.html'/>
|
||||
<%!
|
||||
from django.conf import settings
|
||||
from django.utils.translation import ugettext as _
|
||||
from django.utils.translation import gettext as _
|
||||
from django.urls import reverse
|
||||
from openedx.core.djangolib.js_utils import (
|
||||
dump_js_escaped_json, js_escaped_string
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<%page expression_filter="h"/>
|
||||
<%!
|
||||
from django.utils.translation import ugettext as _
|
||||
from django.utils.translation import gettext as _
|
||||
from django.utils.translation import pgettext
|
||||
from openedx.core.djangolib.markup import HTML, Text
|
||||
%>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<%page expression_filter="h"/>
|
||||
<%! from django.utils.translation import ugettext as _ %>
|
||||
<%! from django.utils.translation import gettext as _ %>
|
||||
|
||||
<h2 class="hd hd-2">${_("Grading Policy")}</h2>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<%page expression_filter="h"/>
|
||||
<%!
|
||||
from django.utils.translation import ugettext as _
|
||||
from django.utils.translation import gettext as _
|
||||
from openedx.core.djangolib.js_utils import (
|
||||
dump_js_escaped_json, js_escaped_string
|
||||
)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<%page expression_filter="h"/>
|
||||
<%! from django.utils.translation import ugettext as _ %>
|
||||
<%! from django.utils.translation import gettext as _ %>
|
||||
|
||||
|
||||
<h2 class="hd hd-2">${_('Student Grades')}</h2>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<%page expression_filter="h"/>
|
||||
<%! from django.utils.translation import ugettext as _ %>
|
||||
<%! from django.utils.translation import gettext as _ %>
|
||||
<%namespace name='static' file='../static_content.html'/>
|
||||
<%
|
||||
course_mode_class = course_mode if course_mode else ''
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<%page expression_filter="h"/>
|
||||
<%namespace name='static' file='/static_content.html'/>
|
||||
<%! from django.utils.translation import ugettext as _%>
|
||||
<%! from django.utils.translation import gettext as _%>
|
||||
|
||||
<%
|
||||
# set doc language direction
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<%page expression_filter="h"/>
|
||||
<%! from django.utils.translation import ugettext as _ %>
|
||||
<%! from django.utils.translation import gettext as _ %>
|
||||
<%inherit file="../main.html" />
|
||||
|
||||
<%block name="pagetitle">${_("Invalid Certificate Configuration.")}</%block>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<%def name="online_help_token()"><% return "course" %></%def>
|
||||
<%namespace name='static' file='static_content.html'/>
|
||||
<%!
|
||||
from django.utils.translation import ugettext as _
|
||||
from django.utils.translation import gettext as _
|
||||
from django.urls import reverse
|
||||
from six import text_type
|
||||
%>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<%page expression_filter="h"/>
|
||||
<%namespace name='static' file='static_content.html'/>
|
||||
<%! from django.utils.translation import ugettext as _ %>
|
||||
<%! from django.utils.translation import gettext as _ %>
|
||||
|
||||
<section class="courses-container">
|
||||
<section class="highlighted-courses">
|
||||
|
||||
Reference in New Issue
Block a user