Skip to content

Commit 6cf0ef3

Browse files
authored
Merge pull request #906 from dpalou/MOBILE-1977
MOBILE-1977 core: Translate Ionic back button
2 parents 157d8ae + 934eaec commit 6cf0ef3

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

www/core/lang/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"allparticipants": "All participants",
44
"android": "Android",
55
"areyousure": "Are you sure?",
6+
"back": "Back",
67
"cancel": "Cancel",
78
"cannotconnect": "Cannot connect: Verify that you have typed correctly the URL and that your site uses Moodle 2.4 or later.",
89
"cannotdownloadfiles": "File downloading is disabled in your Mobile service. Please, contact your site administrator.",

www/core/lang/es.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"allparticipants": "Todos los participantes",
44
"android": "Android",
55
"areyousure": "¿Està seguro?",
6+
"back": "Atrás",
67
"cancel": "Cancelar",
78
"cannotconnect": "No se puede conectar: Verifique que la URL es correcta y que el sitio Moodle usa la versión 2.4 o posterior.",
89
"cannotdownloadfiles": "La descarga de archivos está deshabilitada en su servicio Mobile. Por favor contacte al administrador de su sitio.",

www/core/main.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ angular.module('mm.core', ['pascalprecht.translate'])
4545
// Use JS scrolling.
4646
$ionicConfigProvider.scrolling.jsScrolling(true);
4747

48+
// Translate back button (it's only shown in iOS and browser).
49+
if (!ionic.Platform.isAndroid()) {
50+
$ionicConfigProvider.backButton.text("{{'mm.core.back' | translate}}");
51+
}
52+
4853
// Decorate $ionicPlatform.
4954
$provide.decorator('$ionicPlatform', ['$delegate', '$window', function($delegate, $window) {
5055
$delegate.isTablet = function() {

0 commit comments

Comments
 (0)