From 570f6bd901bf95bbde3813a6d717d75537e77187 Mon Sep 17 00:00:00 2001 From: Macintosh II Date: Tue, 3 Oct 2023 00:02:38 +0300 Subject: [PATCH] Mention user in small title Signed-off-by: Macintosh II --- locale/Messages.resx | 4 ++-- locale/Messages.ru.resx | 4 ++-- locale/Messages.tt-ru.resx | 4 ++-- src/Commands/ToolsCommandGroup.cs | 3 ++- src/Messages.Designer.cs | 4 ++-- 5 files changed, 10 insertions(+), 9 deletions(-) diff --git a/locale/Messages.resx b/locale/Messages.resx index bda56cf..c3060f9 100644 --- a/locale/Messages.resx +++ b/locale/Messages.resx @@ -648,8 +648,8 @@ Nitro booster since - - Your random number is: + + Random number for {0} is: Isn't it obvious? diff --git a/locale/Messages.ru.resx b/locale/Messages.ru.resx index f627842..ed03244 100644 --- a/locale/Messages.ru.resx +++ b/locale/Messages.ru.resx @@ -648,8 +648,8 @@ Начал бустить сервер - - Ваше случайное число: + + Случайное число для {0}: Разве это не очевидно? diff --git a/locale/Messages.tt-ru.resx b/locale/Messages.tt-ru.resx index 49e7093..02a9ec9 100644 --- a/locale/Messages.tt-ru.resx +++ b/locale/Messages.tt-ru.resx @@ -648,8 +648,8 @@ бустит сервер со времен - - ваше рандомное число: + + рандомное число {0}: ну чувак... diff --git a/src/Commands/ToolsCommandGroup.cs b/src/Commands/ToolsCommandGroup.cs index 65897b2..dca2094 100644 --- a/src/Commands/ToolsCommandGroup.cs +++ b/src/Commands/ToolsCommandGroup.cs @@ -296,7 +296,8 @@ public class ToolsCommandGroup : CommandGroup embedColor = ColorsList.Red; } - var embed = new EmbedBuilder().WithSmallTitle(Messages.RandomOutput, user) + var embed = new EmbedBuilder().WithSmallTitle( + string.Format(Messages.RandomTitle, user.GetTag()), user) .WithDescription(description.ToString()) .WithColour(embedColor) .Build(); diff --git a/src/Messages.Designer.cs b/src/Messages.Designer.cs index 7f93fa2..aeb6aef 100644 --- a/src/Messages.Designer.cs +++ b/src/Messages.Designer.cs @@ -1122,10 +1122,10 @@ namespace Octobot { } } - internal static string RandomOutput + internal static string RandomTitle { get { - return ResourceManager.GetString("RandomOutput", resourceCulture); + return ResourceManager.GetString("RandomTitle", resourceCulture); } }