3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-24 04:49:25 +01:00

also add a link for removals

This commit is contained in:
reality 2014-06-19 15:44:31 +00:00
parent 3250e25aa0
commit 610a8cfabf
2 changed files with 12 additions and 10 deletions

View File

@ -105,7 +105,8 @@ var commands = function(dbot) {
this.internalAPI.resetRemoveTimer(event, key, removedQuote); this.internalAPI.resetRemoveTimer(event, key, removedQuote);
event.reply(dbot.t('removed_from', { event.reply(dbot.t('removed_from', {
'quote': removedQuote, 'quote': removedQuote,
'category': key 'category': key,
'link': dbot.api.web.getUrl('quotes/' + encodeURIComponent(key))
})); }));
}.bind(this); }.bind(this);
@ -138,7 +139,8 @@ var commands = function(dbot) {
this.internalAPI.resetRemoveTimer(event, key, quote); this.internalAPI.resetRemoveTimer(event, key, quote);
event.reply(dbot.t('removed_from', { event.reply(dbot.t('removed_from', {
'category': key, 'category': key,
'quote': quote 'quote': quote,
'link': dbot.api.web.getUrl('quotes/' + encodeURIComponent(key))
})); }));
}.bind(this); }.bind(this);

View File

@ -90,14 +90,14 @@
"it": "Smettila di scoglionare con spam. Ripprova tra qualche minuto..." "it": "Smettila di scoglionare con spam. Ripprova tra qualche minuto..."
}, },
"removed_from": { "removed_from": {
"en": "'{quote}' removed from {category}", "en": "'{quote}' removed from {category} - {link}",
"es": "'{quote}' quitado de {category}", "es": "'{quote}' quitado de {category} - {link}",
"na'vi": "'{quote}'(it/ti) 'ìyaku {category}", "na'vi": "'{quote}'(it/ti) 'ìyaku {category} - {link}",
"cy": "'{quote}' wedi ei ddileu o {category}", "cy": "'{quote}' wedi ei ddileu o {category} - {link}",
"nl": "{quote} verwijderd uit {category}", "nl": "{quote} verwijderd uit {category} - {link}",
"de": "'{quote} aus {category} gelöscht", "de": "'{quote} aus {category} gelöscht - {link}",
"fr": "'{quote}' enlevé(e) {category}", "fr": "'{quote}' enlevé(e) {category} - {link}",
"it": "'{quote}' rimossa da {category}" "it": "'{quote}' rimossa da {category} - {link}"
}, },
"q_not_exist_under": { "q_not_exist_under": {
"en": "'{quote}' doesn't exist under '{category}'.", "en": "'{quote}' doesn't exist under '{category}'.",