Make `__messageQuoteManager` template available in ACP
authorMatthias Schmidt <gravatronics@live.com>
Mon, 16 Sep 2019 16:15:46 +0000 (18:15 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 16 Sep 2019 16:15:46 +0000 (18:15 +0200)
… to have consistency between frontend and backend with regard to WYSIWYG form fields.

com.woltlab.wcf/templates/__messageQuoteManager.tpl
syncTemplates.json
wcfsetup/install/files/acp/templates/__messageQuoteManager.tpl [new file with mode: 0644]

index 92a2ad34e9d005009e7d1e4c1947ef9501069eb5..fd0798d128460f82fa181a63153db1e9385ac5d0 100644 (file)
@@ -11,4 +11,4 @@ WCF.Language.addObject({
 
 {if !$wysiwygSelector|isset}{assign var=wysiwygSelector value=''}{/if}
 {if !$supportPaste|isset}{assign var=supportPaste value=false}{/if}
-var $quoteManager = new WCF.Message.Quote.Manager({@$__quoteCount}, '{$wysiwygSelector|encodeJS}', {if $supportPaste}true{else}false{/if}, [ {implode from=$__quoteRemove item=quoteID}'{$quoteID}'{/implode} ]);
\ No newline at end of file
+var $quoteManager = new WCF.Message.Quote.Manager({@$__quoteCount}, '{$wysiwygSelector|encodeJS}', {if $supportPaste}true{else}false{/if}, [ {implode from=$__quoteRemove item=quoteID}'{$quoteID}'{/implode} ]);
index d1f698bfbe4e283df43bade43d474f2e1c050c23..041f95446a969693c1287398cdf7654b5410317a 100644 (file)
@@ -25,6 +25,7 @@
     "__itemListFormField",
     "__labelFormField",
     "__mediaSetCategoryDialog",
+    "__messageQuoteManager",
     "__multilineTextFormField",
     "__multiPageCondition",
     "__multipleSelectionFormField",
diff --git a/wcfsetup/install/files/acp/templates/__messageQuoteManager.tpl b/wcfsetup/install/files/acp/templates/__messageQuoteManager.tpl
new file mode 100644 (file)
index 0000000..fd0798d
--- /dev/null
@@ -0,0 +1,14 @@
+WCF.Language.addObject({
+       'wcf.message.quote.insertAllQuotes': '{lang}wcf.message.quote.insertAllQuotes{/lang}',
+       'wcf.message.quote.insertSelectedQuotes': '{lang}wcf.message.quote.insertSelectedQuotes{/lang}',
+       'wcf.message.quote.manageQuotes': '{lang}wcf.message.quote.manageQuotes{/lang}',
+       'wcf.message.quote.quoteSelected': '{lang}wcf.message.quote.quoteSelected{/lang}',
+       'wcf.message.quote.quoteAndReply': '{lang}wcf.message.quote.quoteAndReply{/lang}',
+       'wcf.message.quote.removeAllQuotes': '{lang}wcf.message.quote.removeAllQuotes{/lang}',
+       'wcf.message.quote.removeSelectedQuotes': '{lang}wcf.message.quote.removeSelectedQuotes{/lang}',
+       'wcf.message.quote.showQuotes': '{lang}wcf.message.quote.showQuotes{/lang}'
+});
+
+{if !$wysiwygSelector|isset}{assign var=wysiwygSelector value=''}{/if}
+{if !$supportPaste|isset}{assign var=supportPaste value=false}{/if}
+var $quoteManager = new WCF.Message.Quote.Manager({@$__quoteCount}, '{$wysiwygSelector|encodeJS}', {if $supportPaste}true{else}false{/if}, [ {implode from=$__quoteRemove item=quoteID}'{$quoteID}'{/implode} ]);