From 540613bba1749fc3c4bff94360ed3f66667f0300 Mon Sep 17 00:00:00 2001 From: alistair3149 Date: Tue, 31 Dec 2019 13:12:49 -0500 Subject: [PATCH] Changed suggestion placeholder --- i18n/de.json | 4 ++-- i18n/en.json | 4 ++-- i18n/qqq.json | 4 ++-- resources/scripts/wm-typeahead.js | 15 +++++++-------- 4 files changed, 13 insertions(+), 14 deletions(-) diff --git a/i18n/de.json b/i18n/de.json index 852e782c..dbb8f1d8 100644 --- a/i18n/de.json +++ b/i18n/de.json @@ -5,6 +5,6 @@ "skinname-citizen": "Citizen", "citizen-desc": "Ein responsive Skin entwickelt für das Star Citizen Wiki", - "citizen-search-loading-msg": "Lade", - "citizen-search-no-results-msg": "Keine Ergebnisse gefunden" + "citizen-search-no-results-title": "Keine Ergebnisse gefunden", + "citizen-search-no-results-desc": "Maybe continue to search for pages containing " } diff --git a/i18n/en.json b/i18n/en.json index a816c9f5..6d769d1f 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -8,6 +8,6 @@ "skinname-citizen": "Citizen", "citizen-desc": "A responsive skin developed for the Star Citizen Wiki", - "citizen-search-loading-msg": "Loading", - "citizen-search-no-results-msg": "No results found" + "citizen-search-no-results-title": "Sorry we couldn't find ", + "citizen-search-no-results-desc": "Maybe continue to search for pages containing " } diff --git a/i18n/qqq.json b/i18n/qqq.json index 649d52b7..a3dfddb5 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -8,6 +8,6 @@ "skinname-citizen": "{{name}}", "citizen-desc": "{{desc|what=skin|name=Citizen|url=https://github.com/StarCitizenTools/mediawiki-skins-Citizen}}", - "citizen-search-loading-msg": "Message displayed while loading search results", - "citizen-search-no-results-msg": "Message displayed if no results could be found" + "citizen-search-no-results-title": "Title of the message displayed if no results could be found", + "citizen-search-no-results-desc": "Description of the message displayed if no results could be found" } diff --git a/resources/scripts/wm-typeahead.js b/resources/scripts/wm-typeahead.js index bd2cbb20..9781cd26 100644 --- a/resources/scripts/wm-typeahead.js +++ b/resources/scripts/wm-typeahead.js @@ -228,14 +228,12 @@ window.WMTypeAhead = function ( appendTo, searchInput ) { * @returns {string} */ function getLoadingIndicator() { - const message = mw.message('citizen-search-loading-msg').plain(); - return `
-
-

` + message + `

-

...

+
+

+

@@ -247,14 +245,15 @@ window.WMTypeAhead = function ( appendTo, searchInput ) { * @returns {string} */ function getNoResultsIndicator() { - const message = mw.message('citizen-search-no-results-msg').plain(); + const titlemsg = mw.message('citizen-search-no-results-title').plain(); + const descmsg = mw.message('citizen-search-no-results-desc').plain(); return `
-

` + message + `

-

+

` + titlemsg + searchString `

+

` + descmsg + searchString `