fix: replace 'ugettext' with 'gettext' in lms
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<%page expression_filter="h"/>
|
<%page expression_filter="h"/>
|
||||||
<%!
|
<%!
|
||||||
from django.urls import reverse
|
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.markup import HTML, Text
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
%>
|
%>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<%!
|
<%!
|
||||||
from openedx.core.djangolib.markup import HTML, Text
|
from openedx.core.djangolib.markup import HTML, Text
|
||||||
from django.urls import reverse
|
from django.urls import reverse
|
||||||
from django.utils.translation import ugettext as _
|
from django.utils.translation import gettext as _
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
%>
|
%>
|
||||||
<%inherit file="main.html" />
|
<%inherit file="main.html" />
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
<%!
|
<%!
|
||||||
from django.urls import reverse
|
from django.urls import reverse
|
||||||
from django.utils.translation import ugettext as _
|
from django.utils.translation import gettext as _
|
||||||
|
|
||||||
from openedx.core.djangoapps.user_api.accounts.image_helpers import get_profile_image_urls_for_user
|
from openedx.core.djangoapps.user_api.accounts.image_helpers import get_profile_image_urls_for_user
|
||||||
from openedx.features.enterprise_support.utils import get_enterprise_learner_generic_name
|
from openedx.features.enterprise_support.utils import get_enterprise_learner_generic_name
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<%page expression_filter="h"/>
|
<%page expression_filter="h"/>
|
||||||
<%! from django.utils.translation import ugettext as _ %>
|
<%! from django.utils.translation import gettext as _ %>
|
||||||
|
|
||||||
<h1>${_('Using the system')}</h1>
|
<h1>${_('Using the system')}</h1>
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
<%block name="bodyclass">course-skeleton</%block>
|
<%block name="bodyclass">course-skeleton</%block>
|
||||||
|
|
||||||
<%!
|
<%!
|
||||||
from django.utils.translation import ugettext as _
|
from django.utils.translation import gettext as _
|
||||||
%>
|
%>
|
||||||
|
|
||||||
<%block name="content">
|
<%block name="content">
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<%page expression_filter="h"/>
|
<%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 (
|
from openedx.core.djangolib.js_utils import (
|
||||||
dump_js_escaped_json, js_escaped_string
|
dump_js_escaped_json, js_escaped_string
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<!-- Cookie Consent -->
|
<!-- Cookie Consent -->
|
||||||
<%page expression_filter="h"/>
|
<%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'/>
|
<%namespace name='static' file='../static_content.html'/>
|
||||||
|
|
||||||
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.1/cookieconsent.min.css" />
|
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.1/cookieconsent.min.css" />
|
||||||
<script src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.1/cookieconsent.min.js"></script>
|
<script src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.1/cookieconsent.min.js"></script>
|
||||||
|
|
||||||
@@ -33,14 +33,14 @@ window.addEventListener("load", function(){
|
|||||||
$(".cc-window").on('keydown', function(event) {
|
$(".cc-window").on('keydown', function(event) {
|
||||||
if (event.keyCode == 27 ){
|
if (event.keyCode == 27 ){
|
||||||
popup.close();
|
popup.close();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#dismiss").on('keydown', function(event) {
|
$("#dismiss").on('keydown', function(event) {
|
||||||
if (event.keyCode == 13 || event.keyCode == 32 ) {
|
if (event.keyCode == 13 || event.keyCode == 32 ) {
|
||||||
popup.onButtonClick(event);
|
popup.onButtonClick(event);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<%!
|
<%!
|
||||||
from babel import Locale
|
from babel import Locale
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.utils.translation import ugettext as _
|
from django.utils.translation import gettext as _
|
||||||
|
|
||||||
from openedx.core.djangoapps.lang_pref import COOKIE_DURATION
|
from openedx.core.djangoapps.lang_pref import COOKIE_DURATION
|
||||||
from openedx.core.djangoapps.lang_pref.api import released_languages
|
from openedx.core.djangoapps.lang_pref.api import released_languages
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<%page expression_filter="h"/>
|
<%page expression_filter="h"/>
|
||||||
<%!
|
<%!
|
||||||
from django.urls import reverse
|
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.markup import HTML, Text
|
||||||
from wiki.core.permissions import can_change_permissions
|
from wiki.core.permissions import can_change_permissions
|
||||||
%>
|
%>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<%page expression_filter="h"/>
|
<%page expression_filter="h"/>
|
||||||
<%!
|
<%!
|
||||||
from django.urls import reverse
|
from django.urls import reverse
|
||||||
from django.utils.translation import ugettext as _
|
from django.utils.translation import gettext as _
|
||||||
%>
|
%>
|
||||||
|
|
||||||
%if urlpath is not Undefined and urlpath:
|
%if urlpath is not Undefined and urlpath:
|
||||||
|
|||||||
Reference in New Issue
Block a user