From 6a7be044e133fedea6ff5b2db0a97862517dffdf Mon Sep 17 00:00:00 2001 From: Rinary Date: Sun, 11 Aug 2024 22:02:05 +0300 Subject: [PATCH] some fixes --- Content.Client/_Sunrise/StatsBoard/StatsEntry.xaml.cs | 6 +++--- .../Locale/ru-RU/_sunrise/_prototypes/access/accesses.ftl | 1 + Resources/Locale/ru-RU/_sunrise/statsboard/statsentry.ftl | 5 ++++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Content.Client/_Sunrise/StatsBoard/StatsEntry.xaml.cs b/Content.Client/_Sunrise/StatsBoard/StatsEntry.xaml.cs index 309caaba5b3..525d1a7d258 100644 --- a/Content.Client/_Sunrise/StatsBoard/StatsEntry.xaml.cs +++ b/Content.Client/_Sunrise/StatsBoard/StatsEntry.xaml.cs @@ -21,11 +21,11 @@ public StatsEntry(string entityName, float takeDamage, float takeHeal, float inf var statsText = ""; if (takeDamage > 0) - statsText += $"Получил урона: {takeDamage}\n"; + statsText += Loc.GetString("statsentry-dmg", ("name", takeDamage)); if (takeHeal > 0) - statsText += $"Получил лечения: {takeHeal}\n"; + statsText += Loc.GetString("statsentry-heal", ("name", takeHeal)); if (inflictedDamage > 0) - statsText += $"Нанес урона: {inflictedDamage}\n"; + statsText += Loc.GetString("statsentry-inf-dmg", ("name", inflictedDamage)); if (inflictedHeal > 0) statsText += $"Вылечил урона: {inflictedHeal}\n"; if (slippedCount > 0) diff --git a/Resources/Locale/ru-RU/_sunrise/_prototypes/access/accesses.ftl b/Resources/Locale/ru-RU/_sunrise/_prototypes/access/accesses.ftl index 3acc0fece16..95ada57f300 100644 --- a/Resources/Locale/ru-RU/_sunrise/_prototypes/access/accesses.ftl +++ b/Resources/Locale/ru-RU/_sunrise/_prototypes/access/accesses.ftl @@ -1,3 +1,4 @@ id-card-access-level-blueshield = Синий Щит id-card-access-level-ntrep = Представитель NT id-card-access-level-magistrat = Магистрат +id-card-access-level-barber = Парихмахер \ No newline at end of file diff --git a/Resources/Locale/ru-RU/_sunrise/statsboard/statsentry.ftl b/Resources/Locale/ru-RU/_sunrise/statsboard/statsentry.ftl index 73610010365..34ec419b884 100644 --- a/Resources/Locale/ru-RU/_sunrise/statsboard/statsentry.ftl +++ b/Resources/Locale/ru-RU/_sunrise/statsboard/statsentry.ftl @@ -1 +1,4 @@ -statsentry-character = Персонаж: \ No newline at end of file +statsentry-character = Персонаж: +statsentry-dmg = Получил урона: { $name }\n +statsentry-heal = Получил лечения: { $name }\n +statsentry-inf-dmg = Нанес урона: { $name }\n \ No newline at end of file