From 23a6fbe1f56684efe587116b20357c8a7dd63993 Mon Sep 17 00:00:00 2001 From: Karrz1 <127596890+Karrz1@users.noreply.github.com> Date: Mon, 16 Nov 2026 20:12:58 +0000 Subject: [PATCH] Forever Combat Nameplates: English messages, Russian on ruRU clients The four chat messages of the add-on were German. They are English now, with Russian text when the client locale is ruRU. Only the printed text changes; the add-on logic is SIN's 3.0 as before. --- .../ForeverCombatNameplates.lua | 22 +++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/src/modules/PlayerbotV2/Addon/ForeverCombatNameplates/ForeverCombatNameplates.lua b/src/modules/PlayerbotV2/Addon/ForeverCombatNameplates/ForeverCombatNameplates.lua index 3a1dbbacab..051dcc9b85 100644 --- a/src/modules/PlayerbotV2/Addon/ForeverCombatNameplates/ForeverCombatNameplates.lua +++ b/src/modules/PlayerbotV2/Addon/ForeverCombatNameplates/ForeverCombatNameplates.lua @@ -2,6 +2,20 @@ local _, build = GetBuildInfo() if (tonumber(build) or 0) < 70532 then return end local prefix = "FCN_PLATES1" +local text = { + noSwitch = "Forever Combat Nameplates: the client could not switch enemy nameplates.", + off = "Forever Combat Nameplates: off. Turn Enemy Unit Nameplates on and Always Show Nameplates off (Esc > Options > Nameplates).", + on = "Forever Combat Nameplates: on, the realm shows bars only for mobs fighting you or your pet.", + waiting = "Forever Combat Nameplates: no answer from the realm yet, asking again. Bars show in combat until it answers.", +} +if GetLocale() == "ruRU" then + text = { + noSwitch = "Forever Combat Nameplates: клиент не смог переключить индикаторы противников.", + off = "Forever Combat Nameplates: выключено. Включите индикаторы противников и выключите «Всегда показывать индикаторы» (Esc > Настройки > Индикаторы).", + on = "Forever Combat Nameplates: включено, полоски здоровья только у противников, которые сражаются с вами или вашим питомцем.", + waiting = "Forever Combat Nameplates: сервер ещё не ответил, запрос повторяется. До ответа полоски показываются в бою.", + } +end local enemies, always = "nameplateShowEnemies", "nameplateShowAll" local events = CreateFrame("Frame") local panel, desired, confirmed @@ -65,7 +79,7 @@ local function suppressEnemies(suppress) end if not ok and not warned then warned = true - print("Forever Combat Nameplates: Der Client konnte die Gegnerplaketten nicht umschalten.") + print(text.noSwitch) end end @@ -150,11 +164,11 @@ end) SLASH_FOREVERCOMBATNAMEPLATES1 = "/fcn" SlashCmdList.FOREVERCOMBATNAMEPLATES = function() if not desired then - print("Forever Combat Nameplates: Kampfmodus aus. Prüfe die Optionen für Gegnerplaketten.") + print(text.off) elseif confirmed then - print("Forever Combat Nameplates: Der Realm filtert deine Kampfgegner.") + print(text.on) else - print("Forever Combat Nameplates: Noch keine Bestätigung vom Realm. Anfrage wird wiederholt.") + print(text.waiting) requestMode(true) end end