From 68762d80122e749c7ad58ac17f58394fb594bef0 Mon Sep 17 00:00:00 2001 From: Andres Ruiz Date: Wed, 3 Jun 2020 23:28:26 -0400 Subject: [PATCH] Use correct string for translation, add ShowLess Use the right string form for the string translation for the dynamic strings, add the `ShowLess` version. Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com> --- src/controllers/itemDetails.js | 4 ++-- src/strings/en-us.json | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/controllers/itemDetails.js b/src/controllers/itemDetails.js index c2a1370176..365cdaca5b 100644 --- a/src/controllers/itemDetails.js +++ b/src/controllers/itemDetails.js @@ -978,10 +978,10 @@ define(['loading', 'appRouter', 'layoutManager', 'connectionManager', 'userSetti if (clampTarget.classList.contains(clampClassName)) { clampTarget.classList.remove(clampClassName); - expandButton.innerHTML = globalize.translate('Show Less'); + expandButton.innerHTML = globalize.translate('ShowLess'); } else { clampTarget.classList.add(clampClassName); - expandButton.innerHTML = globalize.translate('Show More'); + expandButton.innerHTML = globalize.translate('ShowMore'); } } diff --git a/src/strings/en-us.json b/src/strings/en-us.json index 4f109eaeb6..cbe2ae0683 100644 --- a/src/strings/en-us.json +++ b/src/strings/en-us.json @@ -1373,6 +1373,7 @@ "Share": "Share", "ShowAdvancedSettings": "Show advanced settings", "ShowIndicatorsFor": "Show indicators for:", + "ShowLess": "Show less", "ShowMore": "Show more", "ShowTitle": "Show title", "ShowYear": "Show year",