Skip to content

Commit

Permalink
Merge pull request #21 from mooms/feature/localisation-zhCN
Browse files Browse the repository at this point in the history
More localisation in dropdown menu and gem list headers and added simplified Chinese
  • Loading branch information
Larsj02 authored May 29, 2024
2 parents 745c1d8 + cf97ae0 commit a43ed83
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ local function itemListInitializer(frame, data)
local col = misc:GetPercentColor(used / maxS * 100)
frame.Icon:SetDesaturated(false)
frame.Name:SetFontObject(const.FONT_OBJECTS.HEADING)
frame.Name:SetText(string.format("%s (%s%d/%d|r)", name, col:GenerateHexColorMarkup(), used, maxS))
frame.Name:SetText(string.format("%s (%s%d/%d|r)", addon.Loc[name], col:GenerateHexColorMarkup(), used, maxS))
frame.Extract:Hide()
else
frame.Name:SetFontObject(const.FONT_OBJECTS.NORMAL)
Expand Down Expand Up @@ -195,7 +195,7 @@ end

local function createFrame()
local gems = uiElements:CreateBaseFrame(CharacterFrame, {
title = const.ADDON_NAME,
title = addon.Loc[const.ADDON_NAME],
width = 375
})
gems:RegisterEvent("BAG_UPDATE_DELAYED")
Expand Down Expand Up @@ -267,7 +267,7 @@ local function createFrame()
frameToggle:SetScript("OnEnter", function(self)
GameTooltip:ClearLines()
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT")
GameTooltip:AddLine(string.format(addon.Loc["Toggle the %s UI"], const.ADDON_NAME), 1, 1, 1)
GameTooltip:AddLine(string.format(addon.Loc["Toggle the %s UI"], addon.Loc[const.ADDON_NAME]), 1, 1, 1)
GameTooltip:Show()
end)
frameToggle:SetScript("OnLeave", function()
Expand Down Expand Up @@ -298,7 +298,7 @@ local function createFrame()
info.func = self.SetValue
info.arg1 = i
info.checked = self.selection == i
info.text = socketType
info.text = addon.Loc[socketType]
UIDropDownMenu_AddButton(info)
end
end
Expand Down
8 changes: 8 additions & 0 deletions Locales/deDE.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ Private.Locales = Private.Locales or {}
Private.Locales["deDE"] = {
--isEditing = true,

-- addon title
["Remix Gem Helper"] = "Remix Gem Helper",

-- ItemTooltips.lua
["Rank"] = "Rang",
["Upgradeable"] = "Aufwertbar",
Expand All @@ -22,6 +25,11 @@ Private.Locales["deDE"] = {
["Search Gems"] = "Suche Edelstein",
["Unowned"] = "Unbekannt",
["Show Unowned Gems in the List."] = "Unbekannte Edelsteine anzeigen.",
["All"] = "All",
["Meta"] = "Meta",
["Cogwheel"] = "Cogwheel",
["Tinker"] = "Tinker",
["Prismatic"] = "Prismatic",
["Primordial"] = "Urzeitlich",
["Show Primordial Gems in the List."] = "Urzeitliche Steine anzeigen.",
["Open, Use and Combine"] = "Öffnen, Benutzen und Kombinieren",
Expand Down
1 change: 1 addition & 0 deletions Locales/embed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
<Ui xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.blizzard.com/wow/ui/" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
..\FrameXML\UI.xsd">
<Script file="enUS.lua"/>
<Script file="zhCN.lua"/>
<Script file="deDE.lua"/>
</Ui>
8 changes: 8 additions & 0 deletions Locales/enUS.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ Private.Locales = Private.Locales or {}
Private.Locales["enUS"] = {
--isEditing = true,

-- addon title
["Remix Gem Helper"] = "Remix Gem Helper",

-- ItemTooltips.lua
["Rank"] = "Rank",
["Upgradeable"] = "Upgradeable",
Expand All @@ -22,6 +25,11 @@ Private.Locales["enUS"] = {
["Search Gems"] = "Search Gems",
["Unowned"] = "Unowned",
["Show Unowned Gems in the List."] = "Show Unowned Gems in the List.",
["All"] = "All",
["Meta"] = "Meta",
["Cogwheel"] = "Cogwheel",
["Tinker"] = "Tinker",
["Prismatic"] = "Prismatic",
["Primordial"] = "Primordial",
["Show Primordial Gems in the List."] = "Show Primordial Gems in the List.",
["Open, Use and Combine"] = "Open, Use and Combine",
Expand Down
50 changes: 50 additions & 0 deletions Locales/zhCN.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---@class RemixGemHelperPrivate
local Private = select(2, ...)
Private.Locales = Private.Locales or {}

Private.Locales["zhCN"] = {
--isEditing = true,

-- addon title
["Remix Gem Helper"] = "幻彩再造宝石助手",

-- ItemTooltips.lua
["Rank"] = "等级",
["Upgradeable"] = "可升级",
["Not Upgradeable"] = "不可升级",

-- Core.lua
["Socketed"] = "已镶嵌",
["In Bag"] = "在背包",
["In Bag Item!"] = "镶嵌于背包装备!",
["Uncollected"] = "未收集",
["Scrappable Items"] = "可拆解物品",
["NOTHING TO SCRAP"] = "*无可拆解物品*",
["Resocket Gems"] = "重新镶嵌宝石",
["Toggle the %s UI"] = "切换%s界面", -- %s is the Addon name and needs to be included!
["Search Gems"] = "搜索宝石",
["Unowned"] = "未收集",
["Show Unowned Gems in the List."] = "在列表中显示未收集的宝石。",
["All"] = "全部",
["Meta"] = "多彩宝石",
["Cogwheel"] = "齿轮宝石",
["Tinker"] = "匠械宝石",
["Prismatic"] = "棱彩宝石",
["Primordial"] = "始源之石",
["Show Primordial Gems in the List."] = "在列表中显示始源之石。",
["Open, Use and Combine"] = "可打开,使用或组合",
["NOTHING TO USE"] = "*无*",
["HelpText"] =
"|A:newplayertutorial-icon-mouse-leftbutton:16:16|a 在列表中点击宝石来镶嵌或取出。\n" ..
"“镶嵌于背包装备!”或者“已镶嵌”表示你已经镶嵌了此宝石。\n" ..
"“在背包”表示宝石在你的背包中可用于镶嵌。\n\n" ..
"将鼠标悬停在一个“已镶嵌”的宝石上,可以在角色信息界面突出显示镶嵌了此宝石的装备。\n" ..
"你可以使用顶部的下拉菜单或者搜索栏来筛选你的列表。\n" ..
"本插件也在鼠标提示里显示你的永恒潜能披风当前的等级和属性。\n" ..
"在角色信息界面右上方有一个沙漏图标,可以用来隐藏或显示此插件的界面。\n" ..
"在宝石列表下方,你可以点击图标打开宝箱,使用帛线或组合宝石。\n\n" ..
"Shift+点击本提示的图标可以关闭本提示。\n希望国服早日重开!\n\n(简体中文翻译:季翔枫)",

-- UIElements.lua
["You don't have a valid free Slot for this Gem"] = "你没有空插槽来使用这个宝石",
}

0 comments on commit a43ed83

Please sign in to comment.