diff --git a/EldoUI/Core/Bindings.lua b/EldoUI/Core/Bindings.lua index ef4aebd..babdb18 100644 --- a/EldoUI/Core/Bindings.lua +++ b/EldoUI/Core/Bindings.lua @@ -102,7 +102,7 @@ end -- set again at login, once the saved language is read. function E:NameKeyBindings() self:NameModuleBindings() - _G.BINDING_HEADER_ELDOUI = E.brand + _G.BINDING_HEADER_ELDOUI = (E.brand or "EldoUI") _G.BINDING_NAME_ELDOUI_METER_TOGGLE = L["Show or hide the damage meter"] _G.BINDING_NAME_ELDOUI_METER_RESET = L["Clear the damage meter"] _G.BINDING_NAME_ELDOUI_LOOTGUIDE = L["Open or close the Loot Guide"] @@ -127,7 +127,7 @@ function E:NameKeyBindings() _G["BINDING_NAME_CLICK EldoUI_ConsumableButton7:LeftButton"] = L["Use the Hearthstone (Consumable Bar)"] _G["BINDING_NAME_CLICK EldoUI_ConsumableButton8:LeftButton"] = L["Mount up (Consumable Bar)"] _G["BINDING_NAME_CLICK EldoUI_ConsumableButton9:LeftButton"] = L["Use your mana gem (Consumable Bar)"] - _G.BINDING_HEADER_ELDOUIQUICKDRAW = E.brand .. " Quickdraw" + _G.BINDING_HEADER_ELDOUIQUICKDRAW = (E.brand or "EldoUI") .. " Quickdraw" for index = 1, 16 do _G[("BINDING_NAME_CLICK EldoUI_Quickdraw%d:LeftButton"):format(index)] = L["Quickdraw menu %d (hold)"]:format(index) end diff --git a/EldoUI/Core/Brand.lua b/EldoUI/Core/Brand.lua index b8b8291..0ef8562 100644 --- a/EldoUI/Core/Brand.lua +++ b/EldoUI/Core/Brand.lua @@ -31,6 +31,21 @@ local find, sub, gsub = string.find, string.sub, string.gsub E.brandShort = "con" E.brandGuide = "conStar" +-- The folder is still called EldoUI: "next to the EldoUI folder", "im +-- EldoUI-Ordner", "neben den Ordner EldoUI" keep the name, in every language +-- the texts come in. +local FOLDER_AFTER = { " folder", "-Ordner", "-mappe", " 폴더", "文件夹", "資料夾" } +local FOLDER_BEFORE = { "Ordner ", "dossier ", "carpeta ", "pasta ", "папкой ", "폴더를 " } +local function IsFolder(text, from, to) + for _, word in ipairs(FOLDER_AFTER) do + if sub(text, to, to + #word - 1) == word then return true end + end + for _, word in ipairs(FOLDER_BEFORE) do + if from > #word and sub(text, from - #word, from - 1) == word then return true end + end + return false +end + -- Is the name at text[from, to - 1] the product's name in a sentence? local function IsProse(text, from, to) local before = sub(text, from - 1, from - 1) @@ -58,7 +73,7 @@ end -- along ("UI", "star"); nil when it stays. local function Replacement(text, from, to) if sub(text, to, to + 1) == "UI" then - if IsProse(text, from, to + 2) then return E.brand, to + 2 end + if IsProse(text, from, to + 2) and not IsFolder(text, from, to + 2) then return E.brand, to + 2 end return nil end -- modules.Eldostar and eldo:EldoChime are keys. @@ -67,21 +82,46 @@ local function Replacement(text, from, to) if IsProse(text, from, to + 4) then return E.brandGuide, to + 4 end return nil end - -- "Eldo-Classic", "Eldo blue", "Eldo": the word alone. EldoModern, - -- EldoIcon and the author's name Eldodeldo go on in letters and stay. + -- "Eldo-Classic (1440p)" (a layout: a name, then its screen size) and + -- "Eldo blue", "Eldo (flat, accent border)": the word before a space. + -- EldoModern, EldoIcon and the author's name Eldodeldo go on in letters + -- and stay. So do the bare word and "Eldo-Realm": they can be a + -- character's name, which reaches L through E:Translate. local after = sub(text, to, to) - if find(after, "^[%w_]") then return nil end - if after == "-" and not find(sub(text, to + 1, to + 1), "^%u") then return nil end + if after == "-" then + if not find(text, "^%-%u[%a ]- %(%d+p%)", to) then return nil end + elseif after ~= " " then + return nil + end if IsProse(text, from, to) then return E.brandShort, to end return nil end -local cache = {} +-- French joins the article to a vowel: "d'EldoUI" is "de conUI", "cet +-- EldoUI" is "ce conUI". +local ELISIONS = { ["d'"] = "de ", ["D'"] = "De ", ["qu'"] = "que ", ["cet "] = "ce " } +local function Elide(lead) + for joined, apart in pairs(ELISIONS) do + if sub(lead, -#joined) == joined and not find(sub(lead, -#joined - 1, -#joined - 1), "^%a") then + return sub(lead, 1, -#joined - 1) .. apart + end + end + return lead +end + +local caches = {} -- language -> text -> the text as shown +local origin = {} -- a text as shown -> the text it was made from -- The text with the product's name as this fork shows it. local function Brand(text) if type(text) ~= "string" or (issecretvalue and issecretvalue(text)) then return text end if not find(text, "Eldo", 1, true) then return text end + local language = E.GetLanguage and E:GetLanguage() or "enUS" + local cache = caches[language] + if not cache then + cache = {} + caches[language] = cache + end local done = cache[text] if done then return done end local parts, count, pos = {}, 0, 1 @@ -91,7 +131,7 @@ local function Brand(text) local word, resume = Replacement(text, from, to + 1) count = count + 1 if word then - parts[count] = sub(text, pos, from - 1) .. word + parts[count] = Elide(sub(text, pos, from - 1)) .. word pos = resume else parts[count] = sub(text, pos, to) @@ -102,10 +142,11 @@ local function Brand(text) done = table.concat(parts) -- English: "an EldoUI profile" is "a conUI profile". Other languages have -- their own "an" (German: "an conUI senden"). - if done ~= text and (not E.GetLanguage or E:GetLanguage() == "enUS") then + if done ~= text and language == "enUS" then done = gsub(gsub(done, "^([Aa])n con", "%1 con"), "([^%w])([Aa])n con", "%1%2 con") end cache[text] = done + if done ~= text then origin[done] = text end return done end @@ -113,16 +154,51 @@ function E:Brand(text) return Brand(text) end --- L and E:Plural hand out branded text. A text looked up a second time (by --- the code that shows it) no longer holds the upstream name and comes back --- as it is. +-- Texts about EldoUI itself keep its name: reports that go to EldoUI's +-- authors, and the thanks to the people who built it. Found by their English +-- key, so the translations are kept too. +local UPSTREAM_KEYS = { "EldoUI's authors", "that went into EldoUI", "standing behind EldoUI" } +local kept = {} -- a text handed out with EldoUI's name +local function IsUpstream(key) + if type(key) ~= "string" or (issecretvalue and issecretvalue(key)) then return false end + if kept[key] then return true end + for _, words in ipairs(UPSTREAM_KEYS) do + if find(key, words, 1, true) then return true end + end + return false +end + +-- L and E:Plural hand out branded text. Much of the code looks a text up +-- while its file loads and again where it is shown (in the language saved +-- for the account, which is read later): the second lookup gets the branded +-- text, so it is traced back to the key it came from first. local meta = getmetatable(E.L) local lookup = meta.__index meta.__index = function(strings, key) - return Brand(lookup(strings, key)) + local source = key ~= nil and origin[key] + if source then key = source end + local text = lookup(strings, key) + if IsUpstream(key) then + if type(text) == "string" then kept[text] = true end + return text + end + return Brand(text) end local plural = E.Plural function E:Plural(n, one, other) - return Brand(plural(self, n, one, other)) + one, other = origin[one] or one, origin[other] or other + local text = plural(self, n, one, other) + if IsUpstream(other) or IsUpstream(one) then + if type(text) == "string" then kept[text] = true end + return text + end + return Brand(text) +end + +-- The text with EldoUI's own names, for a name saved outside EldoUI that +-- must not change with the fork's name (the Details and BigWigs profiles +-- "EldoUI - "). +function E:UpstreamText(key) + return lookup(self.L, key ~= nil and origin[key] or key) end diff --git a/EldoUI/Core/Commands.lua b/EldoUI/Core/Commands.lua index cb53999..b2e503c 100644 --- a/EldoUI/Core/Commands.lua +++ b/EldoUI/Core/Commands.lua @@ -855,7 +855,7 @@ end function EldoUI_OnAddonCompartmentEnter(_, button) local body, secondary = E.tokens.text.body, E.tokens.text.secondary GameTooltip:SetOwner(button, "ANCHOR_LEFT") - GameTooltip:AddLine(E.brand .. " " .. E.version, E:TokenColor("accent")) -- no-L: addon name and version + GameTooltip:AddLine((E.brand or "EldoUI") .. " " .. E.version, E:TokenColor("accent")) -- no-L: addon name and version E:TooltipHint(GameTooltip, { L["Click"], L["move frames"] }) E:TooltipHint(GameTooltip, { L["Right-click"], L["keybind mode"] }) GameTooltip:AddLine(L["Type %s in chat or use the EldoUI button in the Game Menu to open the EldoUI options."]:format(E:Highlight("/eui")), secondary[1], secondary[2], secondary[3], true) diff --git a/EldoUI/Core/Config.lua b/EldoUI/Core/Config.lua index f455eed..fe526a5 100644 --- a/EldoUI/Core/Config.lua +++ b/EldoUI/Core/Config.lua @@ -6358,7 +6358,7 @@ do frame.panel = panel frame.title = E:CreateText(panel, E.tokens.size.dialogTitle, "LEFT") frame.title:SetPoint("TOPLEFT", 10, -8) - frame.title:SetText(E.brand) -- no-L: addon name + frame.title:SetText(E.brand or "EldoUI") -- no-L: addon name frame.body = E:CreateText(panel, E.tokens.size.body, "LEFT") frame.body:SetPoint("TOPLEFT", frame.title, "BOTTOMLEFT", 0, -4) frame.body:SetText(L["Body text in your font and size."]) diff --git a/EldoUI/Core/Options.lua b/EldoUI/Core/Options.lua index e0d2152..fc7e493 100644 --- a/EldoUI/Core/Options.lua +++ b/EldoUI/Core/Options.lua @@ -37,7 +37,7 @@ end function E:InitializeOptions() panel = CreateFrame("Frame") - panel.name = "EldoUI" -- no-L: addon name in the Settings list + panel.name = (E.brand or "EldoUI") -- no-L: addon name in the Settings list local logo = panel:CreateTexture(nil, "ARTWORK") logo:SetTexture(E.media.logo) diff --git a/EldoUI/EldoUI.toc b/EldoUI/EldoUI.toc index 2f52af2..364ffc6 100644 --- a/EldoUI/EldoUI.toc +++ b/EldoUI/EldoUI.toc @@ -4,7 +4,7 @@ ## Author: Eldodeldo ## X-License: Apache-2.0 ## X-Copyright: Copyright 2026 Eldodeldo -## Version: 0.7.3005-p1 +## Version: 0.7.3005-p2 ## IconTexture: Interface\AddOns\EldoUI\Media\Textures\EldoIcon.tga ## AddonCompartmentFunc: EldoUI_OnAddonCompartmentClick ## AddonCompartmentFuncOnEnter: EldoUI_OnAddonCompartmentEnter diff --git a/EldoUI/Modules/Auction.lua b/EldoUI/Modules/Auction.lua index 45f4874..be86219 100644 --- a/EldoUI/Modules/Auction.lua +++ b/EldoUI/Modules/Auction.lua @@ -1763,7 +1763,7 @@ function M:ShowPage(name) if not self.panel or not pages[name] then return end self.current = name for pageName, page in pairs(pages) do page.frame:SetShown(pageName == name) end - self.panel.title:SetText(("%s|r %s"):format(E.color .. "EldoUI", TAB_TITLES[name])) + self.panel.title:SetText(("%s|r %s"):format(E.color .. (E.brand or "EldoUI"), TAB_TITLES[name])) self.panel:Show() self:HideNative() -- The sell slot's price line belongs to the Selling page. diff --git a/EldoUI/Modules/DBM.lua b/EldoUI/Modules/DBM.lua index 6123d8d..a6ac96a 100644 --- a/EldoUI/Modules/DBM.lua +++ b/EldoUI/Modules/DBM.lua @@ -897,9 +897,9 @@ function M:CreateDBMPanel() local gui = _G.DBM_GUI if type(gui) ~= "table" or type(gui.CreateNewPanel) ~= "function" then return end local ok, err = pcall(function() - local panel = gui:CreateNewPanel("EldoUI", "option") + local panel = gui:CreateNewPanel(E.brand or "EldoUI", "option") M.dbmPanel = panel - local area = panel:CreateArea("EldoUI") + local area = panel:CreateArea(E.brand or "EldoUI") local status = area:CreateText("", nil, true) local checks = {} local function Check(label, key) diff --git a/EldoUI/Modules/EditMode.lua b/EldoUI/Modules/EditMode.lua index f613fe5..cdc7ac9 100644 --- a/EldoUI/Modules/EditMode.lua +++ b/EldoUI/Modules/EditMode.lua @@ -879,7 +879,7 @@ local function Overlay(mover) self.hover = true OverlayColor(self, mover) GameTooltip:SetOwner(self, "ANCHOR_TOP") - GameTooltip:AddLine(AccentHex() .. "EldoUI|r " .. (mover.title or mover.name)) + GameTooltip:AddLine(AccentHex() .. (E.brand or "EldoUI") .. "|r " .. (mover.title or mover.name)) E.UIKit.TipText(GameTooltip, L["Drag to move. Right-click resets it to the layout position."]) E.UIKit.TipText(GameTooltip, L["Saved at once: Edit Mode's Revert does not undo EldoUI frames."]) if not mover.frame:IsShown() then diff --git a/EldoUI/Modules/InfoBar.lua b/EldoUI/Modules/InfoBar.lua index 1345166..f6c4e7c 100644 --- a/EldoUI/Modules/InfoBar.lua +++ b/EldoUI/Modules/InfoBar.lua @@ -1978,7 +1978,7 @@ E:RegisterDataText("Spacer", { E:RegisterDataText("EldoUI", { title = "EldoUI", - text = function() return Label("EldoUI") end, + text = function() return Label(E.brand or "EldoUI") end, tooltip = function(tooltip) local log = E.errors if log and (log.unseen or 0) > 0 then E.UIKit.TipPair(tooltip, L["New Lua errors"], tostring(log.unseen)) end diff --git a/EldoUI/Modules/InfoBar/Broker.lua b/EldoUI/Modules/InfoBar/Broker.lua index 5c11e3d..7b38f69 100644 --- a/EldoUI/Modules/InfoBar/Broker.lua +++ b/EldoUI/Modules/InfoBar/Broker.lua @@ -27,7 +27,7 @@ local _, E = ... local L = E.L local M = E.modules.InfoBar -local PREFIX = "EldoUI: " +local PREFIX = (E.brand or "EldoUI") .. ": " -- fork: Core/Brand.lua local TICK_KEY = "InfoBar:broker" local Broker = { diff --git a/EldoUI/Modules/Integrations.lua b/EldoUI/Modules/Integrations.lua index 4eed6d4..eda2e9e 100644 --- a/EldoUI/Modules/Integrations.lua +++ b/EldoUI/Modules/Integrations.lua @@ -1239,7 +1239,7 @@ function M:RXPLocaleStatus() return "" end -- texture is named here. The table is filled from EldoUI's media at login. local rxpTheme if C_AddOns.DoesAddOnExist("RXPGuides") then - rxpTheme = { name = "EldoUI", author = "EldoUI", displayName = "EldoUI" } + rxpTheme = { name = "EldoUI", author = "EldoUI", displayName = (E.brand or "EldoUI") } _G.RXPGuides_Themes = _G.RXPGuides_Themes or {} table.insert(_G.RXPGuides_Themes, rxpTheme) end @@ -1527,7 +1527,8 @@ end -- The BigWigs profile EldoUI makes: one per layout, "EldoUI - ". function M:BigWigsProfileName() local layout = E.layouts and E.layouts[E.db.general.layout] - local title = layout and layout.title and L[layout.title] or tostring(E.db.general.layout or "") + -- Fork (conUI): EldoUI's wording, so a BigWigs profile made before keeps its name. + local title = layout and layout.title and E:UpstreamText(layout.title) or tostring(E.db.general.layout or "") local name = "EldoUI - " .. title name = E:Utf8Sub(name, 50) return name diff --git a/EldoUI/Modules/QoL/Tweaks.lua b/EldoUI/Modules/QoL/Tweaks.lua index c394497..d79ab1b 100644 --- a/EldoUI/Modules/QoL/Tweaks.lua +++ b/EldoUI/Modules/QoL/Tweaks.lua @@ -827,7 +827,7 @@ function M:GameSettingLines() local value if CVarExists(name) then local owned = E.CVarOwner and E:CVarOwner(name) == CVAR_OWNER - value = tostring(CVarValue(name)) .. (owned and " " .. E:TextHex("good") .. "(set by EldoUI)|r" or "") + value = tostring(CVarValue(name)) .. (owned and " " .. E:TextHex("good") .. "(set by " .. (E.brand or "EldoUI") .. ")|r" or "") else value = E:TextHex("secondary") .. "not on this client|r" end diff --git a/EldoUI/Modules/Setups.lua b/EldoUI/Modules/Setups.lua index adc417a..403eb10 100644 --- a/EldoUI/Modules/Setups.lua +++ b/EldoUI/Modules/Setups.lua @@ -53,7 +53,8 @@ end -- The Details profile EldoUI imports into for a layout. function E:DetailsProfileName(key) - return E:Utf8Sub("EldoUI - " .. LayoutTitle(key or LayoutKey()), 50) + -- Fork (conUI): EldoUI's wording, so a Details profile made before keeps its name. + return E:Utf8Sub("EldoUI - " .. E:UpstreamText(LayoutTitle(key or LayoutKey())), 50) end E:RegisterAddonSetup("Details", { diff --git a/EldoUI/Modules/SystemUI.lua b/EldoUI/Modules/SystemUI.lua index 0a72722..6c0f6b6 100644 --- a/EldoUI/Modules/SystemUI.lua +++ b/EldoUI/Modules/SystemUI.lua @@ -380,7 +380,7 @@ function UpdateMenuButton() end) button:SetScript("OnEnter", function(self) GameTooltip:SetOwner(self, "ANCHOR_RIGHT") - GameTooltip:AddLine("EldoUI") -- no-L: addon name + GameTooltip:AddLine(E.brand or "EldoUI") -- no-L: addon name E:TooltipHint(GameTooltip, { L["Click"], L["open the EldoUI options"] }) E:TooltipHint(GameTooltip, { L["Right-click"], L["move EldoUI's frames"] }) E.UIKit.TipText(GameTooltip, L["Also /eui in chat."]) @@ -389,7 +389,7 @@ function UpdateMenuButton() button:SetScript("OnLeave", function() GameTooltip:Hide() end) own.menuButton = button end - button:SetText("EldoUI") -- no-L: addon name + button:SetText(E.brand or "EldoUI") -- no-L: addon name -- After the text, so the menu's button font reaches the label too. if Skinned("gameMenu") then E:SkinRecord(RECORDS.gameMenu, button, E.SkinButton, E, button, { size = 14 }) end button:Show() diff --git a/EldoUI_Emoji/EldoUI_Emoji.toc b/EldoUI_Emoji/EldoUI_Emoji.toc index c502102..e0d1aa6 100644 --- a/EldoUI_Emoji/EldoUI_Emoji.toc +++ b/EldoUI_Emoji/EldoUI_Emoji.toc @@ -1,6 +1,6 @@ ## Interface: 16001 ## Title: |cff33aaffcon|rUI Emoji -## Notes: Emoji pictures and names for EldoUI chat. Loaded by EldoUI when chat emoji are on. Graphics: Twemoji (CC-BY 4.0). +## Notes: Emoji pictures and names for conUI chat. Loaded by conUI when chat emoji are on. Graphics: Twemoji (CC-BY 4.0). ## Author: Eldodeldo ## X-Credits: graphics by the Twemoji contributors; names and shortcodes from emojibase ## Version: 1.0.0 diff --git a/EldoUI_GroupBoard/EldoUI_GroupBoard.toc b/EldoUI_GroupBoard/EldoUI_GroupBoard.toc index 82014ae..406bc61 100644 --- a/EldoUI_GroupBoard/EldoUI_GroupBoard.toc +++ b/EldoUI_GroupBoard/EldoUI_GroupBoard.toc @@ -1,7 +1,7 @@ ## Interface: 16001 ## Title: |cff33aaffcon|rUI Group Board -## Notes: Group posts from the chat channels in one window: dungeon, roles needed, how long ago. Needs EldoUI. -## Notes-deDE: Gruppensuche aus den Chat-Kanälen in einem Fenster: Dungeon, gesuchte Rollen, wie lange her. Braucht EldoUI. +## Notes: Group posts from the chat channels in one window: dungeon, roles needed, how long ago. Needs conUI. +## Notes-deDE: Gruppensuche aus den Chat-Kanälen in einem Fenster: Dungeon, gesuchte Rollen, wie lange her. Braucht conUI. ## Author: conUI (EldoUI fork) ## Version: 0.1.0 ## Group: EldoUI diff --git a/EldoUI_GuideData/EldoUI_GuideData.toc b/EldoUI_GuideData/EldoUI_GuideData.toc index 687cb0c..a887300 100644 --- a/EldoUI_GuideData/EldoUI_GuideData.toc +++ b/EldoUI_GuideData/EldoUI_GuideData.toc @@ -1,6 +1,6 @@ ## Interface: 16001 ## Title: |cff33aaffcon|rUI Guide Data -## Notes: Leveling routes, class quests, professions, reputation and collection guides for EldoUI's guide window. Loads only when the guide window needs it. Guide texts by the Polestar authors (GPL-3.0). +## Notes: Leveling routes, class quests, professions, reputation and collection guides for conUI's guide window. Loads only when the guide window needs it. Guide texts by the Polestar authors (GPL-3.0). ## Author: Eldodeldo ## X-Credits: guides by the Polestar authors ## Version: 1.0.0 diff --git a/EldoUI_Locale_daDK/EldoUI_Locale_daDK.toc b/EldoUI_Locale_daDK/EldoUI_Locale_daDK.toc index 4474ed0..a30b57d 100644 --- a/EldoUI_Locale_daDK/EldoUI_Locale_daDK.toc +++ b/EldoUI_Locale_daDK/EldoUI_Locale_daDK.toc @@ -1,6 +1,6 @@ ## Interface: 16001 ## Title: |cff33aaffcon|rUI Dansk -## Notes: Danish texts for EldoUI. Loads only when Dansk is picked under General > EldoUI language. +## Notes: Danish texts for conUI. Loads only when Dansk is picked under General > conUI language. ## Author: Eldodeldo ## Version: 0.7.3005 ## Group: EldoUI diff --git a/EldoUI_Locale_deDE/EldoUI_Locale_deDE.toc b/EldoUI_Locale_deDE/EldoUI_Locale_deDE.toc index 26d299a..228bd22 100644 --- a/EldoUI_Locale_deDE/EldoUI_Locale_deDE.toc +++ b/EldoUI_Locale_deDE/EldoUI_Locale_deDE.toc @@ -1,8 +1,8 @@ ## Interface: 16001 ## Title: |cff33aaffcon|rUI Deutsch -## Notes: Deutsche Texte für EldoUI. Lädt nur, wenn unter General > EldoUI language Deutsch gewählt ist oder der Client deutsch ist. +## Notes: Deutsche Texte für conUI. Lädt nur, wenn unter General > conUI language Deutsch gewählt ist oder der Client deutsch ist. ## Author: Eldodeldo (Fork) -## Version: 0.7.3005-p1 +## Version: 0.7.3005-p2 ## Group: EldoUI ## Category: User Interface ## IconTexture: Interface\AddOns\EldoUI\Media\Textures\EldoIcon.tga diff --git a/EldoUI_LootData/EldoUI_LootData.toc b/EldoUI_LootData/EldoUI_LootData.toc index 7045d6f..5a63f3b 100644 --- a/EldoUI_LootData/EldoUI_LootData.toc +++ b/EldoUI_LootData/EldoUI_LootData.toc @@ -1,6 +1,6 @@ ## Interface: 16001 ## Title: |cff33aaffcon|rUI Loot Data -## Notes: Loot tables, drop chances, creatures, spawns, quests and the pet abilities of tameable beasts for EldoUI's Loot Guide and Training. Classic values from CMaNGOS classic-db; WoW: Forever may differ. +## Notes: Loot tables, drop chances, creatures, spawns, quests and the pet abilities of tameable beasts for conUI's Loot Guide and Training. Classic values from CMaNGOS classic-db; WoW: Forever may differ. ## Author: Eldodeldo ## X-Credits: data from CMaNGOS classic-db ## Version: 1.8.0 diff --git a/README.md b/README.md index 94b02ef..0967ddd 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Ein Fork und Weiterentwicklung von [EldoUI](https://github.com/Eldodeldo/EldoUI) > Das gemeinsame Profil heißt bei einer neuen Installation „conUI 1440p“; wer schon ein „EldoUI 1440p“ hat, > behält es. Icon und Logo sind eigene Grafiken des Forks (`tools/brand/gen_logo.py`). > Es enthält die Git-Historie des Upstream-Repositorys sowie den Addon-Code aus dem Release -> [EldoUI 0.7.3005](https://github.com/con1338/conUI/releases/tag/v0.7.3005) (Ordner `EldoUI*/`). Die Releases +> [EldoUI 0.7.3005](https://github.com/Eldodeldo/EldoUI/releases/tag/v0.7.3005) (Ordner `EldoUI*/`). Die Releases > liegen unverändert im Branch `upstream-release` und kommen von dort per Merge nach `main`. > Änderungen gegenüber dem Original sind in der Git-Historie dieses Repositorys nachvollziehbar. > Eigene Ergänzungen des Forks: das vollständige deutsche Sprachpaket `EldoUI_Locale_deDE` (alle 21.557 Texte, diff --git a/docs/wiki/getting-started.md b/docs/wiki/getting-started.md index 9ca7813..f1b10b2 100644 --- a/docs/wiki/getting-started.md +++ b/docs/wiki/getting-started.md @@ -10,16 +10,18 @@ conUI is an AI-made, deeply modular UI for **WoW: Forever** (the game folder `_f 1. Download `conUI-.zip` from the [GitHub releases](https://github.com/con1338/conUI/releases). 2. Close the game. -3. Unzip it into `World of Warcraft\_forever_\Interface\AddOns`. You get six folders, and all six must sit directly in `AddOns`: +3. Unzip it into `World of Warcraft\_forever_\Interface\AddOns`. You get eight folders, and all eight must sit directly in `AddOns`: - `EldoUI`, the addon itself; - `EldoUI_LootData`, the data for the Loot Guide (loaded only when the Loot Guide needs it); - `EldoUI_GuideData`, the guides for the guide window (loaded only when the guide window needs them); - `EldoUI_LootSim`, the Loot Guide's gear simulator (loaded only when you press a sim button); - `EldoUI_Emoji`, the pictures for chat emoji (loaded only when chat emoji are on); - - `EldoUI_Locale_daDK`, conUI's texts in Danish (loaded only when you pick Dansk as conUI's language). + - `EldoUI_Locale_daDK`, conUI's texts in Danish (loaded only when you pick Dansk as conUI's language); + - `EldoUI_Locale_deDE`, conUI's texts in German (loaded only when you pick Deutsch, or on a German client); + - `EldoUI_GroupBoard`, the group board plugin (group posts from the chat channels in one window). 4. Start the game. On the character screen, open **AddOns** and make sure **conUI** is ticked. -If you unzip into a folder of its own by mistake (`AddOns\conUI-\EldoUI\...`), the game does not see conUI. Move the six folders up into `AddOns`. +If you unzip into a folder of its own by mistake (`AddOns\conUI-\EldoUI\...`), the game does not see conUI. Move the eight folders up into `AddOns`. Version 0.7.1000 begins with a fresh conUI profile. Choose one of the eleven built-in presets in the setup below. Profile and preset updates are supported from this version onward. diff --git a/tools/brand/test_brand.lua b/tools/brand/test_brand.lua index e2ebc55..2baae7e 100644 --- a/tools/brand/test_brand.lua +++ b/tools/brand/test_brand.lua @@ -63,11 +63,10 @@ Check(L["EldoUI loads EldoUI_Emoji from Interface\\AddOns\\EldoUI_Emoji."], "con -- The short forms: layouts, looks and the guide module. Check(L["Eldo-Classic (1440p)"], "con-Classic (1440p)", "a layout name") Check(L["Eldo blue"], "con blue", "a look") -Check(L["Eldo"], "con", "the short name alone") Check(L["Eldo (flat, accent border)"], "con (flat, accent border)", "the short name before a bracket") Check(L["Eldostar"], "conStar", "the guide module") Check(L["Open the Eldostar guide. Eldostars Route"], "Open the conStar guide. conStars Route", "the guide module in a sentence") -Check(L["Eldo-Classic and EldoUI Center"], "con-Classic and conUI Center", "short and full name in one text") +Check(L["Eldo-Classic (1440p) and EldoUI Center"], "con-Classic (1440p) and conUI Center", "short and full name in one text") for _, text in ipairs({ "Copyright 2026 Eldodeldo", "EldoModern2000", @@ -75,18 +74,57 @@ for _, text in ipairs({ "eldo:EldoChime", "Interface\\AddOns\\EldoUI\\Media\\Textures\\EldoChevron.tga", "Eldo-udseende", + -- These can be a character's name (E:Translate takes names too). + "Eldo", + "Eldo-Stormrage", + -- The folder is still called EldoUI. + "Put it next to the EldoUI folder in Interface\\AddOns.", + "Delete the old EldoUI folders.", + "THIRD_PARTY_NOTICES.md im EldoUI-Ordner.", + "neben den Ordner EldoUI in Interface\\AddOns", + "ved siden af EldoUI-mappen i Interface\\AddOns", }) do Check(L[text], text, "kept as it is") end -- English articles follow the new name; other languages keep their "an". Check(L["Paste an EldoUI string. An EldoUI profile is made."], "Paste a conUI string. A conUI profile is made.", "English article") -Check(L["An Eldostar guide and an Eldo-Classic layout"], "A conStar guide and a con-Classic layout", "English article, short forms") +Check(L["An Eldostar guide and an Eldo-Vanilla Focus (1440p) layout"], "A conStar guide and a con-Vanilla Focus (1440p) layout", "English article, short forms") Check(L["More than an EldoUI_LootData folder"], "More than an EldoUI_LootData folder", "the article of a kept name") function E:GetLanguage() return "deDE" end Check(L["Sendet es an EldoUI zurück."], "Sendet es an conUI zurück.", "German \"an\" stays") E.GetLanguage = nil +Check(L["It comes with EldoUI: put it next to the EldoUI folder."], "It comes with conUI: put it next to the EldoUI folder.", + "the product and its folder in one text") + +-- French joins the article to the name. +function E:GetLanguage() return "frFR" end +Check(L["la mise à jour d'EldoUI"], "la mise à jour de conUI", "French d'") +Check(L["pour cet EldoUI"], "pour ce conUI", "French cet") +Check(L["viennent d'EldoUI_LootData."], "viennent d'EldoUI_LootData.", "French d' before a kept name") +E.GetLanguage = nil + +-- Texts about EldoUI itself keep its name, in every language. +german["Copy it (Ctrl+C) and send it to EldoUI's authors."] = "Kopiert es und sendet es an EldoUIs Autoren." +Check(L["Copy it (Ctrl+C) and send it to EldoUI's authors."], "Kopiert es und sendet es an EldoUIs Autoren.", "a report to EldoUI's authors") +Check(L[L["Copy it (Ctrl+C) and send it to EldoUI's authors."]], "Kopiert es und sendet es an EldoUIs Autoren.", "the same, looked up twice") +Check(L["Thank you for standing behind EldoUI."], "Thank you for standing behind EldoUI.", "the thanks to EldoUI's supporters") +Check(E:Plural(2, "Send it to EldoUI's authors.", "Send them to EldoUI's authors."), "Send them to EldoUI's authors.", "E:Plural, about EldoUI") + +-- A text looked up while a file loads (English) and again where it is shown, +-- once the saved language is read: the second lookup finds the translation. +german["Show EldoUI's party frames."] = nil +local early = L["Show EldoUI's party frames."] +Check(early, "Show conUI's party frames.", "at load, before the language is known") +german["Show EldoUI's party frames."] = "Zeigt EldoUIs Gruppenrahmen." +Check(L[early], "Zeigt conUIs Gruppenrahmen.", "shown later in the saved language") +Check(E:Plural(2, L["EldoUI kept %d value"], L["EldoUI kept %d values"]), "conUI kept %d values", "E:Plural with texts looked up before") + +-- Names saved outside EldoUI keep EldoUI's wording. +Check(E:UpstreamText("Eldo-Classic (1440p)"), "Eldo-Classic (1440p)", "E:UpstreamText") +Check(E:UpstreamText(L["Eldo-Classic (1440p)"]), "Eldo-Classic (1440p)", "E:UpstreamText of a text as shown") + -- A text that was handed out comes back unchanged, and other values pass. Check(L[L["Open the EldoUI options."]], "Open the conUI options.", "a second lookup") Check(L["No name here."], "No name here.", "a text without the name") diff --git a/tools/ci/README.md b/tools/ci/README.md index 29bfde2..7a04533 100644 --- a/tools/ci/README.md +++ b/tools/ci/README.md @@ -138,9 +138,14 @@ gibt es zwei Quellen und zwei Merges (zuerst so gemacht für 0.7.3001): Nach einem Merge prüfen: - `## Title:` in den `.toc`-Dateien (`|cff33aaffcon|rUI …`), auch bei einem neuen Ordner aus dem ZIP; - `Core\Brand.lua` steht in `EldoUI/EldoUI.toc` direkt nach `Core\Locale.lua`; - - die wenigen Stellen ohne `L`, die `E.brand` lesen: Chat-Präfix (`Core/Init.lua`), Tooltip der - Addon-Schaltfläche und `/conui` (`Core/Commands.lua`), Titel der Mini-Karte (`Core/Config.lua`), - Überschriften der Tastenbelegung (`Core/Bindings.lua`); + - die Stellen ohne `L`, die `E.brand` lesen (`git grep -n 'E\.brand' -- EldoUI`): Chat-Präfix, Tooltip der + Addon-Schaltfläche und `/conui`, Schaltfläche im Spielmenü, Name unter Optionen > AddOns, Überschriften der + Tastenbelegung, Titel im Auktionshaus, Mover-Tooltip, Info-Leiste und ihre Blöcke für andere Addons, DBM- + und RestedXP-Anzeige. Ein Merge-Konflikt dort heißt: EldoUIs Zeile nehmen, den Namen wieder ersetzen; + - Namen, die außerhalb von EldoUI gespeichert sind, bleiben bei EldoUIs Wortlaut (`E:UpstreamText`): die + Details- und BigWigs-Profile „EldoUI - “; + - Texte über EldoUI selbst (Meldungen an EldoUIs Autoren, der Dank an Mitwirkende) behalten den Namen: + `UPSTREAM_KEYS` in `Core/Brand.lua`; - Icon und Logo (`EldoIcon.tga`, `EldoLogo.tga`): Bringt ein Release sie neu mit, `python3 tools/brand/gen_logo.py` laufen lassen; der Name des gemeinsamen Profils (`PROFILE` in `Core/Installer.lua`); - README und `docs/`: Der Name ist dort im Fließtext ersetzt, Merges von `upstream/main` kollidieren in diesen