summaryrefslogtreecommitdiffstats
path: root/src/ftvhelp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ftvhelp.cpp')
-rw-r--r--src/ftvhelp.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ftvhelp.cpp b/src/ftvhelp.cpp
index 3988c57..17b4466 100644
--- a/src/ftvhelp.cpp
+++ b/src/ftvhelp.cpp
@@ -727,13 +727,15 @@ void FTVHelp::generateTreeView(QString* OutString)
if (searchEngine)
{
t << " <script type=\"text/javascript\"><!--\n";
- t << " var searchBox = new SearchBox(\"searchBox\", \"search\", true);\n";
+ t << " var searchBox = new SearchBox(\"searchBox\", \"search\", true, '"
+ << theTranslator->trSearch() << "');\n";
t << " --></script>\n";
t << " <div id=\"MSearchBox\" class=\"MSearchBoxInactive\">\n";
t << " <div class=\"MSearchBoxRow\"><span class=\"MSearchBoxLeft\">\n";
t << " <a id=\"MSearchClose\" href=\"javascript:searchBox.CloseResultsWindow()\">"
<< "<img id=\"MSearchCloseImg\" border=\"0\" src=\"search/close.png\" alt=\"\"/></a>\n";
- t << " <input type=\"text\" id=\"MSearchField\" value=\"Search\" accesskey=\"S\"\n";
+ t << " <input type=\"text\" id=\"MSearchField\" value=\""
+ << theTranslator->trSearch() << "\" accesskey=\"S\"\n";
t << " onfocus=\"searchBox.OnSearchFieldFocus(true)\" \n";
t << " onblur=\"searchBox.OnSearchFieldFocus(false)\" \n";
t << " onkeyup=\"searchBox.OnSearchFieldChange(event)\"/>\n";