fix: replace 'ugettext' with 'gettext' in cms

This commit is contained in:
Jawayria
2021-12-13 20:30:32 +05:00
parent e8ba3bb6d3
commit 70ae3e531a
17 changed files with 17 additions and 17 deletions

View File

@@ -3,7 +3,7 @@
<%def name="online_help_token()"><% return "accessibility" %></%def>
<%!
from django.urls import reverse
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _
from openedx.core.djangolib.markup import HTML, Text
from openedx.core.djangolib.js_utils import js_escaped_string, dump_js_escaped_json
%>

View File

@@ -3,7 +3,7 @@
<%def name="online_help_token()"><% return "files" %></%def>
<%!
from django.urls import reverse
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _
from openedx.core.djangolib.markup import HTML, Text
from openedx.core.djangolib.js_utils import js_escaped_string, dump_js_escaped_json
%>

View File

@@ -4,7 +4,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.markup import HTML, Text
from openedx.core.djangolib.js_utils import (
dump_js_escaped_json, js_escaped_string

View File

@@ -7,7 +7,7 @@
from cms.djangoapps.contentstore import utils
from cms.djangoapps.contentstore.config.waffle_utils import should_show_checklists_quality
from django.urls import reverse
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _
from openedx.core.djangolib.markup import HTML, Text
from openedx.core.djangolib.js_utils import js_escaped_string, dump_js_escaped_json
from common.djangoapps.util.course import has_certificates_enabled

View File

@@ -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'/>
<div class="wrapper wrapper-component-action-header">

View File

@@ -9,7 +9,7 @@ else:
%>
</%def>
<%!
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _
from cms.djangoapps.contentstore.views.helpers import xblock_studio_url, xblock_type_display_name
from openedx.core.djangolib.js_utils import (

View File

@@ -2,7 +2,7 @@
<%inherit file="base.html" />
<%def name="online_help_token()"><% return "course_rerun" %></%def>
<%!
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 js_escaped_string
%>

View File

@@ -3,7 +3,7 @@
<%def name="online_help_token()"><% return "updates" %></%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
)

View File

@@ -8,7 +8,7 @@ from six.moves.urllib.parse import quote
from cms.djangoapps.contentstore.config.waffle_utils import should_show_checklists_quality
from common.djangoapps.util.date_utils import get_default_time_display
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _
from openedx.core.djangolib.js_utils import js_escaped_string, dump_js_escaped_json
from openedx.core.djangolib.markup import HTML, Text
from django.urls import reverse

View File

@@ -3,7 +3,7 @@
<%def name="online_help_token()"><% return "pages" %></%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 xmodule.tabs import StaticTab
from openedx.core.djangolib.js_utils import js_escaped_string

View File

@@ -1,7 +1,7 @@
<%page expression_filter="h"/>
<%inherit file="base.html" />
<%!
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _
from django.urls import reverse
from django.conf import settings
from openedx.core.djangolib.markup import Text

View File

@@ -11,7 +11,7 @@ else:
<%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.markup import HTML, Text
from openedx.core.djangolib.js_utils import (
dump_js_escaped_json, js_escaped_string

View File

@@ -6,7 +6,7 @@
import six
from django.urls import reverse
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _
%>
<%block name="title">${_("Export Course to Git")}</%block>
<%block name="bodyclass">is-signedin course tools view-export-git</%block>

View File

@@ -6,7 +6,7 @@
<%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 import utils
from lms.djangoapps.certificates.api import can_show_certificate_available_date_field
from openedx.core.djangolib.js_utils import (

View File

@@ -5,7 +5,7 @@
<%!
import six
from six.moves.urllib.parse import quote
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _
from cms.djangoapps.contentstore import utils
from openedx.core.djangolib.js_utils import (
dump_js_escaped_json, js_escaped_string

View File

@@ -10,7 +10,7 @@
from six.moves.urllib.parse import quote
import json
from cms.djangoapps.contentstore import utils
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _
from cms.djangoapps.models.settings.encoder import CourseSettingsEncoder
from openedx.core.djangolib.js_utils import (
dump_js_escaped_json, js_escaped_string

View File

@@ -1,6 +1,6 @@
<%page expression_filter="h"/>
<%!
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _
from cms.djangoapps.contentstore.views.helpers import xblock_studio_url
from cms.djangoapps.contentstore.utils import is_visible_to_specific_partition_groups
from lms.lib.utils import is_unit