Fixed gettext references.
TNL-1862
This commit is contained in:
committed by
Andy Armstrong
parent
da57b13b6d
commit
6b91ab4e2b
@@ -37,10 +37,7 @@
|
||||
model: userAccountModel,
|
||||
title: gettext('Full Name'),
|
||||
valueAttribute: 'name',
|
||||
helpMessage: gettext(
|
||||
'The name that appears on your edX certificates. Other learners never see ' +
|
||||
'your full name.'
|
||||
)
|
||||
helpMessage: gettext('The name that appears on your edX certificates. Other learners never see your full name.')
|
||||
})
|
||||
},
|
||||
{
|
||||
@@ -48,10 +45,7 @@
|
||||
model: userAccountModel,
|
||||
title: gettext('Email Address'),
|
||||
valueAttribute: 'email',
|
||||
helpMessage: gettext(
|
||||
'The email address you use to sign in to edX. Communications ' +
|
||||
'from edX and your courses are sent to this address.'
|
||||
)
|
||||
helpMessage: gettext('The email address you use to sign in to edX. Communications from edX and your courses are sent to this address.')
|
||||
})
|
||||
},
|
||||
{
|
||||
@@ -62,24 +56,19 @@
|
||||
valueAttribute: 'password',
|
||||
emailAttribute: 'email',
|
||||
linkTitle: gettext('Reset Password'),
|
||||
linkHref: fieldsData['password']['url'],
|
||||
helpMessage: gettext(
|
||||
'When you click "Reset Password", a message will be sent to your email address. ' +
|
||||
'Click the link in the message to reset your password.'
|
||||
)
|
||||
linkHref: fieldsData.password.url,
|
||||
helpMessage: gettext('When you click "Reset Password", a message will be sent to your email address. Click the link in the message to reset your password.')
|
||||
})
|
||||
},
|
||||
{
|
||||
view: new AccountSettingsFieldViews.LanguagePreferenceFieldView({
|
||||
model: userPreferencesModel,
|
||||
title: 'Language',
|
||||
title: gettext('Language'),
|
||||
valueAttribute: 'pref-lang',
|
||||
required: true,
|
||||
refreshPageOnSave: true,
|
||||
helpMessage: gettext(
|
||||
'The language used for the edX site. The site is currently available in a ' +
|
||||
'limited number of languages.'
|
||||
),
|
||||
helpMessage:
|
||||
gettext('The language used for the edX site. The site is currently available in a limited number of languages.'),
|
||||
options: fieldsData.language.options
|
||||
})
|
||||
},
|
||||
|
||||
@@ -95,10 +95,7 @@
|
||||
editable: editable,
|
||||
showMessages: false,
|
||||
title: gettext('About me'),
|
||||
placeholderValue: gettext(
|
||||
"Tell other edX learners a little about yourself: where you live, what your interests are, " +
|
||||
"why you're taking courses on edX, or what you hope to learn."
|
||||
),
|
||||
placeholderValue: gettext("Tell other edX learners a little about yourself: where you live, what your interests are, why you're taking courses on edX, or what you hope to learn."),
|
||||
valueAttribute: "bio",
|
||||
helpMessage: ''
|
||||
})
|
||||
|
||||
@@ -19,18 +19,12 @@
|
||||
var accountSettingsLink = '<a href="' + this.options.accountSettingsPageUrl + '">' + gettext('Account Settings page.') + '</a>';
|
||||
if (this.profileIsPrivate) {
|
||||
this._super(interpolate_text(
|
||||
gettext(
|
||||
"You must specify your birth year before you can share your full profile. To specify " +
|
||||
"your birth year, go to the {account_settings_page_link}"
|
||||
),
|
||||
gettext("You must specify your birth year before you can share your full profile. To specify your birth year, go to the {account_settings_page_link}"),
|
||||
{'account_settings_page_link': accountSettingsLink}
|
||||
));
|
||||
} else if (this.requiresParentalConsent) {
|
||||
this._super(interpolate_text(
|
||||
gettext(
|
||||
'You must be over 13 to share a full profile. If you are over 13, make sure that you ' +
|
||||
'have specified a birth year on the {account_settings_page_link}'
|
||||
),
|
||||
gettext('You must be over 13 to share a full profile. If you are over 13, make sure that you have specified a birth year on the {account_settings_page_link}'),
|
||||
{'account_settings_page_link': accountSettingsLink}
|
||||
));
|
||||
}
|
||||
@@ -55,7 +49,9 @@
|
||||
},
|
||||
|
||||
imageAltText: function () {
|
||||
return interpolate_text(gettext("Profile image for {username}"), {username: this.model.get('username')});
|
||||
return interpolate_text(
|
||||
gettext("Profile image for {username}"), {username: this.model.get('username')}
|
||||
);
|
||||
},
|
||||
|
||||
imageChangeSucceeded: function (e, data) {
|
||||
|
||||
@@ -20,12 +20,12 @@
|
||||
tagName: 'div',
|
||||
|
||||
indicators: {
|
||||
'canEdit': '<i class="icon fa fa-pencil message-can-edit" aria-hidden="true"></i><span class="sr">gettext("Editable")</span>',
|
||||
'error': '<i class="fa fa-exclamation-triangle message-error" aria-hidden="true"></i><span class="sr">gettext("Error")</span>',
|
||||
'validationError': '<i class="fa fa-exclamation-triangle message-validation-error" aria-hidden="true"></i><span class="sr">gettext("Validation Error")</span>',
|
||||
'inProgress': '<i class="fa fa-spinner fa-pulse message-in-progress" aria-hidden="true"></i><span class="sr">gettext("In Progress")</span>',
|
||||
'success': '<i class="fa fa-check message-success" aria-hidden="true"></i><span class="sr">gettext("Success")</span>',
|
||||
'plus': '<i class="fa fa-plus placeholder" aria-hidden="true"></i><span class="sr">gettext("Placeholder")</span>'
|
||||
'canEdit': '<i class="icon fa fa-pencil message-can-edit" aria-hidden="true"></i><span class="sr">' + gettext("Editable") + '</span>',
|
||||
'error': '<i class="fa fa-exclamation-triangle message-error" aria-hidden="true"></i><span class="sr">' + gettext("Error") + '</span>',
|
||||
'validationError': '<i class="fa fa-exclamation-triangle message-validation-error" aria-hidden="true"></i><span class="sr">' + gettext("Validation Error") + '</span>',
|
||||
'inProgress': '<i class="fa fa-spinner fa-pulse message-in-progress" aria-hidden="true"></i><span class="sr">' + gettext("In Progress") + '</span>',
|
||||
'success': '<i class="fa fa-check message-success" aria-hidden="true"></i><span class="sr">' + gettext("Success") + '</span>',
|
||||
'plus': '<i class="fa fa-plus placeholder" aria-hidden="true"></i><span class="sr">' + gettext("Placeholder")+ '</span>'
|
||||
},
|
||||
|
||||
messages: {
|
||||
@@ -711,18 +711,14 @@
|
||||
onBeforeUnload: function () {
|
||||
var status = this.getCurrentStatus();
|
||||
if (status === 'uploading') {
|
||||
return gettext(
|
||||
"Upload is in progress. To avoid errors, stay on this page until the process is complete."
|
||||
);
|
||||
return gettext("Upload is in progress. To avoid errors, stay on this page until the process is complete.");
|
||||
} else if (status === 'removing') {
|
||||
return gettext(
|
||||
"Removal is in progress. To avoid errors, stay on this page until the process is complete."
|
||||
);
|
||||
return gettext("Removal is in progress. To avoid errors, stay on this page until the process is complete.");
|
||||
}
|
||||
},
|
||||
|
||||
bytesToHumanReadable: function (size) {
|
||||
var units = ['bytes', 'KB', 'MB'];
|
||||
var units = [gettext('bytes'), gettext('KB'), gettext('MB')];
|
||||
var i = 0;
|
||||
while(size >= 1024) {
|
||||
size /= 1024;
|
||||
|
||||
Reference in New Issue
Block a user