From 127c628afdd3cd1b1419e60a2b3edd98d0202fb0 Mon Sep 17 00:00:00 2001 From: vapormusic Date: Sat, 12 Feb 2022 11:15:46 +0700 Subject: [PATCH] "get-i18n" --- src/i18n/en_US.jsonc | 8 ++++---- src/renderer/index.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/i18n/en_US.jsonc b/src/i18n/en_US.jsonc index eb451e89..fc16c0c1 100644 --- a/src/i18n/en_US.jsonc +++ b/src/i18n/en_US.jsonc @@ -125,10 +125,10 @@ "term.equalizer": "Equalizer", "term.reset": "Reset", // Example for multiple plural forms : look up the key for your language in https://github.com/prantlf/fast-plural-rules/blob/master/docs/languages.md#supported-languages - "term.track": { - "one" : "track", - "other" : "tracks" - }, + // "term.track": { + // "one" : "track", + // "other" : "tracks" + // }, "term.tracks": "tracks", // Assume x amount of tracks. e.g. 50 tracks "term.videos": "Videos", "term.menu": "Menu", diff --git a/src/renderer/index.js b/src/renderer/index.js index 98fca0d3..f4d1aaa4 100644 --- a/src/renderer/index.js +++ b/src/renderer/index.js @@ -2153,7 +2153,7 @@ const app = new Vue({ let hours = Math.floor(time / 3600) let mins = Math.floor(time / 60) % 60 let secs = time % 60 - return app.showingPlaylist.relationships.tracks.data.length + " " + app.getLz('term.track', options = {count : app.showingPlaylist.relationships.tracks.data.length}) + ", " + return app.showingPlaylist.relationships.tracks.data.length + " " + app.getLz('term.tracks', options = {count : app.showingPlaylist.relationships.tracks.data.length}) + ", " + ((hours > 0) ? (hours + (" " + (app.getLz('term.time.hour', options = {count : hours}) + ", "))) : "") + ((mins > 0) ? (mins + (" " + app.getLz('term.time.minute', options = {count : mins}) + ", ")) : "") + secs + (" " + app.getLz('term.time.second', options = {count : secs}) + ".");