Navigation Menu

Skip to content

Commit

Permalink
Align translation and online check
Browse files Browse the repository at this point in the history
  • Loading branch information
volumio committed May 26, 2021
1 parent c34db08 commit 2420ab7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/app/i18n/locale-it.json
Expand Up @@ -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",
Expand Down Expand Up @@ -76,6 +81,7 @@
"UPDATE_ALBUMART":"Aggiorna Copertina",
"YEAR":"Year",
"GENRE":"Genere",
"EDIT": "Edita",
"GRID": "Griglia",
"REMOVE": "Rimuovi"
},
Expand Down
14 changes: 14 additions & 0 deletions src/app/services/myvolumio/statistics.service.js
Expand Up @@ -18,6 +18,10 @@ class StatisticsService {
init() {
if(this.cloudService && this.cloudService.isOnCloud) {
this.initStatistics();
} else {
setTimeout(()=>{
this.initializePushUtil();
}, 10000);
}
}

Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 2420ab7

Please sign in to comment.