Add missing media search threshold language item
authorMatthias Schmidt <gravatronics@live.com>
Sat, 5 Aug 2017 13:48:33 +0000 (15:48 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 5 Aug 2017 13:48:33 +0000 (15:48 +0200)
com.woltlab.wcf/templates/mediaJavaScript.tpl
wcfsetup/install/files/acp/templates/mediaJavaScript.tpl
wcfsetup/install/files/js/WoltLabSuite/Core/Media/Manager/Search.js
wcfsetup/install/lang/de.xml
wcfsetup/install/lang/en.xml

index 3d6ff2480d63282b62b0adde7e1edac4696eda07..54e4b56231e4845aad422fe656b5ee9907169853 100644 (file)
@@ -13,6 +13,7 @@
                        'wcf.media.manager': '{lang}wcf.media.manager{/lang}',
                        'wcf.media.edit': '{lang}wcf.media.edit{/lang}',
                        'wcf.media.button.insert': '{lang}wcf.media.button.insert{/lang}',
+                       'wcf.media.search.info.searchStringThreshold': '{lang __literal=true}wcf.media.search.info.searchStringThreshold{/lang}',
                        'wcf.media.search.noResults': '{lang}wcf.media.search.noResults{/lang}',
                        'wcf.media.upload.error.noImage': '{lang}wcf.media.upload.error.noImage{/lang}',
                        'wcf.media.upload.success': '{lang}wcf.media.upload.success{/lang}'
index 01cb3c3dcac5598705af55ea04b75a0a9322ed3c..2fb7db645b20e60128533d7878c783aa14dea250 100644 (file)
@@ -13,6 +13,7 @@
                        'wcf.media.manager': '{lang}wcf.media.manager{/lang}',
                        'wcf.media.edit': '{lang}wcf.media.edit{/lang}',
                        'wcf.media.button.insert': '{lang}wcf.media.button.insert{/lang}',
+                       'wcf.media.search.info.searchStringThreshold': '{lang __literal=true}wcf.media.search.info.searchStringThreshold{/lang}',
                        'wcf.media.search.noResults': '{lang}wcf.media.search.noResults{/lang}',
                        'wcf.media.upload.error.noImage': '{lang}wcf.media.upload.error.noImage{/lang}',
                        'wcf.media.upload.success': '{lang}wcf.media.upload.success{/lang}'
index 9ad00b9e26d27cf692f1f53eebc4bc58a937ebbe..624560f3d1d3f1c50a0ed73689bbfeda864949c5 100644 (file)
@@ -85,7 +85,9 @@ define(['Ajax', 'Core', 'Dom/Traverse', 'Dom/Util', 'EventKey', 'Language', 'Ui/
                                        else {
                                                innerInfo = elCreate('p');
                                                innerInfo.className = 'innerInfo';
-                                               innerInfo.textContent = Language.get('wcf.media.search.info.searchStringThreshold');
+                                               innerInfo.textContent = Language.get('wcf.media.search.info.searchStringThreshold', {
+                                                       minSearchLength: this._mediaManager.getOption('minSearchLength')
+                                               });
                                                
                                                DomUtil.insertAfter(innerInfo, this._input.parentNode);
                                        }
index ff0e7668f3bfb5f2e30d6e1de1b6f7dc2e0d6e3e..571f1a23f5835605d7bb78ee18e66b408f5b500c 100644 (file)
@@ -2667,6 +2667,7 @@ Fehler sind beispielsweise:
                <item name="wcf.media.uploader"><![CDATA[Hochgeladen von]]></item>
                <item name="wcf.media.uploadTime"><![CDATA[Datum hochgeladen]]></item>
                <item name="wcf.media.search.noResults"><![CDATA[Es wurden keine Ergebnisse gefunden.]]></item>
+               <item name="wcf.media.search.info.searchStringThreshold"><![CDATA[Der Suchbegriff muss mindestens {#$minSearchLength} Zeichen lang sein.]]></item>
        </category>
        
        <category name="wcf.message">
index 28bc1327bf7a8dddc582ff429149096b81702246..52f9293072ef516a9da2ca39c38532e2eaf7b6be 100644 (file)
@@ -2621,6 +2621,7 @@ Errors are:
                <item name="wcf.media.uploader"><![CDATA[Uploaded By]]></item>
                <item name="wcf.media.uploadTime"><![CDATA[Upload Date]]></item>
                <item name="wcf.media.search.noResults"><![CDATA[The search returned no results.]]></item>
+               <item name="wcf.media.search.info.searchStringThreshold"><![CDATA[The search term must contain at least {#$minSearchLength} character{if $minSearchLength > 1}s{/if}.]]></item>
        </category>
        
        <category name="wcf.message">