diff --git a/src/i18n/en_US.json b/src/i18n/en_US.json index 686575d5..88683bf5 100644 --- a/src/i18n/en_US.json +++ b/src/i18n/en_US.json @@ -117,6 +117,10 @@ "term.equalizer": "Equalizer", "term.reset": "Reset", "term.tracks": "tracks", + "term.track": { + "one" : "track", + "other" : "tracks" + }, "term.videos": "Videos", "term.menu": "Menu", "term.check": "Check", diff --git a/src/renderer/index.js b/src/renderer/index.js index 767557b5..e0057fb7 100644 --- a/src/renderer/index.js +++ b/src/renderer/index.js @@ -1373,7 +1373,9 @@ const app = new Vue({ const longFormat = [] // Seconds - longFormat.push(`${datetime.getSeconds()} ${app.getLz('term.time.second', options = {count: datetime.getSeconds()})}`) + if (datetime.getSeconds() !== 0) { + longFormat.push(`${datetime.getSeconds()} ${app.getLz('term.time.seconds')}`) + } // Minutes if (time >= 60) { @@ -2356,7 +2358,7 @@ const app = new Vue({ try { if (app.showingPlaylist.relationships.tracks.data.length > 0) { const timeInSeconds = Math.round([].concat(...app.showingPlaylist.relationships.tracks.data).reduce((a, {attributes: {durationInMillis}}) => a + durationInMillis, 0) / 1000); - return `${app.showingPlaylist.relationships.tracks.data.length} ${app.getLz('term.tracks', options = {count: app.showingPlaylist.relationships.tracks.data.length})}, ${this.convertTime(timeInSeconds, 'long')}` + return `${app.showingPlaylist.relationships.tracks.data.length} ${app.getLz('term.track', options = {count: app.showingPlaylist.relationships.tracks.data.length})}, ${this.convertTime(timeInSeconds, 'long')}` } else return "" } catch (err) { return ""