mirror of
https://github.com/reality/dbot.git
synced 2024-12-26 04:32:37 +01:00
strings.json for users module
This commit is contained in:
parent
a332305a25
commit
824e6fb3ff
11
modules/users/strings.json
Normal file
11
modules/users/strings.json
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"alias": {
|
||||||
|
"english": "{alias} is an alias of {user}"
|
||||||
|
},
|
||||||
|
"unknown_alias": {
|
||||||
|
"english": "{alias} does not currently exist as an alias."
|
||||||
|
},
|
||||||
|
"aliasparentset": {
|
||||||
|
"english": "{newParent} is now the parent user, and {newAlias} is an alias"
|
||||||
|
}
|
||||||
|
}
|
@ -26,9 +26,10 @@ var users = function(dbot) {
|
|||||||
var knownUsers = getServerUsers(event);
|
var knownUsers = getServerUsers(event);
|
||||||
var alias = event.params[1].trim();
|
var alias = event.params[1].trim();
|
||||||
if(knownUsers.aliases.hasOwnProperty(alias)) {
|
if(knownUsers.aliases.hasOwnProperty(alias)) {
|
||||||
event.reply(alias + ' is an alias of ' + knownUsers.aliases[alias]);
|
event.reply(dbot.t('alias', { 'alias': alias,
|
||||||
|
'user': knownUsers.aliases[alias] }));
|
||||||
} else {
|
} else {
|
||||||
event.reply(alias + ' is not known as an alias to me.');
|
event.reply(dbot.t('unknown_alias', { 'alias': alias }));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -57,10 +58,10 @@ var users = function(dbot) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
event.reply(newParent + ' is now the parent user, and ' +
|
event.reply(dbot.t('aliasparentset', { 'newParent': newParent,
|
||||||
newAlias + ' is an alias.');
|
'newAlias': newAlias }));
|
||||||
} else {
|
} else {
|
||||||
event.reply('Given new parent does not currently exist as an alias.');
|
event.reply(dbot.t('unknown_alias', { 'alias': newParent}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user