Added some missing language variables (menu management)
authorMarcel Werk <burntime@woltlab.com>
Tue, 28 Jun 2016 16:08:08 +0000 (18:08 +0200)
committerMarcel Werk <burntime@woltlab.com>
Tue, 28 Jun 2016 16:08:14 +0000 (18:08 +0200)
wcfsetup/install/files/acp/templates/menuAdd.tpl
wcfsetup/install/files/acp/templates/menuItemAdd.tpl
wcfsetup/install/files/acp/templates/menuItemList.tpl
wcfsetup/install/files/acp/templates/menuList.tpl
wcfsetup/install/lang/de.xml
wcfsetup/install/lang/en.xml

index c157dfd3804c34d5ef4810dbf5498d9e3bfba6d7..a1eee9c64f4fff9026cdfddcc70f0d748965cdba 100644 (file)
@@ -38,7 +38,6 @@
                                                {/if}
                                        </small>
                                {/if}
-                               <small>{lang}wcf.acp.menu.title.description{/lang}</small>
                                {include file='multipleLanguageInputJavascript' elementIdentifier='title' forceSelection=false}
                        </dd>
                </dl>
@@ -49,7 +48,7 @@
                                <dd>
                                        <select name="position" id="position">
                                                {foreach from=$availablePositions item=availablePosition}
-                                                       <option value="{@$availablePosition}"{if $availablePosition == $position} selected{/if}>{lang}wcf.acp.box.position.{@$availablePosition}{/lang}</option>
+                                                       <option value="{@$availablePosition}"{if $availablePosition == $position} selected{/if}>{@$availablePosition}</option>
                                                {/foreach}
                                        </select>
                                        
                                <dt></dt>
                                <dd>
                                        <label><input type="checkbox" id="visibleEverywhere" name="visibleEverywhere" value="1"{if $visibleEverywhere} checked{/if}> {lang}wcf.acp.box.visibleEverywhere{/lang}</label>
+                                       <script data-relocate="true">
+                                               elById('visibleEverywhere').addEventListener('change', function() {
+                                                       if (this.checked) {
+                                                               elShow(elById('visibilityExceptionHidden'));
+                                                               elHide(elById('visibilityExceptionVisible'));
+                                                       }
+                                                       else {
+                                                               elHide(elById('visibilityExceptionHidden'));
+                                                               elShow(elById('visibilityExceptionVisible'));
+                                                       }
+                                               });
+                                       </script>
                                </dd>
                        </dl>
                        
                        <dl>
-                               <dt><label for="pageIDs">{lang}wcf.acp.box.pageIDs{/lang}</label></dt>
+                               <dt>
+                                       <span id="visibilityExceptionVisible"{if $visibleEverywhere} style="display: none"{/if}>{lang}wcf.acp.box.visibilityException.visible{/lang}</span>
+                                       <span id="visibilityExceptionHidden"{if !$visibleEverywhere} style="display: none"{/if}>{lang}wcf.acp.box.visibilityException.hidden{/lang}</span>
+                               </dt>
                                <dd>
-                                       <select name="pageIDs[]" id="pageIDs" multiple size="20">
+                                       <ul class="scrollableCheckboxList">
                                                {foreach from=$pageNodeList item=pageNode}
-                                                       <option value="{@$pageNode->pageID}"{if $pageNode->pageID|in_array:$pageIDs} selected{/if}>{if $pageNode->getDepth() > 1}{@"&nbsp;&nbsp;&nbsp;&nbsp;"|str_repeat:($pageNode->getDepth() - 1)}{/if}{$pageNode->name}</option>
+                                                       <li{if $pageNode->getDepth() > 1} style="padding-left: {$pageNode->getDepth()*20-20}px"{/if}>
+                                                               <label><input type="checkbox" name="pageIDs[]" value="{@$pageNode->pageID}"{if $pageNode->pageID|in_array:$pageIDs} checked{/if}> {$pageNode->name}</label>
+                                                       </li>
                                                {/foreach}
-                                       </select>
+                                       </ul>
                                </dd>
                        </dl>
                {/if}
index e946f90e3fe070dede393a2d4aed43aeeb7bbfeb..10ee12c06adb9b8c3f52c94f1ba2ad4ea936e61d 100644 (file)
                        </dd>
                </dl>
                
