Details
-
Task
-
Resolution: Fixed
-
Minor
-
4.2
-
None
-
Unknown
-
N/A
-
N/A
-
Description
Some words are hardcoded instead of using translation keys.
There are particulary two strings :
- Show all results... which is in searchSuggest.js
new XWiki.widgets.XListItem( "Show all results...", {
I added the following key : $msg.get('xwiki.lucene.showresults')
new XWiki.widgets.XListItem( "$msg.get('xwiki.lucene.showresults')", {
- No results! which is in suggest.js
shownoresults:true,noresults:"No results!",maxheight:250
I added the following key : $msg.get('xwiki.lucene.noresults') :
shownoresults:true,noresults:"$msg.get('xwiki.lucene.noresults')",maxheight:250
suggest.js is not interpreted, so you must edit javascript.vm :
$xwiki.jsfx.use('uicomponents/suggest/suggest.js')
=> $xwiki.jsfx.use('uicomponents/suggest/suggest.js', true)
Attachments
Issue Links
- is related to
-
XWIKI-7072 Search suggest source names are not translatable
- Closed
- relates to
-
XWIKI-8078 Make the Suggest widget localizable
- Closed