Pass full translation dictionary to TranslationGuildContext and decide there whether to use singular or plural

This commit is contained in:
runebaas 2019-05-12 01:07:22 +02:00
parent b309f155be
commit 495288b887
No known key found for this signature in database
GPG key ID: 2677AF508D0300D6
3 changed files with 7 additions and 8 deletions

View file

@ -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)
{