From 077409acbf60e8bd7a6d0a7d009aedfc7790c60a Mon Sep 17 00:00:00 2001 From: kyw504100 Date: Tue, 8 Feb 2022 19:44:11 +0800 Subject: [PATCH] more hardcoded strings --- src/i18n/en_US.jsonc | 4 ++++ src/renderer/index.js | 4 ++-- src/renderer/views/pages/settings.ejs | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/i18n/en_US.jsonc b/src/i18n/en_US.jsonc index 63a648c4..b4369a35 100644 --- a/src/i18n/en_US.jsonc +++ b/src/i18n/en_US.jsonc @@ -135,6 +135,8 @@ "term.addedpreset": "Added Preset", "term.deletepreset.warn": "Are you sure you want to delete this preset?", "term.deletedpreset": "Removed preset", + "term.requestError": "There was a problem with the request.", + "term.song.link.generate": "Getting song.link share URL...", "term.musicVideos": "Music Videos", // Search page friendlyTypes "term.stations": "Stations", "term.curators": "Curators", @@ -253,6 +255,7 @@ "settings.option.audio.enableAdvancedFunctionality.description": "Enabling AudioContext functionality will allow for extended audio features like Audio Normalization , Equalizers and Visualizers, however on some systems this may cause stuttering in audio tracks.", "settings.option.audio.enableAdvancedFunctionality.ciderPPE": "Cider Adrenaline Processor™️", // Toggle "settings.option.audio.enableAdvancedFunctionality.ciderPPE.description": "Psychoacoustic Enhancements that makes everything sound both richer and more lively | Designed by Maikiwi.", + "settings.warn.audio.enableAdvancedFunctionality.ciderPPE.compatibility": "CAP is not compatible with Spatialization. Please disable Spatialization to continue.", "settings.option.audio.enableAdvancedFunctionality.ciderPPEStrength": "CAP Strength", // Toggle "settings.option.audio.enableAdvancedFunctionality.ciderPPEStrength.description": "Changes the strength of the processing done to the audio. (Aggressive may yield undesirable results)", "settings.option.audio.enableAdvancedFunctionality.ciderPPEStrength.standard": "Standard", @@ -261,6 +264,7 @@ "settings.option.audio.enableAdvancedFunctionality.audioNormalization.description": "Normalizes peak volume for individual tracks to create a more uniform listening experience.", "settings.option.audio.enableAdvancedFunctionality.audioSpatialization": "Audio Spatialization", // Toggle "settings.option.audio.enableAdvancedFunctionality.audioSpatialization.description": "Spatialize audio and make audio more 3-dimensional (note: This is not Dolby Atmos)", + "settings.warn.audio.enableAdvancedFunctionality.audioSpatialization.compatibility": "Spatialization is not compatible with CAP. Please disable CAP to continue.", // Settings - Visual "settings.header.visual": "Visual", diff --git a/src/renderer/index.js b/src/renderer/index.js index 1752ee50..5a052a96 100644 --- a/src/renderer/index.js +++ b/src/renderer/index.js @@ -272,7 +272,7 @@ const app = new Vue({ }, methods: { songLinkShare(amUrl) { - notyf.open({type: "info", message: "Getting song.link share URL..."}) + notyf.open({type: "info", message: app.getLz('term.song.link.generate')}) let self = this httpRequest = new XMLHttpRequest(); httpRequest.open('GET', `https://api.song.link/v1-alpha.1/links?url=${amUrl}&userCountry=US`, true); @@ -285,7 +285,7 @@ const app = new Vue({ self.copyToClipboard(response.pageUrl) } else { console.log('There was a problem with the request.'); - notyf.error("There was a problem with the request.") + notyf.error(app.getLz('term.requestError')) } } } diff --git a/src/renderer/views/pages/settings.ejs b/src/renderer/views/pages/settings.ejs index 0ed575bc..8c856a12 100644 --- a/src/renderer/views/pages/settings.ejs +++ b/src/renderer/views/pages/settings.ejs @@ -824,7 +824,7 @@ if (app.cfg.advanced.ciderPPE) { if (app.cfg.audio.spatial) { app.cfg.advanced.ciderPPE = false; - notyf.error("CAP is not compatible with Spatialization. Please disable Spatialization to continue.") + notyf.error(app.getLz('settings.warn.audio.enableAdvancedFunctionality.ciderPPE.compatibility')) } } }, @@ -836,7 +836,7 @@ else { CiderAudio.spatialOff() app.cfg.audio.spatial = false; - notyf.error("Spatialization is not compatible with CAP. Please disable CAP to continue.") + notyf.error(app.getLz('settings.warn.audio.enableAdvancedFunctionality.audioSpatialization.compatibility')) } } else { CiderAudio.spatialOff()