Add translations for the wysiwyg editor
authorJoshua Rüsweg <josh@bastelstu.be>
Sun, 21 Aug 2016 18:41:00 +0000 (20:41 +0200)
committerJoshua Rüsweg <josh@bastelstu.be>
Sun, 21 Aug 2016 18:41:00 +0000 (20:41 +0200)
com.woltlab.wcf/templates/wysiwyg.tpl
wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabColor.js
wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabSize.js
wcfsetup/install/lang/de.xml
wcfsetup/install/lang/en.xml

index 42db80b1c8a121fdc6794bb5a26bbaea8e1edc65..581427c7902fb790b5fe7a6a1598a1f4888db1fa 100644 (file)
                                                'insert-column-left': '{lang}wcf.editor.table.insertColumnLeft{/lang}',
                                                'insert-column-right': '{lang}wcf.editor.table.insertColumnRight{/lang}',
                                                'insert-row-above': '{lang}wcf.editor.table.insertRowAbove{/lang}',
-                                               'insert-row-below': '{lang}wcf.editor.table.insertRowBelow{/lang}'
+                                               'insert-row-below': '{lang}wcf.editor.table.insertRowBelow{/lang}',
+
+                                               // size
+                                               'remove-size': '{lang}wcf.editor.button.size.removeSize{/lang}',
+
+                                               // color
+                                               'remove-color': '{lang}wcf.editor.button.color.removeColor{/lang}',
                                        }
                                },
                                linkify: false,
index d86c334c9f8ca5f75b03e28ac79e890ccf658bf5..6e93007fecd3dee937d524b402a53c40dabbb3d9 100644 (file)
@@ -15,7 +15,7 @@ $.Redactor.prototype.WoltLabColor = function() {
                        var callback = this.WoltLabColor.setColor.bind(this), color;
                        var dropdown = {
                                'removeColor': {
-                                       title: 'remove color',
+                                       title: this.lang.get('remove-color'),
                                        func: this.WoltLabColor.removeColor.bind(this)
                                }
                        };
index 8a0cdd6837f3bb1b79a9e7505331a2a91a9d0068..fd42c5c19e20cbc37990dac9be7a46df4185ad1a 100644 (file)
@@ -17,7 +17,7 @@ $.Redactor.prototype.WoltLabSize = function() {
                        }
                        
                        dropdown['removeSize'] = {
-                               title: 'remove size',
+                               title: this.lang.get('remove-size'),
                                func: this.WoltLabSize.removeSize.bind(this)
                        };
                        
index 731bb2d986dc2bcdd0a01dfbe4f12d33db623c43..cac810db13b252b51e0a969dab023372aa35a79a 100644 (file)
@@ -2266,6 +2266,7 @@ Fehler sind beispielsweise:
                <item name="wcf.editor.button.bold"><![CDATA[Fett]]></item>
                <item name="wcf.editor.button.code"><![CDATA[Code]]></item>
                <item name="wcf.editor.button.color"><![CDATA[Schriftfarbe]]></item>
+               <item name="wcf.editor.button.color.removeColor"><![CDATA[Schriftfarbe entfernen]]></item>
                <item name="wcf.editor.button.format"><![CDATA[Überschrift]]></item>
                <item name="wcf.editor.button.html"><![CDATA[HTML]]></item>
                <item name="wcf.editor.button.image"><![CDATA[Bild]]></item>
@@ -2276,6 +2277,7 @@ Fehler sind beispielsweise:
                <item name="wcf.editor.button.media"><![CDATA[Media]]></item>
                <item name="wcf.editor.button.quote"><![CDATA[Zitat]]></item>
                <item name="wcf.editor.button.size"><![CDATA[Schriftgröße]]></item>
+               <item name="wcf.editor.button.size.removeSize"><![CDATA[Schriftgröße entfernen]]></item>
                <item name="wcf.editor.button.spoiler"><![CDATA[Spoiler]]></item>
                <item name="wcf.editor.button.strikethrough"><![CDATA[Durchgestrichen]]></item>
                <item name="wcf.editor.button.subscript"><![CDATA[Tiefgestellt]]></item>
index eeccc7d101248b7a45c44717d8d7b1b27d9b29a2..b4f0640cd22b7919884fe73e2de8e91c1f9cd436 100644 (file)
@@ -2233,6 +2233,7 @@ Errors are:
                <item name="wcf.editor.button.bold"><![CDATA[Bold]]></item>
                <item name="wcf.editor.button.code"><![CDATA[Code]]></item>
                <item name="wcf.editor.button.color"><![CDATA[Font Color]]></item>
+               <item name="wcf.editor.button.color.removeColor"><![CDATA[Remove Color]]></item>
                <item name="wcf.editor.button.format"><![CDATA[Headline]]></item>
                <item name="wcf.editor.button.html"><![CDATA[HTML]]></item>
                <item name="wcf.editor.button.image"><![CDATA[Image]]></item>
@@ -2243,6 +2244,7 @@ Errors are:
                <item name="wcf.editor.button.media"><![CDATA[Media]]></item>
                <item name="wcf.editor.button.quote"><![CDATA[Quote]]></item>
                <item name="wcf.editor.button.size"><![CDATA[Font Size]]></item>
+               <item name="wcf.editor.button.size.removeSize"><![CDATA[Remove Font Size]]></item>
                <item name="wcf.editor.button.spoiler"><![CDATA[Spoiler]]></item>
                <item name="wcf.editor.button.strikethrough"><![CDATA[Strikethrough]]></item>
                <item name="wcf.editor.button.subscript"><![CDATA[Subscript]]></item>