+               <dl>
+                       <dt><label for="showOrder">{lang}wcf.global.showOrder{/lang}</label></dt>
+                       <dd>
+                               <input type="number" name="showOrder" id="showOrder" value="{@$showOrder}" class="tiny" min="0">
+                       </dd>
+               </dl>
+               
+               {if $action == 'add' || !$menuItem->isLandingPage}
+                       <dl>
+                               <dt></dt>
+                               <dd>
+                                       <label><input type="checkbox" name="isDisabled" id="isDisabled" value="1"{if $isDisabled} checked{/if}> <span>{lang}wcf.acp.menu.item.isDisabled{/lang}</span></label>
+                               </dd>
+                       </dl>
+               {/if}
+               
                {event name='dataFields'}
        </div>
        
                </dl>
                
                <dl id="pageIDContainer"{if $errorField == 'pageID'} class="formError"{/if}{if !$isInternalLink} style="display: none;"{/if}>
-                       <dt><label for="pageID">{lang}wcf.acp.page.parentPageID{/lang}</label></dt>
+                       <dt><label for="pageID">{lang}wcf.acp.page.page{/lang}</label></dt>
                        <dd>
                                <select name="pageID" id="pageID">
                                        <option value="0">{lang}wcf.global.noSelection{/lang}</option>
                </dl>
                
                <dl id="pageObjectIDContainer"{if $errorField == 'pageObjectID'} class="formError"{/if}{if !$pageID || !$pageHandler[$pageID]|isset} style="display: none;"{/if}>
-                       <dt><label for="pageObjectID">{lang}wcf.acp.page.pageObjectID{/lang}</label></dt>
+                       <dt><label for="pageObjectID">{lang}wcf.acp.page.objectID{/lang}</label></dt>
                        <dd>
                                <div class="inputAddon">
                                        <input type="text" id="pageObjectID" name="pageObjectID" value="{$pageObjectID}" class="short">
                {event name='linkFields'}
        </section>
        
-       <section class="section">
-               <h2 class="sectionTitle">{lang}wcf.acp.menu.item.advanced{/lang}</h2>
-               
-               <dl>
-                       <dt><label for="showOrder">{lang}wcf.global.showOrder{/lang}</label></dt>
-                       <dd>
-                               <input type="number" name="showOrder" id="showOrder" value="{@$showOrder}" class="tiny" min="0">
-                       </dd>
-               </dl>
-               
-               {if $action == 'add' || !$menuItem->isLandingPage}
-                       <dl>
-                               <dt></dt>
-                               <dd>
-                                       <label><input type="checkbox" name="isDisabled" id="isDisabled" value="1"{if $isDisabled} checked{/if}> <span>{lang}wcf.acp.menu.item.isDisabled{/lang}</span></label>
-                               </dd>
-                       </dl>
-               {/if}
-               
-               {event name='advancedFields'}
-       </section>
-               
        {event name='sections'}
        
        <div class="formSubmit">
index b6be3c223a5c8f2c96b79bada922cad89f8732db..bf647b7299e07e5652580ea7a65f3a3eddb10a09 100644 (file)
@@ -41,7 +41,7 @@
                                                                {/if}
                                                                <a href="{link controller='MenuItemEdit' id=$menuItemNode->itemID}{/link}" class="jsTooltip" title="{lang}wcf.global.button.edit{/lang}"><span class="icon icon16 fa-pencil"></span></a>
                                                                {if $menuItemNode->canDelete()}
-                                                                       <span class="icon icon16 fa-times jsDeleteButton jsTooltip pointer" title="{lang}wcf.global.button.delete{/lang}" data-object-id="{@$menuItemNode->itemID}" data-confirm-message="{lang menuItem=$menuItemNode->getDecoratedObject()}wcf.acp.menu.item.delete.confirmMessage{/lang}"></span>
+                                                                       <span class="icon icon16 fa-times jsDeleteButton jsTooltip pointer" title="{lang}wcf.global.button.delete{/lang}" data-object-id="{@$menuItemNode->itemID}" data-confirm-message-html="{lang __encode=true}wcf.acp.menu.item.delete.confirmMessage{/lang}"></span>
                                                                {else}
                                                                        <span class="icon icon16 fa-times disabled" title="{lang}wcf.global.button.delete{/lang}"></span>
                                                                {/if}
