Skip to content

Commit

Permalink
More localisation in dropdown menu and gem list headers;
Browse files Browse the repository at this point in the history
Added simplified Chinese (based on 1.4.1)
  • Loading branch information
mooms committed May 28, 2024
1 parent 20377a7 commit 6a0ab2e
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 3 deletions.
6 changes: 3 additions & 3 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 @@ -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
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>
46 changes: 46 additions & 0 deletions Locales/zhCN.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---@class RemixGemHelperPrivate
local Private = select(2, ...)
Private.Locales = Private.Locales or {}

Private.Locales["zhCN"] = {
["Remix Gem Helper"] = "幻彩再造宝石助手",
--isEditing = true,
["All"] = "全部",
["Meta"] = "多彩宝石",
["Cogwheel"] = "齿轮宝石",
["Tinker"] = "匠械宝石",
["Prismatic"] = "棱彩宝石",

-- CloakTooltip.lua
["Rank"] = "等级",

-- 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."] = "在列表中显示未拥有的宝石。",
["Primordial"] = "始源之石",
["Show Primordial Gems in the List."] = "在列表中显示始源之石。",
["Open, Use and Combine"] = "可打开,使用或组合",
["NOTHING TO USE"] = "",
["HelpText"] =
"|A:newplayertutorial-icon-mouse-leftbutton:16:16|a Click a Gem in this list to Socket or Unsocket.\n" ..
"'In Bag Item' or 'Socketed' indicates that you unsocket it.\n" ..
"'In Bag' indicates that the Gem is in your bag and ready to be socketed.\n\n" ..
"When hovering over a Gem that is 'Socketed' you will see the item highlighted in your character panel.\n" ..
"You can use the dropdown or the search bar at the top to filter your list.\n" ..
"This Addon also adds the current Rank and stats of your cloak inside the cloak tooltip.\n" ..
"You should see an icon in the top right of your character frame which can be used to hide or show this frame.\n" ..
"Below the Gem list you should have some clickable buttons to quickly open Chests or combine Gems\n\n" ..
"And to get rid of this frame simply shift click it.\nHave fun!",

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

0 comments on commit 6a0ab2e

Please sign in to comment.