Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions EldoUI/Core/Bindings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -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
Expand Down
102 changes: 89 additions & 13 deletions EldoUI/Core/Brand.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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.
Expand All @@ -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
Expand All @@ -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)
Expand All @@ -102,27 +142,63 @@ 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

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 - <layout>").
function E:UpstreamText(key)
return lookup(self.L, key ~= nil and origin[key] or key)
end
2 changes: 1 addition & 1 deletion EldoUI/Core/Commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion EldoUI/Core/Config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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."])
Expand Down
2 changes: 1 addition & 1 deletion EldoUI/Core/Options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion EldoUI/EldoUI.toc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion EldoUI/Modules/Auction.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions EldoUI/Modules/DBM.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion EldoUI/Modules/EditMode.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion EldoUI/Modules/InfoBar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion EldoUI/Modules/InfoBar/Broker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
5 changes: 3 additions & 2 deletions EldoUI/Modules/Integrations.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -1527,7 +1527,8 @@ end
-- The BigWigs profile EldoUI makes: one per layout, "EldoUI - <Layout>".
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
Expand Down
2 changes: 1 addition & 1 deletion EldoUI/Modules/QoL/Tweaks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion EldoUI/Modules/Setups.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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", {
Expand Down
4 changes: 2 additions & 2 deletions EldoUI/Modules/SystemUI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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."])
Expand All @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion EldoUI_Emoji/EldoUI_Emoji.toc
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions EldoUI_GroupBoard/EldoUI_GroupBoard.toc
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion EldoUI_GuideData/EldoUI_GuideData.toc
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion EldoUI_Locale_daDK/EldoUI_Locale_daDK.toc
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions EldoUI_Locale_deDE/EldoUI_Locale_deDE.toc
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion EldoUI_LootData/EldoUI_LootData.toc
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading