Merge pull request #29579 from edx/jawayria/fix-ugettext-cms4
fix: replace 'ugettext' with 'gettext' in cms
This commit is contained in:
@@ -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.markup import HTML, Text
|
||||
%>
|
||||
<%inherit file="base.html" />
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<%page expression_filter="h"/>
|
||||
<%!
|
||||
from openedx.core.djangolib.markup import HTML, Text
|
||||
from django.utils.translation import ugettext as _
|
||||
from django.utils.translation import gettext as _
|
||||
%>
|
||||
<%inherit file="base.html" />
|
||||
<%block name="title">
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
## Standard imports
|
||||
<%namespace name='static' file='static_content.html'/>
|
||||
<%!
|
||||
from django.utils.translation import ugettext as _
|
||||
from django.utils.translation import gettext as _
|
||||
|
||||
from cms.djangoapps.contentstore.config.waffle import CUSTOM_RELATIVE_DATES
|
||||
from lms.djangoapps.branding import api as branding_api
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<%namespace name='static' file='static_content.html'/>
|
||||
<%!
|
||||
from cms.djangoapps.contentstore import utils
|
||||
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
|
||||
)
|
||||
|
||||
@@ -4,7 +4,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 openedx.core.djangolib.markup import HTML, Text
|
||||
%>
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ else:
|
||||
</%def>
|
||||
<%namespace name='static' file='static_content.html'/>
|
||||
<%!
|
||||
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,6 +1,6 @@
|
||||
<%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
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
</%def>
|
||||
<%!
|
||||
from cms.djangoapps.contentstore.views.helpers import xblock_studio_url, xblock_type_display_name
|
||||
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
|
||||
from openedx.core.djangolib.markup import HTML, Text
|
||||
%>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<%!
|
||||
import six
|
||||
|
||||
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 (
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<%inherit file="base.html" />
|
||||
<%!
|
||||
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 (
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<%inherit file="../base.html" />
|
||||
<%!
|
||||
from django.conf import settings
|
||||
from django.utils.translation import ugettext as _
|
||||
from django.utils.translation import gettext as _
|
||||
from openedx.core.djangolib.markup import HTML, Text
|
||||
%>
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<%inherit file="../base.html" />
|
||||
<%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 openedx.core.djangolib.markup import HTML, Text
|
||||
%>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<%def name="online_help_token()"><% return "textbooks" %></%def>
|
||||
<%namespace name='static' file='static_content.html'/>
|
||||
<%!
|
||||
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
|
||||
from cms.djangoapps.contentstore.utils import get_pages_and_resources_url
|
||||
%>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<%!
|
||||
import json
|
||||
from django.core.serializers.json import DjangoJSONEncoder
|
||||
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,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
|
||||
%>
|
||||
<link href="//cdnjs.cloudflare.com/ajax/libs/simplePagination.js/1.6/simplePagination.min.css" rel="stylesheet">
|
||||
@@ -10,13 +10,13 @@ from openedx.core.djangolib.js_utils import dump_js_escaped_json
|
||||
<br>
|
||||
<div id="video_upload_pagination" style="display: inline-block"></div>
|
||||
<br>
|
||||
<span id="videos_per_page"
|
||||
<span id="videos_per_page"
|
||||
data-ok-button="${_('Submit')}"
|
||||
data-cancel-button="${_('Cancel')}"
|
||||
data-data="${pagination_context['items_on_one_page']}"
|
||||
data-data="${pagination_context['items_on_one_page']}"
|
||||
data-placeholder="${_('Changing..')}"
|
||||
data-activator="#edit-activator">
|
||||
${_('Videos per page:')} ${pagination_context['items_on_one_page']}
|
||||
${_('Videos per page:')} ${pagination_context['items_on_one_page']}
|
||||
</span>
|
||||
<button id="edit-activator" class="btn-default edit-button action-button">
|
||||
<span class="icon fa fa-pencil" aria-hidden="true"></span>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<%page expression_filter="h"/>
|
||||
<%
|
||||
from django.conf import settings
|
||||
from django.utils.translation import ugettext as _
|
||||
from django.utils.translation import gettext as _
|
||||
from cms.djangoapps.contentstore.utils import ancestor_has_staff_lock, get_visibility_partition_info
|
||||
from openedx.core.djangolib.markup import HTML, Text
|
||||
from lms.lib.utils import is_unit
|
||||
|
||||
Reference in New Issue
Block a user