-
Notifications
You must be signed in to change notification settings - Fork 6
/
edit-en.js
46 lines (44 loc) · 1.19 KB
/
edit-en.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//JS - abc2svg edit - text in English
function loadtxt() {
texts = {
bad_nb: 'Bad line number',
fn: 'File name: ',
load: 'Please, load the included file ',
play: 'Play',
stop: 'Stop',
}
var text_kv = {
a: 'About',
b: 'ABC files:',
// df: 'abc2svg features',
// dp: 'abc2svg parameters',
er: 'Errors',
f: 'File',
fl: 'Load file',
fs: 'Font size',
gv: 'Volume',
h: 'Help',
ha: 'Help',
lg: 'Language',
playbutton: 'Play',
pr: 'Preferences',
saveas: 'Save file',
sful: 'Soundfont URL',
sp: 'Speed'
}
for (var k in text_kv)
document.getElementById(k).innerHTML = text_kv[k];
document.getElementById("hlp").outerHTML = '<ul id="hlp">\n\
<li>You may either:\n\
<ul>\n\
<li>directly write ABC code in the text area, or</li>\n\
<li>paste ABC code in the text area, or</li>\n\
<li>load a local ABC file (\'ABC | Load file\' button), or</li>\n\
<li>drag & drop a local file from your file manager\n\
or a selected text to the text area.</li>\n\
</ul></li>\n\
<li>You may change at will the ABC code in the text area.<br/>\n\
Rendering is done 2 seconds later.</li>\n\
<li>The \'Print\' button of the browser outputs the rendering area.</li>\n\
</ul>'
}