From 4e52f0821f93f86c42b826f2487cfedd147b6f39 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Thu, 1 Jul 2021 10:05:10 +0200 Subject: [PATCH] Add new phrases to JavaScript for existing uses of color pickers --- wcfsetup/install/files/acp/templates/styleAdd.tpl | 8 ++++++-- wcfsetup/install/files/acp/templates/trophyAdd.tpl | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/wcfsetup/install/files/acp/templates/styleAdd.tpl b/wcfsetup/install/files/acp/templates/styleAdd.tpl index 4e04f87ce5..dc3f6d0c12 100644 --- a/wcfsetup/install/files/acp/templates/styleAdd.tpl +++ b/wcfsetup/install/files/acp/templates/styleAdd.tpl @@ -18,9 +18,13 @@ WCF.Language.addObject({ 'wcf.style.colorPicker': '{jslang}wcf.style.colorPicker{/jslang}', - 'wcf.style.colorPicker.new': '{jslang}wcf.style.colorPicker.new{/jslang}', + 'wcf.style.colorPicker.alpha': '{jslang}wcf.style.colorPicker.alpha{/jslang}', + 'wcf.style.colorPicker.button.apply': '{jslang}wcf.style.colorPicker.button.apply{/jslang}', + 'wcf.style.colorPicker.color': '{jslang}wcf.style.colorPicker.color{/jslang}', 'wcf.style.colorPicker.current': '{jslang}wcf.style.colorPicker.current{/jslang}', - 'wcf.style.colorPicker.button.apply': '{jslang}wcf.style.colorPicker.button.apply{/jslang}' + 'wcf.style.colorPicker.error.invalidColor': '{jslang}wcf.style.colorPicker.error.invalidColor{/jslang}', + 'wcf.style.colorPicker.hexAlpha': '{jslang}wcf.style.colorPicker.hexAlpha{/jslang}', + 'wcf.style.colorPicker.new': '{jslang}wcf.style.colorPicker.new{/jslang}', }); {if $action == 'edit'} diff --git a/wcfsetup/install/files/acp/templates/trophyAdd.tpl b/wcfsetup/install/files/acp/templates/trophyAdd.tpl index d31541f299..4846ed1216 100644 --- a/wcfsetup/install/files/acp/templates/trophyAdd.tpl +++ b/wcfsetup/install/files/acp/templates/trophyAdd.tpl @@ -7,9 +7,13 @@ require(['Language', 'WoltLabSuite/Core/Acp/Ui/Trophy/Badge'], function (Language, BadgeHandler) { Language.addObject({ 'wcf.style.colorPicker': '{jslang}wcf.style.colorPicker{/jslang}', - 'wcf.style.colorPicker.new': '{jslang}wcf.style.colorPicker.new{/jslang}', - 'wcf.style.colorPicker.current': '{jslang}wcf.style.colorPicker.current{/jslang}', + 'wcf.style.colorPicker.alpha': '{jslang}wcf.style.colorPicker.alpha{/jslang}', 'wcf.style.colorPicker.button.apply': '{jslang}wcf.style.colorPicker.button.apply{/jslang}', + 'wcf.style.colorPicker.color': '{jslang}wcf.style.colorPicker.color{/jslang}', + 'wcf.style.colorPicker.current': '{jslang}wcf.style.colorPicker.current{/jslang}', + 'wcf.style.colorPicker.error.invalidColor': '{jslang}wcf.style.colorPicker.error.invalidColor{/jslang}', + 'wcf.style.colorPicker.hexAlpha': '{jslang}wcf.style.colorPicker.hexAlpha{/jslang}', + 'wcf.style.colorPicker.new': '{jslang}wcf.style.colorPicker.new{/jslang}', 'wcf.acp.style.image.error.invalidExtension': '{jslang}wcf.acp.style.image.error.invalidExtension{/jslang}', 'wcf.acp.trophy.badge.edit': '{jslang}wcf.acp.trophy.badge.edit{/jslang}', 'wcf.acp.trophy.imageUpload.error.notSquared': '{jslang}wcf.acp.trophy.imageUpload.error.notSquared{/jslang}', -- 2.20.1