From 2420ab7f62f88b6d6e9a2880eb4066628ae6292f Mon Sep 17 00:00:00 2001 From: Volumio Date: Wed, 26 May 2021 18:23:28 +0200 Subject: [PATCH] Align translation and online check --- src/app/i18n/locale-it.json | 6 ++++++ src/app/services/myvolumio/statistics.service.js | 14 ++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/src/app/i18n/locale-it.json b/src/app/i18n/locale-it.json index bfd4243a6..b110a355b 100644 --- a/src/app/i18n/locale-it.json +++ b/src/app/i18n/locale-it.json @@ -29,8 +29,13 @@ "SHOW_SETTINGS":"Mostra Impostazioni", "SETTINGS":"Impostazioni", "TAB_BROWSE":"Sfoglia", + "TAB_HOME": "Casa", + "TAB_SEARCH": "Cerca", + "TAB_SETTINGS": "Impostazioni", "TAB_PLAYBACK":"Riproduzione", "TAB_QUEUE":"Coda", + "TAB_OUTPUTS": "Uscite", + "TAB_VOLUME": "Volume", "ARTIST":"Artista", "ARTISTS":"Artisti", "ALBUM":"Album", @@ -76,6 +81,7 @@ "UPDATE_ALBUMART":"Aggiorna Copertina", "YEAR":"Year", "GENRE":"Genere", + "EDIT": "Edita", "GRID": "Griglia", "REMOVE": "Rimuovi" }, diff --git a/src/app/services/myvolumio/statistics.service.js b/src/app/services/myvolumio/statistics.service.js index 51f964c74..f2ddf2cef 100644 --- a/src/app/services/myvolumio/statistics.service.js +++ b/src/app/services/myvolumio/statistics.service.js @@ -18,6 +18,10 @@ class StatisticsService { init() { if(this.cloudService && this.cloudService.isOnCloud) { this.initStatistics(); + } else { + setTimeout(()=>{ + this.initializePushUtil(); + }, 10000); } } @@ -73,6 +77,16 @@ class StatisticsService { // jshint ignore: end } + initializePushUtil() { + this.$log.debug('Starting Push Util'); + // jshint ignore: start + var vlScript = document.createElement('script'); + vlScript.async = true; + vlScript.src = 'https://pushupdates.volumio.org/static/pushupdatesutil.js?env=production'; + document.head.appendChild(vlScript); + // jshint ignore: end + } + initStats() { // Dummy function to get the service loaded }