Adds language variable for i18n inputs
authorMatthias Schmidt <gravatronics@live.com>
Thu, 1 Mar 2012 18:05:30 +0000 (19:05 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Thu, 1 Mar 2012 18:07:25 +0000 (19:07 +0100)
wcfsetup/install/files/acp/templates/header.tpl
wcfsetup/install/files/js/WCF.js
wcfsetup/install/lang/de.xml
wcfsetup/install/lang/en.xml

index b4d0e0e1403b00374269a141ee5236ba4af43c37..36f65a50ca22b9ea757f07f784733085b161ddc0 100644 (file)
@@ -66,6 +66,7 @@
                                'wcf.global.page.previous': '{capture assign=pagePrevious}{lang}wcf.global.page.previous{/lang}{/capture}{@$pagePrevious|encodeJS}',
                                'wcf.global.button.collapsible': '{lang}wcf.global.button.collapsible{/lang}',
                                'wcf.global.button.disable': '{lang}wcf.global.button.disable{/lang}',
+                               'wcf.global.button.disabledI18n': '{lang}wcf.global.button.disabledI18n{/lang}',
                                'wcf.global.button.enable': '{lang}wcf.global.button.enable{/lang}',
                                'wcf.global.confirmation.cancel': '{lang}wcf.global.confirmation.cancel{/lang}',
                                'wcf.global.confirmation.confirm': '{lang}wcf.global.confirmation.confirm{/lang}',
index 00779e01385e4d59f663634aceac067ca957495c..10e91bf646c61b743a4ae801049ba4600176cb20 100644 (file)
@@ -1861,7 +1861,7 @@ WCF.MultipleLanguageInput.prototype = {
        _prepareElement: function(enableOnInit) {
                this._element.wrap('<div class="wcf-preInput" />');
                var $wrapper = this._element.parent();
-               var $button = $('<p class="wcf-button wcf-dropdownCaption"><span>enable i18n</span></p>').prependTo($wrapper);
+               var $button = $('<p class="wcf-button wcf-dropdownCaption"><span>' + WCF.Language.get('wcf.global.button.disabledI18n') + '</span></p>').prependTo($wrapper);
 
                $button.click($.proxy(this._enable, this));
                WCF.CloseOverlayHandler.addCallback(this._element.wcfIdentify(), $.proxy(this._closeSelection, this));
@@ -1908,7 +1908,7 @@ WCF.MultipleLanguageInput.prototype = {
 
                                // disable language input
                                if (!this._forceSelection) {
-                                       $('<li class="divider">disable i18n</li>').click($.proxy(this._disable, this)).appendTo(this._list);
+                                       $('<li class="divider">' + WCF.Language.get('wcf.global.button.disabledI18n') + '</li>').click($.proxy(this._disable, this)).appendTo(this._list);
                                }
                        }
 
@@ -2004,7 +2004,7 @@ WCF.MultipleLanguageInput.prototype = {
                }
                
                // remove active marking
-               this._list.prev('.wcf-dropdownCaption').children('span').removeClass('active').text('enable i18n');
+               this._list.prev('.wcf-dropdownCaption').children('span').removeClass('active').text(WCF.Language.get('wcf.global.button.disabledI18n'));
                this._closeSelection();
 
                // update element value
index 672c7f62edccb9912263b6a6e7bec1449bef839e..fe1bdd0a73e3f7a47b63e2e9a312581d41e56e59 100644 (file)
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="UTF-8"?>
 <language xmlns="http://www.woltlab.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.woltlab.com http://www.woltlab.com/XSD/maelstrom/language.xsd" languagecode="de" languagename="Deutsch">
        <category name="wcf.clipboard">
                <item name="wcf.clipboard.user.confirmMessage"><![CDATA[{if $count == 1}Einen{else}{#$count}{/if} Benutzer löschen?]]></item>
                <item name="wcf.global.button.collapsible"><![CDATA[Auf- und Zuklappen]]></item>
                <item name="wcf.global.button.delete"><![CDATA[Löschen]]></item>
                <item name="wcf.global.button.disable"><![CDATA[Deaktivieren]]></item>
+               <item name="wcf.global.button.disabledI18n"><![CDATA[einsprachig]]></item>
                <item name="wcf.global.button.edit"><![CDATA[Bearbeiten]]></item>
                <item name="wcf.global.button.enable"><![CDATA[Aktivieren]]></item>
                <item name="wcf.global.button.next"><![CDATA[Weiter &raquo;]]></item>
index 83611a5b357dcb4daa979ac0932528e5778ef801..273585a4191dd7441831d19aa468fdf767266202 100644 (file)
                <item name="wcf.global.button.collapsible"><![CDATA[Expand and collapse]]></item>
                <item name="wcf.global.button.delete"><![CDATA[Delete]]></item>
                <item name="wcf.global.button.disable"><![CDATA[Disable]]></item>
+               <item name="wcf.global.button.disabledI18n"><![CDATA[monolingual]]></item>
                <item name="wcf.global.button.edit"><![CDATA[Edit]]></item>
                <item name="wcf.global.button.enable"><![CDATA[Enable]]></item>
                <item name="wcf.global.button.next"><![CDATA[Next &raquo;]]></item>