Modify reset button and invalid credential error text

This commit is contained in:
Mushtaq Ali
2017-11-03 18:50:51 +05:00
parent e89c3dd3ee
commit 9d40404206
4 changed files with 6 additions and 6 deletions

View File

@@ -69,7 +69,7 @@ class TranscriptCredentialsTest(CourseTestCase):
},
({'error_type': TranscriptionProviderErrorType.INVALID_CREDENTIALS}, False),
400,
'{\n "error": "Transcript credentials are not valid."\n}'
'{\n "error": "The information you entered is incorrect."\n}'
),
(
{

View File

@@ -103,7 +103,7 @@ def transcript_credentials_handler(request, course_key_string):
# edx-video-pipeline doesn't support i18n translations yet.
error_type = error_response.get('error_type')
if error_type == TranscriptionProviderErrorType.INVALID_CREDENTIALS:
error_message = _('Transcript credentials are not valid.')
error_message = _('The information you entered is incorrect.')
response = JsonResponse({'error': error_message}, status=400)

View File

@@ -1,6 +1,6 @@
<button class='button-link action-cancel-course-video-settings' aria-describedby='cancel-button-text'>
<%- gettext('Reset') %>
<span id='cancel-button-text' class='sr'><%-gettext('Press reset to discard your changes.') %></span>
<%- gettext('Discard Changes') %>
<span id='cancel-button-text' class='sr'><%-gettext('Press discard changes to discard your changes.') %></span>
</button>
<button class='button action-update-org-credentials' aria-describedby='update-org-credentials-button-text'>
<%- gettext('Update Settings') %>

View File

@@ -1,6 +1,6 @@
<button class='button-link action-cancel-course-video-settings' aria-describedby='cancel-button-text'>
<%- gettext('Reset') %>
<span id='cancel-button-text' class='sr'><%-gettext('Press reset to discard changes.') %></span>
<%- gettext('Discard Changes') %>
<span id='cancel-button-text' class='sr'><%-gettext('Press discard changes to discard changes.') %></span>
</button>
<button class="button action-update-course-video-settings" aria-describedby='update-button-text'>
<%- gettext('Update Settings') %>