mirror of
https://github.com/reality/dbot.git
synced 2024-11-23 20:39:25 +01:00
Loads strings properly. Some changes to the category. Mostly working now, just needs finished Spanish translations and some further testing because I've probably mistyped some category names.
This commit is contained in:
parent
95eaa7f948
commit
3e793d43d5
@ -124,7 +124,7 @@ var quotes = function(dbot) {
|
||||
dbot.say(data.channel, q[1] + dbot.strings[dbot.language].locked_category);
|
||||
}
|
||||
} else {
|
||||
dbot.say(data.channel, 'No quotes exist under ' + q[1]);
|
||||
dbot.say(data.channel, dbot.strings[dbot.language].no_quotes + q[1]);
|
||||
}
|
||||
} else {
|
||||
var last = addStack.pop();
|
||||
|
2
run.js
2
run.js
@ -41,7 +41,7 @@ var DBot = function(timers) {
|
||||
}
|
||||
|
||||
// Load the strings file
|
||||
this.strings = fs.readFileSync('strings.json', 'utf-8');
|
||||
this.strings = JSON.parse(fs.readFileSync('strings.json', 'utf-8'));
|
||||
|
||||
// Populate bot properties with config data
|
||||
this.name = this.config.name || 'dbox';
|
||||
|
@ -33,9 +33,8 @@
|
||||
"unmodehate": "No longer hating on ",
|
||||
"qlock": "Locked quote category: ",
|
||||
"spelling_self": " meant: ",
|
||||
"spelling_other": " thinks ",
|
||||
"spelling_other": " thinks "
|
||||
},
|
||||
|
||||
"spanish": {
|
||||
"syntax_error": "Sintaxis no válida. Iniciar la incineración.",
|
||||
"module_load_error": "No se pudó cargar el módulo: ",
|
||||
@ -70,8 +69,6 @@
|
||||
"unmodehate": "",
|
||||
"qlock": "",
|
||||
"spelling_self": "",
|
||||
"spelling_other_1": "",
|
||||
"spelling_other_2": ""
|
||||
|
||||
"spelling_other": ""
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user