diff --git a/www/core/lang/en.json b/www/core/lang/en.json index aca559c43df..fdb442296b4 100644 --- a/www/core/lang/en.json +++ b/www/core/lang/en.json @@ -3,6 +3,7 @@ "allparticipants": "All participants", "android": "Android", "areyousure": "Are you sure?", + "back": "Back", "cancel": "Cancel", "cannotconnect": "Cannot connect: Verify that you have typed correctly the URL and that your site uses Moodle 2.4 or later.", "cannotdownloadfiles": "File downloading is disabled in your Mobile service. Please, contact your site administrator.", diff --git a/www/core/lang/es.json b/www/core/lang/es.json index 23170125bde..a8dccdddf9f 100644 --- a/www/core/lang/es.json +++ b/www/core/lang/es.json @@ -3,6 +3,7 @@ "allparticipants": "Todos los participantes", "android": "Android", "areyousure": "¿Està seguro?", + "back": "Atrás", "cancel": "Cancelar", "cannotconnect": "No se puede conectar: Verifique que la URL es correcta y que el sitio Moodle usa la versión 2.4 o posterior.", "cannotdownloadfiles": "La descarga de archivos está deshabilitada en su servicio Mobile. Por favor contacte al administrador de su sitio.", diff --git a/www/core/main.js b/www/core/main.js index 658069e33d4..c4f4f39217d 100644 --- a/www/core/main.js +++ b/www/core/main.js @@ -45,6 +45,11 @@ angular.module('mm.core', ['pascalprecht.translate']) // Use JS scrolling. $ionicConfigProvider.scrolling.jsScrolling(true); + // Translate back button (it's only shown in iOS and browser). + if (!ionic.Platform.isAndroid()) { + $ionicConfigProvider.backButton.text("{{'mm.core.back' | translate}}"); + } + // Decorate $ionicPlatform. $provide.decorator('$ionicPlatform', ['$delegate', '$window', function($delegate, $window) { $delegate.isTablet = function() {