Unify quotes clipboard button label with other clipboard labels
authorMatthias Schmidt <gravatronics@live.com>
Sun, 10 May 2020 13:31:27 +0000 (15:31 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 10 May 2020 13:31:27 +0000 (15:31 +0200)
Close #3240

com.woltlab.wcf/templates/__messageQuoteManager.tpl
wcfsetup/install/files/acp/templates/__messageQuoteManager.tpl
wcfsetup/install/files/js/WCF.Message.js
wcfsetup/install/lang/de.xml
wcfsetup/install/lang/en.xml

index fd0798d128460f82fa181a63153db1e9385ac5d0..45abd51bfe275b236ba30f274d9ceb816c908f95 100644 (file)
@@ -6,7 +6,7 @@ WCF.Language.addObject({
        '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}'
+       'wcf.message.quote.showQuotes': '{lang __literal=true}wcf.message.quote.showQuotes{/lang}'
 });
 
 {if !$wysiwygSelector|isset}{assign var=wysiwygSelector value=''}{/if}
index fd0798d128460f82fa181a63153db1e9385ac5d0..45abd51bfe275b236ba30f274d9ceb816c908f95 100644 (file)
@@ -6,7 +6,7 @@ WCF.Language.addObject({
        '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}'
+       'wcf.message.quote.showQuotes': '{lang __literal=true}wcf.message.quote.showQuotes{/lang}'
 });
 
 {if !$wysiwygSelector|isset}{assign var=wysiwygSelector value=''}{/if}
index f586c004ce22802b10f05b006aeb0f5c606697ba..b7d91db394b2fe3b07373bd119dd58ffe4b558f0 100644 (file)
@@ -1833,7 +1833,9 @@ if (COMPILER_TARGET_DEFAULT) {
                                                UiPageAction.add(buttonName, button);
                                        }
                                        
-                                       button.textContent = WCF.Language.get('wcf.message.quote.showQuotes').replace(/#count#/, this._count);
+                                       button.textContent = WCF.Language.get('wcf.message.quote.showQuotes', {
+                                               count: this._count
+                                       });
                                        
                                        UiPageAction.show(buttonName);
                                }
index f9ded4bd7e084b945f1bf1ca7cd0c838e8847f2a..04fc630d73c9bd3a6cb8a472970b7da22a50c5e7 100644 (file)
@@ -4104,7 +4104,7 @@ Dateianhänge:
                <item name="wcf.message.quote.manageQuotes"><![CDATA[Zitate verwalten]]></item>
                <item name="wcf.message.quote.quoteSelected"><![CDATA[Zitat speichern]]></item>
                <item name="wcf.message.quote.quoteAndReply"><![CDATA[Zitat einfügen]]></item>
-               <item name="wcf.message.quote.showQuotes"><![CDATA[Zitate (#count#)]]></item>
+               <item name="wcf.message.quote.showQuotes"><![CDATA[{if $count == 1}Ein Zitat{else}{#$count} Zitate{/if}]]></item>
                <item name="wcf.message.quote.quoteMessage"><![CDATA[Zitieren]]></item>
                <item name="wcf.message.quote.removeAllQuotes"><![CDATA[Alle Zitate entfernen]]></item>
                <item name="wcf.message.quote.removeSelectedQuotes"><![CDATA[Markierte Zitate entfernen]]></item>
index d725983efa5fb660420204eef73588a672ff8533..7a869322d5baf70a04c768bb5dc498175112c072 100644 (file)
@@ -4049,7 +4049,7 @@ Attachments:
                <item name="wcf.message.quote.manageQuotes"><![CDATA[Manage Quotes]]></item>
                <item name="wcf.message.quote.quoteSelected"><![CDATA[Save Quote]]></item>
                <item name="wcf.message.quote.quoteAndReply"><![CDATA[Insert Quote]]></item>
-               <item name="wcf.message.quote.showQuotes"><![CDATA[Quotes (#count#)]]></item>
+               <item name="wcf.message.quote.showQuotes"><![CDATA[{if $count == 1}One Quote{else}{#$count} Quotes{/if}]]></item>
                <item name="wcf.message.quote.quoteMessage"><![CDATA[Quote]]></item>
                <item name="wcf.message.quote.removeAllQuotes"><![CDATA[Remove All Quotes]]></item>
                <item name="wcf.message.quote.removeSelectedQuotes"><![CDATA[Removed Marked Quotes]]></item>