Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
nerrons
purr-data
Commits
d51be71c
Commit
d51be71c
authored
Mar 24, 2016
by
Jonathan Wilkes
Browse files
use locale strings for find bar placeholder text
parent
3c3d812a
Changes
3
Hide whitespace changes
Inline
Side-by-side
pd/nw/index.js
View file @
d51be71c
...
...
@@ -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
);
...
...
pd/nw/locales/en/translation.json
View file @
d51be71c
...
...
@@ -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"
,
...
...
pd/nw/pd_canvas.js
View file @
d51be71c
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment