Skip to content

Commit

Permalink
feat: update locales
Browse files Browse the repository at this point in the history
  • Loading branch information
ffainy committed Jun 17, 2022
1 parent 5b8dde3 commit 7f77fce
Show file tree
Hide file tree
Showing 12 changed files with 204 additions and 171 deletions.
6 changes: 4 additions & 2 deletions gui/extra.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2523,7 +2523,9 @@ function GUI:SetupPartyWatcher(parent)
end
end


--[[
debuff watcher filter
]]

do

Expand Down Expand Up @@ -3070,7 +3072,7 @@ function GUI:SetupAutoScreenshot(parent)
[1] = { value = 'EarnedNewAchievement', text = L['Earned new achievement'] },
[2] = { value = 'ChallengeModeCompleted', text = L['Mythic+ completed'] },
[3] = { value = 'PlayerLevelUp', text = L['Level up'] },
[4] = { value = 'PlayerDead', text = L['Dead'] },
[4] = { value = 'PlayerDead', text = _G.DEAD },
}

local offset = -10
Expand Down
6 changes: 3 additions & 3 deletions gui/help.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ local F, C, L = unpack(select(2, ...))
local GUI = F:GetModule('GUI')

local strList = {
tip = L['Double-click left mouse button or press ESC key to exit this screen.'],
tip = L['Double click left mouse button or press ESC key to exit this screen.'],
cmd = {
primary = {
[0] = L['*/free|r @--|r#install|r @or|r */free|r @--|r#tutorial|r ~ Open tutorial panel'],
[1] = L['*/free|r @--|r#gui|r @or|r */free|r @--|r#config|r ~ Open GUI panel'],
[0] = L['*/free|r @--|r#install|r @or|r */free|r @--|r#tutorial|r ~ Open tutorial panel.'],
[1] = L['*/free|r @--|r#gui|r @or|r */free|r @--|r#config|r ~ Open GUI panel.'],
[2] = L['*/free|r @--|r#unlock|r @or|r */free|r @--|r#layout|r ~ Unlock &ADDON_NAME& interface to allow you to freely drag and drop the elements.'],
[3] = L['*/free|r @--|r#reset|r @or|r */free|r @--|r#init|r ~ Initialize &ADDON_NAME& and all settings will be reset to their default state.'],
[4] = L['*/free|r @--|r#ver|r @or|r */free|r @--|r#version|r ~ Output the current version number of &ADDON_NAME&.'],
Expand Down
2 changes: 1 addition & 1 deletion gui/installation.lua
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ function INSTALL:HelloWorld()

local step5 = function()
progressBar:SetValue(500)
headerText:SetText(L['Addons'])
headerText:SetText(_G.ADDONS)
bodyText:SetText(
F:StyleAddonName(
L['This step will adjust the settings of some addons to match the interface style and layout of %AddonName%.']
Expand Down
75 changes: 43 additions & 32 deletions gui/options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1302,7 +1302,7 @@ GUI.OptionsList = {
1,
'Announcement',
'Spells',
L['Major spells'],
L['Major Spells'],
nil,
SetupAnnounceableSpells,
},
Expand Down Expand Up @@ -1334,7 +1334,12 @@ GUI.OptionsList = {
L['Dispel'],
true,
},
{ 1, 'Announcement', 'Stolen', L['Steal'] },
{
1,
'Announcement',
'Stolen',
L['Steal'],
},
{
1,
'Announcement',
Expand All @@ -1347,13 +1352,13 @@ GUI.OptionsList = {
1,
'Announcement',
'Quest',
L['Quest progress'],
L['Quest Progress'],
},
{
1,
'Announcement',
'Reset',
L['Instance reset'],
L['Instance Reset'],
true,
},
},
Expand Down Expand Up @@ -1632,7 +1637,7 @@ GUI.OptionsList = {
1,
'Unitframe',
'Enable',
L['Enable Unitframes'],
L['Enable Unitframe'],
nil,
SetupUnitFrame,
},
Expand Down Expand Up @@ -1697,7 +1702,7 @@ GUI.OptionsList = {
true,
SetupUnitFrameRangeCheck,
nil,
L["Fade out unit frame based on whether the unit is in the player's range"],
L["Fade out unit frame based on whether the unit is in the player's range."],
},
{
1,
Expand Down Expand Up @@ -1753,21 +1758,21 @@ GUI.OptionsList = {
1,
'Unitframe',
'OnlyShowPlayer',
L['Player Debuffs Only'],
L['Debuffs by You Only'],
nil,
nil,
nil,
L['Display debuffs cast by player only.'],
L['Display debuffs cast by you only.'],
},
{
1,
'Unitframe',
'DesaturateIcon',
L['Desaturate Debuffs'],
L['Desaturate Debuffs Icon by Others'],
true,
nil,
nil,
L['Desaturate debuffs cast by others.'],
L['Desaturate the icons of debuffs cast by others.'],
},
{
1,
Expand All @@ -1777,7 +1782,7 @@ GUI.OptionsList = {
nil,
nil,
nil,
L['Color debuffs border by type.|nMagic is blue, Curse is purple, Poison is green, Disease is yellow, and others are red.'],
L['Color the icons border of debuffs by type.|nMagic is blue, Curse is purple, Poison is green, Disease is yellow, and others are red.'],
},
{
1,
Expand Down Expand Up @@ -1834,7 +1839,7 @@ GUI.OptionsList = {
1,
'Unitframe',
'RaidFrame',
L['Enable RaidFrames'],
L['Enable RaidFrame'],
nil,
SetupRaidFrame,
},
Expand Down Expand Up @@ -1914,7 +1919,7 @@ GUI.OptionsList = {
true,
SetupPartyAura,
nil,
L['Displays the important offensive and defensive spells, displayed by default on the right side of the PartyFrame.'],
L['Display the important offensive and defensive spells, displayed by default on the right side of the PartyFrame.'],
},
{
1,
Expand Down Expand Up @@ -1944,7 +1949,7 @@ GUI.OptionsList = {
nil,
SetupPartyWatcher,
nil,
L['Displays the spell cooldowns of party members, displayed by default on the left side of the PartyFrame.'],
L['Display the spell cooldowns of party members, displayed by default on the left side of the PartyFrame.'],
},
{
1,
Expand All @@ -1954,6 +1959,7 @@ GUI.OptionsList = {
nil,
nil,
UpdatePartyElements,
L['Icons are displayed on the other side of the PartyFrame.']
},
{
1,
Expand All @@ -1963,14 +1969,14 @@ GUI.OptionsList = {
true,
nil,
nil,
L['If enabled, the cooldown status would sync with players who using party watcher or ZenTracker(WA)'],
L["Sync the cooldown status with players who using 'FreeUI' or 'WeakAuras ZenTracker'."],
},
{},
{
1,
'Unitframe',
'GroupName',
L['Display Name'],
L['Display Group Member Name'],
nil,
SetupNameLength,
UpdateGroupTags,
Expand Down Expand Up @@ -1999,7 +2005,7 @@ GUI.OptionsList = {
1,
'Unitframe',
'RaidTargetIndicator',
L['Raid Target Indicator'],
L['Display Raid Target Indicator'],
true,
nil,
UpdateRaidTargetIndicator,
Expand All @@ -2009,17 +2015,17 @@ GUI.OptionsList = {
1,
'Unitframe',
'CornerIndicator',
L['Corner Indicator'],
L['Display Corner Indicator'],
nil,
nil,
nil,
L["Display important auras in color blocks at the corner of the GroupFrame, such as healer's hot Paladin's Forbearance and Priest's Weakened Soul, etc."],
L["Display important auras in color blocks at the corner of the GroupFrame, such as healer's HoT Paladin's 'Forbearance' and Priest's 'Weakened Soul', etc."],
},
{
1,
'Unitframe',
'ThreatIndicator',
L['Threat Indicator'],
L['Display Threat Indicator'],
true,
nil,
nil,
Expand All @@ -2043,7 +2049,7 @@ GUI.OptionsList = {
true,
nil,
UpdateAllHeaders,
L['If enabled, only show RaidFrame if there are more than 5 members in your group.|nIf disabled, show RaidFrame when in raid, show PartyFrame when in party.'],
L['Only show RaidFrame if there are more than 5 members in your group.|nIf disabled, show RaidFrame when in raid, show PartyFrame when in party.'],
},
{},
{
Expand All @@ -2056,31 +2062,31 @@ GUI.OptionsList = {
1,
'Unitframe',
'InstanceDebuffs',
L['Instance Debuffs'],
L['Monitor Instance Debuffs'],
true,
SetupDebuffWatcher,
nil,
L['Display custom major debuffs in raid and dungeons.'],
L['Display major debuffs in raid and dungeons.|nYou can customize which debuffs are monitored, and their priority.'],
},
{
1,
'Unitframe',
'DispellableOnly',
L['Dispellable Debuffs Only'],
L['Display Dispellable Debuffs Only'],
nil,
nil,
nil,
L['Display only debuffs you can dispel.'],
L['Display only the debuffs you can dispel.'],
},
{
1,
'Unitframe',
'DebuffClickThrough',
L['Disable Debuff Tooltip'],
L['Disable Icon Tooltip'],
true,
nil,
nil,
L["If enabled, the icon would be uninteractable, you can't select or mouseover them."],
L["Debuff Icon ignore mouse hover and do not show tooltip."],
},
},
[13] = { -- nameplate
Expand Down Expand Up @@ -2209,7 +2215,7 @@ GUI.OptionsList = {
'DispellMode',
L['Dispellable Mode'],
nil,
{ L['Filter'], L['Always'], _G.DISABLE },
{ L['Filter'], _G.ALWAYS, _G.DISABLE },
RefreshAllPlates,
L['Filter: only shows the magic and enrage auras that you can dispell.|nAlways: always shows the magic and enrage auras, no matter which you can dispell.'],
},
Expand Down Expand Up @@ -2323,7 +2329,7 @@ GUI.OptionsList = {
true,
nil,
nil,
L['Displays the name of the target Spiteful Shade is currently tracking when in mythic plus dungeon.'],
L['Display the name of the target Spiteful Shade is currently tracking when in mythic plus dungeon.'],
},
{},
{
Expand Down Expand Up @@ -2442,7 +2448,12 @@ GUI.OptionsList = {
nil,
L["If 'Force Tank Mode Color' enabled, swap their threat status color for non-tank classes."],
},
{ 5, 'Nameplate', 'SecureColor', L['Secure'] },
{
5,
'Nameplate',
'SecureColor',
L['Secure'],
},
{
5,
'Nameplate',
Expand All @@ -2468,7 +2479,7 @@ GUI.OptionsList = {
1,
'Nameplate',
'ShowSpecialUnits',
L['Color Special Unit'],
L['Color Special Units'],
nil,
SetupNameplateUnitFilter,
RefreshSpecialUnitsList,
Expand All @@ -2478,7 +2489,7 @@ GUI.OptionsList = {
1,
'Nameplate',
'ColorByDot',
L['Color Unit by Debuff'],
L['Color Units by Debuff'],
true,
SetupNameplateColorByDot,
nil,
Expand Down
Loading

0 comments on commit 7f77fce

Please sign in to comment.