Pass full translation dictionary to TranslationGuildContext and decide there whether to use singular or plural
This commit is contained in:
parent
b309f155be
commit
495288b887
3 changed files with 7 additions and 8 deletions
|
@ -27,7 +27,7 @@ namespace Geekbot.net.Commands.Utils
|
|||
var transContext = await _translation.GetGuildContext(Context);
|
||||
var choicesArray = choices.Split(';');
|
||||
var choice = new Random().Next(choicesArray.Length);
|
||||
await ReplyAsync(transContext.GetString("Choice", choicesArray[choice]));
|
||||
await ReplyAsync(transContext.GetString("Choice", choicesArray[choice].Trim()));
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue