forked from moinejf/abc2svg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
edit-en.js
48 lines (46 loc) · 1.29 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
47
48
//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',
"fo", 'Follow music',
"fs", 'Font size',
"gv", 'Volume',
"h", 'Help',
"ha", 'Help',
"lg", 'Language',
"playbutton", 'Play',
"pr", 'Preferences',
"saveas", 'Save file',
"sftl", 'type',
"sful", 'Soundfont URL',
"sp", 'Speed'
]
for (var i = 0; i < text_kv.length; i += 2)
document.getElementById(text_kv[i]).innerHTML = text_kv[i + 1];
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>'
}