index 8fe4c78e24c8dc2bf50ee775e600331191f10bf2..97894243255c64608d72941dbf92514ad70f2260 100644 (file)
@@ -36,7 +36,7 @@
                                        <th class="columnPageID{if $sortField == 'menuID'} active {@$sortOrder}{/if}" colspan="2"><a href="{link controller='MenuList'}pageNo={@$pageNo}&sortField=menuID&sortOrder={if $sortField == 'menuID' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.global.objectID{/lang}</a></th>
                                        <th class="columnTitle{if $sortField == 'title'} active {@$sortOrder}{/if}"><a href="{link controller='MenuList'}pageNo={@$pageNo}&sortField=title&sortOrder={if $sortField == 'title' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.global.name{/lang}</a></th>
                                        <th class="columnText columnPosition{if $sortField == 'position'} active {@$sortOrder}{/if}"><a href="{link controller='MenuList'}pageNo={@$pageNo}&sortField=position&sortOrder={if $sortField == 'position' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.acp.box.position{/lang}</a></th>
-                                       <th class="columnDigits columnItems{if $sortField == 'items'} active {@$sortOrder}{/if}"><a href="{link controller='MenuList'}pageNo={@$pageNo}&sortField=items&sortOrder={if $sortField == 'items' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.acp.menu.items{/lang}</a></th>
+                                       <th class="columnDigits columnItems{if $sortField == 'items'} active {@$sortOrder}{/if}"><a href="{link controller='MenuList'}pageNo={@$pageNo}&sortField=items&sortOrder={if $sortField == 'items' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.acp.menu.item.list{/lang}</a></th>
                                        
                                        {event name='columnHeads'}
                                </tr>
@@ -49,7 +49,7 @@
                                                        <a href="{link controller='MenuEdit' id=$menu->menuID}{/link}" title="{lang}wcf.global.button.edit{/lang}" class="jsTooltip"><span class="icon icon16 fa-pencil"></span></a>
                                                        <a href="{link controller='MenuItemList' id=$menu->menuID}{/link}" title="{lang}wcf.acp.menu.item.list{/lang}" class="jsTooltip"><span class="icon icon16 fa-list"></span></a>
                                                        {if $menu->canDelete()}
-                                                               <span class="icon icon16 fa-times jsDeleteButton jsTooltip pointer" title="{lang}wcf.global.button.delete{/lang}" data-object-id="{@$menu->menuID}" data-confirm-message="{lang}wcf.acp.menu.delete.confirmMessage{/lang}"></span>
+                                                               <span class="icon icon16 fa-times jsDeleteButton jsTooltip pointer" title="{lang}wcf.global.button.delete{/lang}" data-object-id="{@$menu->menuID}" data-confirm-message-html="{lang __encode=true}wcf.acp.menu.delete.confirmMessage{/lang}"></span>
                                                        {else}
                                                                <span class="icon icon16 fa-times disabled" title="{lang}wcf.global.button.delete{/lang}"></span>
                                                        {/if}
index 5ad054ec1073ce67d1c0a525d0fe4d29e6b13876..088ca2f68ed629c917d85f0dca5bd3e16c22c738 100644 (file)
                <item name="wcf.acp.box.linkType.external"><![CDATA[Externer Link]]></item>
                <item name="wcf.acp.box.link.externalURL"><![CDATA[Externe URL]]></item>
                <item name="wcf.acp.box.list"><![CDATA[Boxen]]></item>
+               <item name="wcf.acp.box.name.error.notUnique"><![CDATA[Dieser Name wird bereits von einer anderen Box verwendet.]]></item>
                <item name="wcf.acp.box.position"><![CDATA[Position]]></item>
                <item name="wcf.acp.box.showHeader"><![CDATA[Box-Titel anzeigen]]></item>
                <item name="wcf.acp.box.type"><![CDATA[Box-Typ]]></item>
                <item name="wcf.acp.menu.link.article.add"><![CDATA[Artikel hinzufügen]]></item>
                <item name="wcf.acp.menu.link.article.category.list"><![CDATA[Kategorien]]></item>
                <item name="wcf.acp.menu.link.article.category.add"><![CDATA[Kategorie hinzufügen]]></item>
