Add missing language variables for searching pages via editor toolbar
authorMatthias Schmidt <gravatronics@live.com>
Tue, 23 Apr 2019 17:31:12 +0000 (19:31 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Tue, 23 Apr 2019 17:31:12 +0000 (19:31 +0200)
See 69897f7546bd73fb014c06f106b71fde99dd02e8

wcfsetup/install/files/acp/templates/__boxAddContent.tpl
wcfsetup/install/files/acp/templates/__pageAddContent.tpl

index faa4cc3782320ce32f69c008572caaa5fb51b0ab..fc615ab6e2520bedfdeba9c07b78ae465650df8f 100644 (file)
@@ -4,7 +4,23 @@
                <li><a href="#" id="codemirror-content{@$languageID}-page" class="jsTooltip" title="{lang}wcf.editor.button.page{/lang}"><span class="icon icon16 fa-file-text-o"></span></a></li>
        </ul>
        <script data-relocate="true">
-               require(['WoltLabSuite/Core/Acp/Ui/CodeMirror/Media', 'WoltLabSuite/Core/Acp/Ui/CodeMirror/Page'], function(AcpUiCodeMirrorMedia, AcpUiCodeMirrorPage) {
+               require([
+                       'Language',
+                       'WoltLabSuite/Core/Acp/Ui/CodeMirror/Media',
+                       'WoltLabSuite/Core/Acp/Ui/CodeMirror/Page'
+               ], function(
+                       Language,
+                       AcpUiCodeMirrorMedia,
+                       AcpUiCodeMirrorPage
+               ) {
+                       Language.addObject({
+                               'wcf.page.search': '{lang}wcf.page.search{/lang}',
+                               'wcf.page.search.error.tooShort': '{lang}wcf.page.search.error.tooShort{/lang}',
+                               'wcf.page.search.error.noResults': '{lang}wcf.page.search.error.noResults{/lang}',
+                               'wcf.page.search.name': '{lang}wcf.page.search.name{/lang}',
+                               'wcf.page.search.results': '{lang}wcf.page.search.results{/lang}',
+                       });
+                       
                        new AcpUiCodeMirrorMedia('content{@$languageID}');
                        new AcpUiCodeMirrorPage('content{@$languageID}');
                });
index 57938d494612c4bc95ce26c4c3113ae7f487171a..59ebbb5e73aac9de715393ad8ee5c1f9aae9b34c 100644 (file)
@@ -8,7 +8,23 @@
        <script data-relocate="true">
                {include file='mediaJavaScript'}
                
-               require(['WoltLabSuite/Core/Acp/Ui/CodeMirror/Media', 'WoltLabSuite/Core/Acp/Ui/CodeMirror/Page'], function(AcpUiCodeMirrorMedia, AcpUiCodeMirrorPage) {
+               require([
+                       'Language',
+                       'WoltLabSuite/Core/Acp/Ui/CodeMirror/Media',
+                       'WoltLabSuite/Core/Acp/Ui/CodeMirror/Page'
+               ], function(
+                       Language,
+                       AcpUiCodeMirrorMedia,
+                       AcpUiCodeMirrorPage
+               ) {
+                       Language.addObject({
+                               'wcf.page.search': '{lang}wcf.page.search{/lang}',
+                               'wcf.page.search.error.tooShort': '{lang}wcf.page.search.error.tooShort{/lang}',
+                               'wcf.page.search.error.noResults': '{lang}wcf.page.search.error.noResults{/lang}',
+                               'wcf.page.search.name': '{lang}wcf.page.search.name{/lang}',
+                               'wcf.page.search.results': '{lang}wcf.page.search.results{/lang}',
+                       });
+                       
                        new AcpUiCodeMirrorMedia('{@$__pageContentID}');
                        new AcpUiCodeMirrorPage('{@$__pageContentID}');
                });