Currently we have difficulty translating this string into Chinese as the position of the search keyword is hardcoded in the new Vector's typeahead search.
Please create a separated entry for the use of the new typeahead search, and use placeholder to insert search keywords (e.g. Search for pages containing $1) so that it can be translated with ease, thank you!
URL: https://translatewiki.net/wiki/MediaWiki:Searchsuggest-containing/zh-hans
Developer notes
This refers to
. This will require changes in both Vector and WVUI.this is the footer-search-text parameter in App.vue
{{ footerSearchText }} <strong class="wvui-typeahead-search__suggestions__footer__text__query" >{{ searchQuery }}
A few challenges:
- Messages support HTML and wikitext. Message would look something like "Search for pages containing ''$1''"
- theoretically footerSearchText could be added as raw HTML, but Vue.js frowns upon that.
- if we're okay with using HTML in Vue, we would need to revise any .wvui-typeahead-searchsuggestionsfootertextquery rules to a generic b, strong tag (the wikitext parser generates b tags not strong tags
- Another option is using an event which is passed the query and the element as parameters. The event handler can then inject the message to the element using the query after passing it through message keys
QA steps
Visit any page and focus the search box. Type some text. Check the text at the bottom is phrased correctly and links to a full text search
QA Results - Beta
AC | Status | Details |
---|---|---|
1 | ✅ | T290392#7556264 |
QA Results - Prod
AC | Status | Details |
---|---|---|
1 | ✅ | T290392#7556299 |