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
Wynn
purr-data
Commits
7739f3ab
Commit
7739f3ab
authored
Jan 17, 2016
by
Jonathan Wilkes
Browse files
use translation string for clipboard pasting prompt
parent
0b6f60c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
pd/nw/locales/en/translation.json
View file @
7739f3ab
...
...
@@ -243,6 +243,7 @@
"devtools_tt"
:
"Show the DevTools window (for debugging)"
},
"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"
:
{
"yes"
:
"Yes"
,
"yes_tt"
:
"Write the changes to file before closing the patch"
,
...
...
pd/nw/pd_canvas.js
View file @
7739f3ab
...
...
@@ -64,7 +64,7 @@ function might_be_a_pd_file(stuff_from_clipboard) {
}
function
permission_to_paste_from_external_clipboard
()
{
return
global
.
confirm
(
"
Warning: you are about to paste Pd code that came from somewhere outside of Pd. Do you want to continue?
"
);
return
global
.
confirm
(
l
(
"
canvas.paste_clipboard_prompt
"
)
);
}
function
nw_window_focus_callback
()
{
...
...
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