Use own phrases for undo/redo because Redactor's lang is unreliable
authorAlexander Ebert <ebert@woltlab.com>
Tue, 3 Mar 2015 12:23:33 +0000 (13:23 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 3 Mar 2015 12:23:33 +0000 (13:23 +0100)
com.woltlab.wcf/templates/wysiwyg.tpl
wcfsetup/install/files/js/3rdParty/redactor/plugins/wbutton.js
wcfsetup/install/lang/de.xml
wcfsetup/install/lang/en.xml

index f1d7d224cee8342ee9d065de1c1bc231254c04d7..444205df99077fecd4090605f1cf02f0e19bde4c 100644 (file)
@@ -14,10 +14,12 @@ $(function() {
                'wcf.bbcode.button.fontFamily': '{lang}wcf.bbcode.button.fontFamily{/lang}',
                'wcf.bbcode.button.fontSize': '{lang}wcf.bbcode.button.fontSize{/lang}',
                'wcf.bbcode.button.image': '{lang}wcf.bbcode.button.image{/lang}',
+               'wcf.bbcode.button.redo': '{lang}wcf.bbcode.button.redo{/lang}',
                'wcf.bbcode.button.subscript': '{lang}wcf.bbcode.button.subscript{/lang}',
                'wcf.bbcode.button.superscript': '{lang}wcf.bbcode.button.superscript{/lang}',
                'wcf.bbcode.button.toggleBBCode': '{lang}wcf.bbcode.button.toggleBBCode{/lang}',
                'wcf.bbcode.button.toggleHTML': '{lang}wcf.bbcode.button.toggleHTML{/lang}',
+               'wcf.bbcode.button.undo': '{lang}wcf.bbcode.button.undo{/lang}',
                'wcf.bbcode.code': '{lang}wcf.bbcode.code{/lang}',
                'wcf.bbcode.code.edit': '{lang}wcf.bbcode.code.edit{/lang}',
                'wcf.bbcode.code.filename': '{lang}wcf.bbcode.code.filename{/lang}',
index a598ef99c127102879b59b7a5574fe30288eb100..2485356f5e73b93e2c20f761ab36fb10025027d6 100644 (file)
@@ -89,8 +89,8 @@ RedactorPlugins.wbutton = function() {
                        this.button.addCallback(this.button.get('image'), $.proxy(this.wbutton.insertImage, this));
                        
                        // handle redo/undo buttons
-                       var $undoButton = this.button.addAfter('html', 'undo', this.lang.get('undo'));
-                       var $redoButton = this.button.addAfter('undo', 'redo', this.lang.get('redo'));
+                       var $undoButton = this.button.addAfter('html', 'undo', WCF.Language.get('wcf.bbcode.button.undo'));
+                       var $redoButton = this.button.addAfter('undo', 'redo', WCF.Language.get('wcf.bbcode.button.redo'));
                        this.button.addCallback($undoButton, this.buffer.undo);
                        this.button.addCallback($redoButton, this.buffer.redo);
                        
index 73afc5fbe92fde74f385da1acde4a41a0c2ad4c3..6912aee81456df7ae9fc341a07bf96392c6dd9fd 100644 (file)
@@ -1769,12 +1769,14 @@ Erlaubte Dateiendungen: {', '|implode:$attachmentHandler->getFormattedAllowedExt
                <item name="wcf.bbcode.button.image"><![CDATA[Bild]]></item>
                <item name="wcf.bbcode.button.inlineCode"><![CDATA[Inline-Code]]></item>
                <item name="wcf.bbcode.button.quote"><![CDATA[Zitat]]></item>
+               <item name="wcf.bbcode.button.redo"><![CDATA[Wiederholen]]></item>
                <item name="wcf.bbcode.button.showAll"><![CDATA[Alles anzeigen]]></item>
                <item name="wcf.bbcode.button.spoiler"><![CDATA[Spoiler]]></item>
                <item name="wcf.bbcode.button.subscript"><![CDATA[Tiefgestellt]]></item>
                <item name="wcf.bbcode.button.superscript"><![CDATA[Hochgestellt]]></item>
                <item name="wcf.bbcode.button.toggleBBCode"><![CDATA[BBCode]]></item>
                <item name="wcf.bbcode.button.toggleHTML"><![CDATA[WYSIWYG]]></item>
+               <item name="wcf.bbcode.button.undo"><![CDATA[Rückgängig]]></item>
                <item name="wcf.bbcode.code"><![CDATA[Quellcode]]></item>
                <item name="wcf.bbcode.code.bash.title"><![CDATA[Shell-Script]]></item>
                <item name="wcf.bbcode.code.brainfuck.title"><![CDATA[Brainfuck-Quellcode]]></item>
index bbf4de5330217f5e062783b9fd58454da304872b..d86a2e48b4e1e822410c8fdfee824304685cae3f 100644 (file)
@@ -1768,12 +1768,14 @@ Allowed extensions: {', '|implode:$attachmentHandler->getFormattedAllowedExtensi
                <item name="wcf.bbcode.button.image"><![CDATA[Image]]></item>
                <item name="wcf.bbcode.button.inlineCode"><![CDATA[Inline-Code]]></item>
                <item name="wcf.bbcode.button.quote"><![CDATA[Quote]]></item>
+               <item name="wcf.bbcode.button.redo"><![CDATA[Redo]]></item>
                <item name="wcf.bbcode.button.showAll"><![CDATA[Show All]]></item>
                <item name="wcf.bbcode.button.spoiler"><![CDATA[Spoiler]]></item>
                <item name="wcf.bbcode.button.subscript"><![CDATA[Subscript]]></item>
                <item name="wcf.bbcode.button.superscript"><![CDATA[Superscript]]></item>
                <item name="wcf.bbcode.button.toggleBBCode"><![CDATA[BBCode]]></item>
                <item name="wcf.bbcode.button.toggleHTML"><![CDATA[WYSIWYG]]></item>
+               <item name="wcf.bbcode.button.undo"><![CDATA[Undo]]></item>
                <item name="wcf.bbcode.code"><![CDATA[Source Code]]></item>
                <item name="wcf.bbcode.code.bash.title"><![CDATA[Shell-Script]]></item>
                <item name="wcf.bbcode.code.brainfuck.title"><![CDATA[Brainfuck Source Code]]></item>