Skip to content

Commit

Permalink
Asd
Browse files Browse the repository at this point in the history
  • Loading branch information
zenril committed May 6, 2019
1 parent 4ba14a3 commit cd88e33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/commands/modules/tolang.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ function toLang(msg) {
var server = msg.server;

if(!msg.args || !msg.args.length){
msg.il8nResponse('mylang.more');
msg.il8nResponse('tolang.more');
return;
}

if(msg.args[0] == 'default'){
if(/default|off|none|unset|0/.test(msg.args[0])){
server.addMemberSetting(msg.message.member, 'toLanguage', 'default');
msg.il8nResponse('general.auto', {key: "tolang"});
return;
Expand All @@ -34,7 +34,6 @@ function toLang(msg) {
var docs = langMap.getLang(msg.args[0]);

if(!docs || !docs.length) {
//what dont know???? why? you should by now...
msg.il8nResponse('mylang.no', { lang: msg.args[0]});
return;
}
Expand Down
3 changes: 2 additions & 1 deletion src/lang.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@
"okay": "OK, now translating to :lang.",
"deny": "Sorry, you're not permitted",
"nope": "Sorry, I dont have a voice for :lang",
"shorthelp": "Translate your text to a different language eg. en, fr, jp, de etc."
"shorthelp": "Translate your text to a different language eg. en, fr, jp, de etc.",
"more" : "You must specify a language code. You can find codes with `:command_charlangs`.\nTo stop translating use `:command_chartolang none`"
},
"en.mygender": {
"okay": "OK, your personal gender is now :gender.",
Expand Down

0 comments on commit cd88e33

Please sign in to comment.