Skip to content
Snippets Groups Projects
Commit 9eba6e3b authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

add translation strings for search window

parent a223fe85
No related branches found
No related tags found
No related merge requests found
...@@ -322,6 +322,9 @@ function add_events() { ...@@ -322,6 +322,9 @@ function add_events() {
function register_window_id(id, attrs) { function register_window_id(id, attrs) {
translate_form(); translate_form();
// Translate the placeholder for the search input:
document.getElementById("search_text").placeholder =
l("search.search_placeholder");
add_events(); add_events();
document.getElementById("results").textContent = "Building Index..."; document.getElementById("results").textContent = "Building Index...";
document.getElementById("search_text").disabled = true; document.getElementById("search_text").disabled = true;
...@@ -385,8 +388,11 @@ function doc_search() { ...@@ -385,8 +388,11 @@ function doc_search() {
<input type="search" <input type="search"
name="search_text" name="search_text"
id="search_text" id="search_text"
placeholder="Search Pd Docs"> data-i18n="[title]search.search">
<input type="image" src="folder.svg" id="file_browser_button"> <input type="image"
src="folder.svg"
id="file_browser_button"
data-i18n="[title]search.browse">
</form> </form>
<div id="results"> <div id="results">
</div> </div>
......
...@@ -398,5 +398,10 @@ ...@@ -398,5 +398,10 @@
"close": "Close", "close": "Close",
"close_tt": "Close the font dialog" "close_tt": "Close the font dialog"
} }
},
"search": {
"browse": "browse the documentation",
"search": "search",
"search_placeholder": "Search Pd Docs"
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment