diff --git a/pd/nw/dialog_search.html b/pd/nw/dialog_search.html index e186df75ea2d6759b2f34b209f336413153d654e..2edbc23bea9c15c88ff55170a6235ac0c0881187 100644 --- a/pd/nw/dialog_search.html +++ b/pd/nw/dialog_search.html @@ -322,6 +322,9 @@ function add_events() { function register_window_id(id, attrs) { translate_form(); + // Translate the placeholder for the search input: + document.getElementById("search_text").placeholder = + l("search.search_placeholder"); add_events(); document.getElementById("results").textContent = "Building Index..."; document.getElementById("search_text").disabled = true; @@ -385,8 +388,11 @@ function doc_search() { <input type="search" name="search_text" id="search_text" - placeholder="Search Pd Docs"> - <input type="image" src="folder.svg" id="file_browser_button"> + data-i18n="[title]search.search"> + <input type="image" + src="folder.svg" + id="file_browser_button" + data-i18n="[title]search.browse"> </form> <div id="results"> </div> diff --git a/pd/nw/locales/en/translation.json b/pd/nw/locales/en/translation.json index d7ec942b5712c1fe69d41af5e0cde4135157d447..0c85cb4883a5c5feba9a5766a0e5ba0d69877e09 100644 --- a/pd/nw/locales/en/translation.json +++ b/pd/nw/locales/en/translation.json @@ -398,5 +398,10 @@ "close": "Close", "close_tt": "Close the font dialog" } + }, + "search": { + "browse": "browse the documentation", + "search": "search", + "search_placeholder": "Search Pd Docs" } }