Skip to content
Snippets Groups Projects
Commit 7f09e042 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Multi-language support

parent 843a632d
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
...@@ -91,14 +91,14 @@ while(bbs.online) { ...@@ -91,14 +91,14 @@ while(bbs.online) {
} }
} }
bbs.nodesync(); bbs.nodesync();
var keys = "Q?"; var keys = console.quit_key + "?";
if(user.is_sysop) { if(user.is_sysop) {
keys += "ARED"; keys += "ARED";
console.mnemonics(bbs.text(WhichTextFileSysop)); console.mnemonics(bbs.text(WhichTextFileSysop));
} else } else
console.mnemonics(bbs.text(WhichTextFile)); console.mnemonics(bbs.text(WhichTextFile));
var cmd = console.getkeys(keys, list.length); var cmd = console.getkeys(keys, list.length);
if(cmd == 'Q' || (!cmd && !prev)) if(cmd == console.quit_key || (!cmd && !prev))
break; break;
switch(cmd) { switch(cmd) {
case 'D': case 'D':
...@@ -146,7 +146,7 @@ while(bbs.online) { ...@@ -146,7 +146,7 @@ while(bbs.online) {
break; break;
} }
case 'R': case 'R':
console.print(bbs.text(RemoveWhichTextFile)); console.putmsg(bbs.text(RemoveWhichTextFile));
var i = console.getnum(list.length); var i = console.getnum(list.length);
if(i < 1) if(i < 1)
break; break;
...@@ -159,7 +159,7 @@ while(bbs.online) { ...@@ -159,7 +159,7 @@ while(bbs.online) {
} }
break; break;
case 'E': case 'E':
console.print(bbs.text(EditWhichTextFile)); console.putmsg(bbs.text(EditWhichTextFile));
var i = console.getnum(list.length); var i = console.getnum(list.length);
if(i < 1) if(i < 1)
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment