Fix Bug 898766, use window trans to ensure search query is localizable