-
{{ 'mm.login.policyagreement' | translate }}
+
{{ 'core.login.policyagreement' | translate }}
- {{ 'mm.login.policyagreementclick' | translate }}
+ {{ 'core.login.policyagreementclick' | translate }}
- {{ 'mm.login.policyaccept' | translate }}
+ {{ 'core.login.policyaccept' | translate }}
@@ -114,7 +114,7 @@
-
+
diff --git a/src/core/login/pages/email-signup/email-signup.ts b/src/core/login/pages/email-signup/email-signup.ts
index 93cd7489e..cd87027c3 100644
--- a/src/core/login/pages/email-signup/email-signup.ts
+++ b/src/core/login/pages/email-signup/email-signup.ts
@@ -68,11 +68,11 @@ export class CoreLoginEmailSignupPage {
});
// Setup validation errors.
- this.usernameErrors = this.loginHelper.getErrorMessages('mm.login.usernamerequired');
- this.passwordErrors = this.loginHelper.getErrorMessages('mm.login.passwordrequired');
- this.emailErrors = this.loginHelper.getErrorMessages('mm.login.missingemail');
- this.email2Errors = this.loginHelper.getErrorMessages('mm.login.missingemail', null, 'mm.login.emailnotmatch');
- this.policyErrors = this.loginHelper.getErrorMessages('mm.login.policyagree');
+ this.usernameErrors = this.loginHelper.getErrorMessages('core.login.usernamerequired');
+ this.passwordErrors = this.loginHelper.getErrorMessages('core.login.passwordrequired');
+ this.emailErrors = this.loginHelper.getErrorMessages('core.login.missingemail');
+ this.email2Errors = this.loginHelper.getErrorMessages('core.login.missingemail', null, 'core.login.emailnotmatch');
+ this.policyErrors = this.loginHelper.getErrorMessages('core.login.policyagree');
}
/**
@@ -139,7 +139,7 @@ export class CoreLoginEmailSignupPage {
this.namefieldsErrors = {};
if (settings.namefields) {
settings.namefields.forEach((field) => {
- this.namefieldsErrors[field] = this.loginHelper.getErrorMessages('mm.login.missing' + field);
+ this.namefieldsErrors[field] = this.loginHelper.getErrorMessages('core.login.missing' + field);
});
}
@@ -162,7 +162,7 @@ export class CoreLoginEmailSignupPage {
return true;
} else {
this.domUtils.showErrorModal(
- this.translate.instant('mm.login.signupplugindisabled', {$a: this.translate.instant('mm.login.auth_email')}));
+ this.translate.instant('core.login.signupplugindisabled', {$a: this.translate.instant('core.login.auth_email')}));
this.navCtrl.pop();
return false;
}
@@ -203,7 +203,7 @@ export class CoreLoginEmailSignupPage {
// Form not valid. Scroll to the first element with errors.
if (!this.domUtils.scrollToInputError(this.content, document.body)) {
// Input not found, show an error modal.
- this.domUtils.showErrorModal('mm.core.errorinvalidform', true);
+ this.domUtils.showErrorModal('core.errorinvalidform', true);
}
} else {
let params: any = {
@@ -215,7 +215,7 @@ export class CoreLoginEmailSignupPage {
city: this.textUtils.cleanTags(this.signupForm.value.city),
country: this.signupForm.value.country
},
- modal = this.domUtils.showModalLoading('mm.core.sending', true);
+ modal = this.domUtils.showModalLoading('core.sending', true);
if (this.siteConfig.launchurl) {
let service = this.sitesProvider.determineService(this.siteUrl);
@@ -235,21 +235,21 @@ export class CoreLoginEmailSignupPage {
this.wsProvider.callAjax('auth_email_signup_user', params, {siteUrl: this.siteUrl}).then((result) => {
if (result.success) {
// Show alert and ho back.
- let message = this.translate.instant('mm.login.emailconfirmsent', {$a: params.email});
- this.domUtils.showAlert('mm.core.success', message);
+ let message = this.translate.instant('core.login.emailconfirmsent', {$a: params.email});
+ this.domUtils.showAlert('core.success', message);
this.navCtrl.pop();
} else {
if (result.warnings && result.warnings.length) {
this.domUtils.showErrorModal(result.warnings[0].message);
} else {
- this.domUtils.showErrorModal('mm.login.usernotaddederror', true);
+ this.domUtils.showErrorModal('core.login.usernotaddederror', true);
}
// Error sending, request another capctha since the current one is probably invalid now.
this.requestCaptcha(true);
}
}).catch((error) => {
- this.domUtils.showErrorModalDefault(error && error.error, 'mm.login.usernotaddederror', true);
+ this.domUtils.showErrorModalDefault(error && error.error, 'core.login.usernotaddederror', true);
// Error sending, request another capctha since the current one is probably invalid now.
this.requestCaptcha(true);
@@ -263,6 +263,6 @@ export class CoreLoginEmailSignupPage {
* Show authentication instructions.
*/
protected showAuthInstructions() {
- this.textUtils.expandText(this.translate.instant('mm.login.instructions'), this.authInstructions, true);
+ this.textUtils.expandText(this.translate.instant('core.login.instructions'), this.authInstructions, true);
}
}
diff --git a/src/core/login/pages/forgotten-password/forgotten-password.html b/src/core/login/pages/forgotten-password/forgotten-password.html
index 29cb8052b..0778e033a 100644
--- a/src/core/login/pages/forgotten-password/forgotten-password.html
+++ b/src/core/login/pages/forgotten-password/forgotten-password.html
@@ -1,32 +1,32 @@
- {{ 'mm.login.passwordforgotten' | translate }}
+ {{ 'core.login.passwordforgotten' | translate }}
- {{ 'mm.login.passwordforgotteninstructions2' | translate }}
+ {{ 'core.login.passwordforgotteninstructions2' | translate }}
diff --git a/src/core/login/pages/forgotten-password/forgotten-password.ts b/src/core/login/pages/forgotten-password/forgotten-password.ts
index f10f05f77..1b812040e 100644
--- a/src/core/login/pages/forgotten-password/forgotten-password.ts
+++ b/src/core/login/pages/forgotten-password/forgotten-password.ts
@@ -49,11 +49,11 @@ export class CoreLoginForgottenPasswordPage {
value = this.myForm.value.value;
if (!value) {
- this.domUtils.showErrorModal('mm.login.usernameoremail', true);
+ this.domUtils.showErrorModal('core.login.usernameoremail', true);
return;
}
- let modal = this.domUtils.showModalLoading('mm.core.sending', true),
+ let modal = this.domUtils.showModalLoading('core.sending', true),
isMail = field == 'email';
this.loginHelper.requestPasswordReset(this.siteUrl, isMail ? '' : value, isMail ? value : '').then((response) => {
@@ -65,7 +65,7 @@ export class CoreLoginForgottenPasswordPage {
this.domUtils.showErrorModal(response.notice);
} else {
// Success.
- this.domUtils.showAlert(this.translate.instant('mm.core.success'), response.notice);
+ this.domUtils.showAlert(this.translate.instant('core.success'), response.notice);
this.navCtrl.pop();
}
}).catch((error) => {
diff --git a/src/core/login/pages/reconnect/reconnect.html b/src/core/login/pages/reconnect/reconnect.html
index c6f800266..d4b9e386b 100644
--- a/src/core/login/pages/reconnect/reconnect.html
+++ b/src/core/login/pages/reconnect/reconnect.html
@@ -1,6 +1,6 @@
- {{ 'mm.login.reconnect' | translate }}
+ {{ 'core.login.reconnect' | translate }}
@@ -8,7 +8,7 @@
-
+
@@ -22,28 +22,28 @@
{{siteUrl}}
- {{ 'mm.login.reconnectdescription' | translate }}
+ {{ 'core.login.reconnectdescription' | translate }}
- {{ 'mm.login.username' | translate }}
+ {{ 'core.login.username' | translate }}
{{username}}
-
{{ 'mm.login.potentialidps' | translate }}
+
{{ 'core.login.potentialidps' | translate }}
{{provider.name}}
diff --git a/src/core/login/pages/reconnect/reconnect.ts b/src/core/login/pages/reconnect/reconnect.ts
index 162bb62d5..680f0c1f8 100644
--- a/src/core/login/pages/reconnect/reconnect.ts
+++ b/src/core/login/pages/reconnect/reconnect.ts
@@ -117,12 +117,12 @@ export class CoreLoginReconnectPage {
password = this.credForm.value.password;
if (!password) {
- this.domUtils.showErrorModal('mm.login.passwordrequired', true);
+ this.domUtils.showErrorModal('core.login.passwordrequired', true);
return;
}
if (!this.appProvider.isOnline()) {
- this.domUtils.showErrorModal('mm.core.networkerrormsg', true);
+ this.domUtils.showErrorModal('core.networkerrormsg', true);
return;
}
@@ -144,7 +144,7 @@ export class CoreLoginReconnectPage {
}
}).catch((error) => {
// Site deleted? Go back to login page.
- this.domUtils.showErrorModal('mm.login.errorupdatesite', true);
+ this.domUtils.showErrorModal('core.login.errorupdatesite', true);
this.cancel();
});
});
diff --git a/src/core/login/pages/site-error/site-error.html b/src/core/login/pages/site-error/site-error.html
index 071683560..fef796622 100644
--- a/src/core/login/pages/site-error/site-error.html
+++ b/src/core/login/pages/site-error/site-error.html
@@ -1,24 +1,24 @@
- {{ 'mm.core.error' | translate }}
+ {{ 'core.error' | translate }}
-
- {{ 'mm.core.whoops' | translate }}
- {{ 'mm.login.problemconnectingerror' | translate }}
+ {{ 'core.whoops' | translate }}
+ {{ 'core.login.problemconnectingerror' | translate }}
{{siteUrl}}
- {{ 'mm.login.problemconnectingerrorcontinue' | translate }}
- {{ 'mm.core.tryagain' | translate }}
- {{ 'mm.login.stillcantconnect' | translate }}
- {{ 'mm.login.contactyouradministrator' | translate }}
+ {{ 'core.login.problemconnectingerrorcontinue' | translate }}
+ {{ 'core.tryagain' | translate }}
+ {{ 'core.login.stillcantconnect' | translate }}
+ {{ 'core.login.contactyouradministrator' | translate }}
- {{ 'mm.login.contactyouradministratorissue' | translate:{$a: ''} }}
+ {{ 'core.login.contactyouradministratorissue' | translate:{$a: ''} }}
diff --git a/src/core/login/pages/site-help/site-help.html b/src/core/login/pages/site-help/site-help.html
index 639ad7440..9c9b4bdd4 100644
--- a/src/core/login/pages/site-help/site-help.html
+++ b/src/core/login/pages/site-help/site-help.html
@@ -1,14 +1,14 @@
- {{ 'mm.login.help' | translate }}
+ {{ 'core.login.help' | translate }}
-
+
-
+
diff --git a/src/core/login/pages/site-policy/site-policy.html b/src/core/login/pages/site-policy/site-policy.html
index dbcafdfd4..0b646391d 100644
--- a/src/core/login/pages/site-policy/site-policy.html
+++ b/src/core/login/pages/site-policy/site-policy.html
@@ -1,23 +1,23 @@
- {{ 'mm.login.policyagreement' | translate }}
+ {{ 'core.login.policyagreement' | translate }}
- {{ 'mm.login.policyagree' | translate }}
+ {{ 'core.login.policyagree' | translate }}
- {{ 'mm.login.policyagreementclick' | translate }}
+ {{ 'core.login.policyagreementclick' | translate }}
- {{ 'mm.login.policyaccept' | translate }}
- {{ 'mm.login.cancel' | translate }}
+ {{ 'core.login.policyaccept' | translate }}
+ {{ 'core.login.cancel' | translate }}
diff --git a/src/core/login/pages/site-policy/site-policy.ts b/src/core/login/pages/site-policy/site-policy.ts
index 1c051b005..c344efbec 100644
--- a/src/core/login/pages/site-policy/site-policy.ts
+++ b/src/core/login/pages/site-policy/site-policy.ts
@@ -103,7 +103,7 @@ export class CoreLoginSitePolicyPage {
* Accept the site policy.
*/
accept() : void {
- let modal = this.domUtils.showModalLoading('mm.core.sending', true);
+ let modal = this.domUtils.showModalLoading('core.sending', true);
this.loginHelper.acceptSitePolicy(this.siteId).then(() => {
// Success accepting, go to site initial page.
// Invalidate cache since some WS don't return error if site policy is not accepted.
diff --git a/src/core/login/pages/site/site.html b/src/core/login/pages/site/site.html
index 88afa3c4c..f62d3969c 100644
--- a/src/core/login/pages/site/site.html
+++ b/src/core/login/pages/site/site.html
@@ -1,9 +1,9 @@
- {{ 'mm.login.connecttomoodle' | translate }}
+ {{ 'core.login.connecttomoodle' | translate }}
-
+
@@ -18,9 +18,9 @@
-
{{ 'mm.login.newsitedescription' | translate }}
+
{{ 'core.login.newsitedescription' | translate }}
-
+
@@ -29,21 +29,21 @@
- {{ 'mm.login.selectsite' | translate }}
-
+ {{ 'core.login.selectsite' | translate }}
+
{{site.name}}
-
{{ 'mm.login.selectsite' | translate }}
+
{{ 'core.login.selectsite' | translate }}
{{site.name}}
- {{ 'mm.login.connect' | translate }}
+ {{ 'core.login.connect' | translate }}
diff --git a/src/core/login/pages/site/site.ts b/src/core/login/pages/site/site.ts
index ec1d9034f..26ff5b05d 100644
--- a/src/core/login/pages/site/site.ts
+++ b/src/core/login/pages/site/site.ts
@@ -58,12 +58,12 @@ export class CoreLoginSitePage {
this.appProvider.closeKeyboard();
if (!url) {
- this.domUtils.showErrorModal('mm.login.siteurlrequired', true);
+ this.domUtils.showErrorModal('core.login.siteurlrequired', true);
return;
}
if (!this.appProvider.isOnline()) {
- this.domUtils.showErrorModal('mm.core.networkerrormsg', true);
+ this.domUtils.showErrorModal('core.networkerrormsg', true);
return;
}
diff --git a/src/core/login/pages/sites/sites.html b/src/core/login/pages/sites/sites.html
index 138e2158b..cbab72da6 100644
--- a/src/core/login/pages/sites/sites.html
+++ b/src/core/login/pages/sites/sites.html
@@ -1,12 +1,12 @@
- {{ 'mm.settings.sites' | translate }}
+ {{ 'core.settings.sites' | translate }}
- 0" ion-button icon-only (click)="toggleDelete()" [attr.aria-label]="'mm.core.delete' | translate">
+ 0" ion-button icon-only (click)="toggleDelete()" [attr.aria-label]="'core.delete' | translate">
-
+
@@ -16,13 +16,13 @@
-
+
{{site.fullName}}
{{site.siteUrl}}
{{site.badge}}
-
+
diff --git a/src/core/login/pages/sites/sites.ts b/src/core/login/pages/sites/sites.ts
index cbbbc498d..d6ba555cd 100644
--- a/src/core/login/pages/sites/sites.ts
+++ b/src/core/login/pages/sites/sites.ts
@@ -101,7 +101,7 @@ export class CoreLoginSitesPage {
siteName = site.siteName;
this.textUtils.formatText(siteName).then((siteName) => {
- this.domUtils.showConfirm(this.translate.instant('mm.login.confirmdeletesite', {sitename: siteName})).then(() => {
+ this.domUtils.showConfirm(this.translate.instant('core.login.confirmdeletesite', {sitename: siteName})).then(() => {
this.sitesProvider.deleteSite(site.id).then(() => {
this.sites.splice(index, 1);
this.showDelete = false;
@@ -113,7 +113,7 @@ export class CoreLoginSitesPage {
}).catch((error) => {
this.logger.error('Error deleting site ' + site.id, error);
this.domUtils.showErrorModalDefault(error, 'Delete site failed.');
- this.domUtils.showErrorModal('mm.login.errordeletesite', true);
+ this.domUtils.showErrorModal('core.login.errordeletesite', true);
});
}).catch(() => {
// User cancelled, nothing to do.
diff --git a/src/core/login/providers/helper.ts b/src/core/login/providers/helper.ts
index 6a0fa8e32..100aebaef 100644
--- a/src/core/login/providers/helper.ts
+++ b/src/core/login/providers/helper.ts
@@ -130,7 +130,7 @@ export class CoreLoginHelperProvider {
return false;
}
- let modal = this.domUtils.showModalLoading('mm.login.authenticating', true),
+ let modal = this.domUtils.showModalLoading('core.login.authenticating', true),
siteData: CoreLoginSSOData;
// Wait for app to be ready.
@@ -198,7 +198,7 @@ export class CoreLoginHelperProvider {
promise;
if (showConfirmation) {
- promise = this.domUtils.showConfirm(this.translate.instant('mm.login.logininsiterequired'));
+ promise = this.domUtils.showConfirm(this.translate.instant('core.login.logininsiterequired'));
} else {
promise = Promise.resolve();
}
@@ -442,10 +442,10 @@ export class CoreLoginHelperProvider {
this.sitesProvider.updateSiteInfoByUrl(info.siteurl, info.username);
}).catch(() => {
// Error updating token, return proper error message.
- return Promise.reject(this.translate.instant('mm.login.errorupdatesite'));
+ return Promise.reject(this.translate.instant('core.login.errorupdatesite'));
});
}
- return Promise.reject(this.translate.instant('mm.login.errorupdatesite'));
+ return Promise.reject(this.translate.instant('core.login.errorupdatesite'));
} else {
return this.sitesProvider.newSite(siteUrl, token, privateToken);
}
@@ -667,7 +667,7 @@ export class CoreLoginHelperProvider {
if (this.isSSOEmbeddedBrowser(typeOfLogin)) {
let options = {
clearsessioncache: 'yes', // Clear the session cache to allow for multiple logins.
- closebuttoncaption: this.translate.instant('mm.login.cancel'),
+ closebuttoncaption: this.translate.instant('core.login.cancel'),
}
this.utils.openInApp(loginUrl, options);
} else {
@@ -685,7 +685,7 @@ export class CoreLoginHelperProvider {
* @param {string} error Error message.
*/
openChangePassword(siteUrl: string, error: string) : void {
- let alert = this.domUtils.showAlert(this.translate.instant('mm.core.notice'), error, null, 3000);
+ let alert = this.domUtils.showAlert(this.translate.instant('core.notice'), error, null, 3000);
alert.onDidDismiss(() => {
this.utils.openInApp(siteUrl + '/login/change_password.php');
});
@@ -728,7 +728,7 @@ export class CoreLoginHelperProvider {
}
// Open change password.
- alertMessage = this.translate.instant(alertMessage) + '
' + this.translate.instant('mm.core.redirectingtosite');
+ alertMessage = this.translate.instant(alertMessage) + '
' + this.translate.instant('core.redirectingtosite');
currentSite.openInAppWithAutoLogin(siteUrl + path, undefined, alertMessage).then(() => {
this.waitingForBrowser = true;
}).finally(() => {
@@ -823,7 +823,7 @@ export class CoreLoginHelperProvider {
this.isSSOConfirmShown = true;
if (this.shouldShowSSOConfirm(result.code)) {
- promise = this.domUtils.showConfirm(this.translate.instant('mm.login.' +
+ promise = this.domUtils.showConfirm(this.translate.instant('core.login.' +
(currentSite.isLoggedOut() ? 'loggedoutssodescription' : 'reconnectssodescription')));
} else {
promise = Promise.resolve();
@@ -857,7 +857,7 @@ export class CoreLoginHelperProvider {
// Error checking site.
if (currentSite.isLoggedOut()) {
// Site is logged out, show error and logout the user.
- this.domUtils.showErrorModalDefault(error, 'mm.core.networkerrormsg', true);
+ this.domUtils.showErrorModalDefault(error, 'core.networkerrormsg', true);
this.sitesProvider.logout();
}
});
@@ -966,7 +966,7 @@ export class CoreLoginHelperProvider {
} else {
this.logger.debug('Invalid signature in the URL request yours: ' + params[0] + ' mine: '
+ signature + ' for passport ' + passport);
- return Promise.reject(this.translate.instant('mm.core.unexpectederror'));
+ return Promise.reject(this.translate.instant('core.unexpectederror'));
}
});
}
diff --git a/src/core/viewer/pages/text/text.html b/src/core/viewer/pages/text/text.html
index ad4992298..dfb15aacb 100644
--- a/src/core/viewer/pages/text/text.html
+++ b/src/core/viewer/pages/text/text.html
@@ -3,7 +3,7 @@
{{ title }}
-
+
diff --git a/src/directives/format-text.ts b/src/directives/format-text.ts
index e6f9226ef..bf034f643 100644
--- a/src/directives/format-text.ts
+++ b/src/directives/format-text.ts
@@ -124,7 +124,7 @@ export class CoreFormatTextDirective implements OnInit {
if (imgWidth > elWidth) {
let imgSrc = this.textUtils.escapeHTML(img.getAttribute('src')),
- label = this.textUtils.escapeHTML(this.translate.instant('mm.core.openfullimage'));
+ label = this.textUtils.escapeHTML(this.translate.instant('core.openfullimage'));
// @todo: Implement image viewer. Maybe we can add the listener here directly?
container.innerHTML += '' + this.translate.instant('mm.core.showmore') + ' ';
+ this.element.innerHTML += '