+               <item name="wcf.acp.menu.add"><![CDATA[Menü hinzufügen]]></item>
+               <item name="wcf.acp.menu.delete.confirmMessage"><![CDATA[Wollen Sie das Menü <span class="confirmationObject">{lang}{$menu->title}{/lang}</span> wirklich löschen?]]></item>
+               <item name="wcf.acp.menu.edit"><![CDATA[Menü bearbeiten]]></item>
+               <item name="wcf.acp.menu.list"><![CDATA[Menüs]]></item>
+               <item name="wcf.acp.menu.item.add"><![CDATA[Menüpunkt hinzufügen]]></item>
+               <item name="wcf.acp.menu.item.delete.confirmMessage"><![CDATA[Wollen Sie den Menüpunkt <span class="confirmationObject">{lang}{$menuItemNode->title}{/lang}</span> wirklich löschen?]]></item>
+               <item name="wcf.acp.menu.item.edit"><![CDATA[Menüpunkt bearbeiten]]></item>
+               <item name="wcf.acp.menu.item.externalURL"><![CDATA[Externe URL]]></item>
+               <item name="wcf.acp.menu.item.isDisabled"><![CDATA[Menüpunkt deaktivieren]]></item>
+               <item name="wcf.acp.menu.item.link"><![CDATA[Verlinkung]]></item>
+               <item name="wcf.acp.menu.item.link.external"><![CDATA[Externer Link]]></item>
+               <item name="wcf.acp.menu.item.link.internal"><![CDATA[Interner Link]]></item>
+               <item name="wcf.acp.menu.item.list"><![CDATA[Menüpunkte]]></item>
+               <item name="wcf.acp.menu.item.parentItem"><![CDATA[Übergeordneter Menüpunkt]]></item>
        </category>
        
        <category name="wcf.acp.notice">
index 71d4daa3da356982600e20cfec6479c65f6802db..979d3f49ed3ffeefe1a87ceedb3ff681fc279ac8 100644 (file)
@@ -156,6 +156,7 @@ Examples for medium ID detection:
                <item name="wcf.acp.box.linkType.external"><![CDATA[External link]]></item>
                <item name="wcf.acp.box.link.externalURL"><![CDATA[External URL]]></item>
                <item name="wcf.acp.box.list"><![CDATA[Boxes]]></item>
+               <item name="wcf.acp.box.name.error.notUnique"><![CDATA[Name is already in use.]]></item>
                <item name="wcf.acp.box.position"><![CDATA[Position]]></item>
                <item name="wcf.acp.box.showHeader"><![CDATA[Show box title]]></item>
                <item name="wcf.acp.box.type"><![CDATA[Page Type]]></item>
@@ -704,6 +705,20 @@ Examples for medium ID detection:
                <item name="wcf.acp.menu.link.article.add"><![CDATA[Add Article]]></item>
                <item name="wcf.acp.menu.link.article.category.list"><![CDATA[Categories]]></item>
                <item name="wcf.acp.menu.link.article.category.add"><![CDATA[Add Category]]></item>
+               <item name="wcf.acp.menu.add"><![CDATA[Add Menu]]></item>
+               <item name="wcf.acp.menu.delete.confirmMessage"><![CDATA[Do you really want to delete the menu <span class="confirmationObject">{lang}{$menu->title}{/lang}</span>?]]></item>
+               <item name="wcf.acp.menu.edit"><![CDATA[Edit Menu]]></item>
+               <item name="wcf.acp.menu.list"><![CDATA[Menus]]></item>
+               <item name="wcf.acp.menu.item.add"><![CDATA[Add Menu Item]]></item>
+               <item name="wcf.acp.menu.item.delete.confirmMessage"><![CDATA[Do you really want to delete the menu item <span class="confirmationObject">{lang}{$menuItemNode->title}{/lang}</span>?]]></item>
+               <item name="wcf.acp.menu.item.edit"><![CDATA[Edit Menu Item]]></item>
+               <item name="wcf.acp.menu.item.externalURL"><![CDATA[External URL]]></item>
+               <item name="wcf.acp.menu.item.isDisabled"><![CDATA[Disable menu item]]></item>
+               <item name="wcf.acp.menu.item.link"><![CDATA[Link]]></item>
+               <item name="wcf.acp.menu.item.link.external"><![CDATA[External link]]></item>
+               <item name="wcf.acp.menu.item.link.internal"><![CDATA[Internal link]]></item>
+               <item name="wcf.acp.menu.item.list"><![CDATA[Menu Items]]></item>
+               <item name="wcf.acp.menu.item.parentItem"><![CDATA[Parent Menu Item]]></item>
        </category>
        
        <category name="wcf.acp.notice">