From 320cbdba5ed1431827591cc41eebfc060b9b1c74 Mon Sep 17 00:00:00 2001 From: Basique Evangelist Date: Mon, 31 Dec 2018 22:55:09 +0300 Subject: [PATCH] Allow getting locales --- JetKarmaBot/Commands/ChangeLocaleCommand.cs | 2 +- JetKarmaBot/lang/en-US.json | 4 ++-- JetKarmaBot/lang/ru-RU.json | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/JetKarmaBot/Commands/ChangeLocaleCommand.cs b/JetKarmaBot/Commands/ChangeLocaleCommand.cs index 0a0b75e..2b59f5c 100644 --- a/JetKarmaBot/Commands/ChangeLocaleCommand.cs +++ b/JetKarmaBot/Commands/ChangeLocaleCommand.cs @@ -19,7 +19,7 @@ namespace JetKarmaBot.Commands { Client.SendTextMessageAsync( args.Message.Chat.Id, - currentLocale["jetkarmabot.changelocale.noparams"], + currentLocale["jetkarmabot.changelocale.getlocale"], replyToMessageId: args.Message.MessageId); return true; } diff --git a/JetKarmaBot/lang/en-US.json b/JetKarmaBot/lang/en-US.json index f609d78..01ed7ad 100644 --- a/JetKarmaBot/lang/en-US.json +++ b/JetKarmaBot/lang/en-US.json @@ -8,6 +8,6 @@ "jetkarmabot.award.statustext": "{0} is at {1}{2} now.", "jetkarmabot.status.listalltext": "Your badges report:", "jetkarmabot.status.listspecifictext": "You are at {0}{1} now.", - "jetkarmabot.changelocale.noparams": "Sorry, but I don't speak the null language.", - "jetkarmabot.changelocale.justchanged": "good" + "jetkarmabot.changelocale.justchanged": "good", + "jetkarmabot.changelocale.getlocale": "I'm currently speaking in English (Simplified)." } \ No newline at end of file diff --git a/JetKarmaBot/lang/ru-RU.json b/JetKarmaBot/lang/ru-RU.json index 880e4ed..49c161c 100644 --- a/JetKarmaBot/lang/ru-RU.json +++ b/JetKarmaBot/lang/ru-RU.json @@ -8,6 +8,6 @@ "jetkarmabot.award.statustext": "У {0} теперь {1}{2}.", "jetkarmabot.status.listalltext": "У вас :", "jetkarmabot.status.listspecifictext": "У вас сейчас {0}{1}.", - "jetkarmabot.changelocale.noparams": "Простите, но я не могу говорить на нуллевом языке.", - "jetkarmabot.changelocale.justchanged": "хорошо" + "jetkarmabot.changelocale.justchanged": "хорошо", + "jetkarmabot.changelocale.getlocale": "Я сейчас говорю на языке \"Русский (Россия)\"." } \ No newline at end of file