From: Alexander Ebert Date: Fri, 28 Apr 2023 14:32:01 +0000 (+0200) Subject: Sync the templates for the poll options form field X-Git-Tag: 6.0.0_Alpha_1~172^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8a1fd53a2c022c62d64346c0a648686560e4811a;p=GitHub%2FWoltLab%2FWCF.git Sync the templates for the poll options form field --- diff --git a/wcfsetup/install/files/acp/templates/__pollOptionsFormField.tpl b/wcfsetup/install/files/acp/templates/__pollOptionsFormField.tpl index fb9000d34c..c7a4d94350 100644 --- a/wcfsetup/install/files/acp/templates/__pollOptionsFormField.tpl +++ b/wcfsetup/install/files/acp/templates/__pollOptionsFormField.tpl @@ -5,15 +5,13 @@ 'Dom/Traverse', 'Dom/Util', 'EventHandler', - 'Language', 'WoltLabSuite/Core/Form/Builder/Manager', 'WoltLabSuite/Core/Ui/Poll/Editor' - ], function(DomTraverse, DomUtil, EventHandler, Language, FormBuilderManager, UiPollEditor) { - Language.addObject({ - 'wcf.poll.button.addOption': '{jslang}wcf.poll.button.addOption{/jslang}', - 'wcf.poll.button.removeOption': '{jslang}wcf.poll.button.removeOption{/jslang}', - 'wcf.poll.maxVotes.error.invalid': '{jslang}wcf.poll.maxVotes.error.invalid{/jslang}' - }); + ], (DomTraverse, DomUtil, EventHandler, FormBuilderManager, UiPollEditor) => { + {jsphrase name='wcf.poll.button.addOption'} + {jsphrase name='wcf.poll.button.removeOption'} + {jsphrase name='wcf.poll.endTime.error.invalid'} + {jsphrase name='wcf.poll.maxVotes.error.invalid'} var pollEditor = new UiPollEditor( DomUtil.identify(DomTraverse.childByTag(elById('{@$field->getPrefixedId()|encodeJS}Container'), 'DD')), @@ -21,7 +19,7 @@ '{@$field->getPrefixedWysiwygId()}', { isAjax: {if $field->getDocument()->isAjax()}true{else}false{/if}, - maxOptions: {@POLL_MAX_OPTIONS} + maxOptions: {POLL_MAX_OPTIONS} } );