3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 22:39:26 +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:
Luke Slater 2012-03-25 00:08:32 +00:00
parent 95eaa7f948
commit 3e793d43d5
3 changed files with 4 additions and 7 deletions

View File

@ -124,7 +124,7 @@ var quotes = function(dbot) {
dbot.say(data.channel, q[1] + dbot.strings[dbot.language].locked_category); dbot.say(data.channel, q[1] + dbot.strings[dbot.language].locked_category);
} }
} else { } else {
dbot.say(data.channel, 'No quotes exist under ' + q[1]); dbot.say(data.channel, dbot.strings[dbot.language].no_quotes + q[1]);
} }
} else { } else {
var last = addStack.pop(); var last = addStack.pop();

2
run.js
View File

@ -41,7 +41,7 @@ var DBot = function(timers) {
} }
// Load the strings file // 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 // Populate bot properties with config data
this.name = this.config.name || 'dbox'; this.name = this.config.name || 'dbox';

View File

@ -33,9 +33,8 @@
"unmodehate": "No longer hating on ", "unmodehate": "No longer hating on ",
"qlock": "Locked quote category: ", "qlock": "Locked quote category: ",
"spelling_self": " meant: ", "spelling_self": " meant: ",
"spelling_other": " thinks ", "spelling_other": " thinks "
}, },
"spanish": { "spanish": {
"syntax_error": "Sintaxis no válida. Iniciar la incineración.", "syntax_error": "Sintaxis no válida. Iniciar la incineración.",
"module_load_error": "No se pudó cargar el módulo: ", "module_load_error": "No se pudó cargar el módulo: ",
@ -70,8 +69,6 @@
"unmodehate": "", "unmodehate": "",
"qlock": "", "qlock": "",
"spelling_self": "", "spelling_self": "",
"spelling_other_1": "", "spelling_other": ""
"spelling_other_2": ""
} }
} }