Commit d51be71c authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

use locale strings for find bar placeholder text

parent 3c3d812a
......@@ -221,7 +221,7 @@ function console_find_keydown(evt) {
function add_events() {
// Find bar
var find_bar = document.getElementById("console_find_text");
find_bar.placeholder = "Search in Console";
find_bar.placeholder = l("pd_window.find.placeholder");
find_bar.addEventListener("keydown",
function(e) {
return console_find_keydown(e);
......
......@@ -244,6 +244,11 @@
"devtools": "Show DevTools",
"devtools_tt": "Show the DevTools window (for debugging)"
},
"pd_window": {
"find": {
"placeholder": "Search in Console"
}
},
"canvas": {
"paste_clipboard_prompt": "Warning: you are about to paste Pd code that came from somewhere outside of Pd. Do you want to continue?",
"save_dialog": {
......@@ -254,6 +259,9 @@
"cancel": "Cancel",
"cancel_tt": "Don't save any changes, and don't close the patch"
},
"find": {
"placeholder": "Search in Canvas"
},
"prop": {
"heading": {
"gop": "appearance",
......
......@@ -704,7 +704,8 @@ var canvas_events = (function() {
// Add placeholder text... this all needs to be collected into an
// add_events function similiar to the one in index.js
document.querySelector("#canvas_find_text").placeholder = "Search in Patch";
document.querySelector("#canvas_find_text").placeholder =
l("canvas.find.placeholder");
document.querySelector("#canvas_find_text").addEventListener("blur",
canvas_find_blur, false
);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment