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
2 changes: 1 addition & 1 deletion PathOfBuilding.app/Contents/Resources/manifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<PoBVersion>
<Version number="0.4.0" branch="master" platform="macos"/>
<Version number="0.5.0" branch="master" platform="macos"/>
<Source part="default" url="https://raw.githubusercontent.com/kokagex/PoB2-for-macOS/{branch}/PathOfBuilding.app/Contents/Resources/"/>
<File part="default" sha1="9f106ef85eedf47b23dbc3e2df50f545e13dc361" name="manifest.xml"/>
</PoBVersion>
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,11 @@ function CalcSectionClass:Draw(viewPort, noTooltip)
SetDrawColor(0.10, 0.10, 0.10)
-- Draw label
if not self.enabled then
local displayLabel = i18n.lookup("calcs", subSec.label)
local displayLabel = i18n.lookup("calcs", subSec.label) or subSec.label
DrawString(x + 3, lineY + 3, "LEFT", 16, "VAR BOLD", "^8"..displayLabel)
else
local textColor = "^7"
local displayLabel = i18n.lookup("calcs", subSec.label)
local displayLabel = i18n.lookup("calcs", subSec.label) or subSec.label
if self.calcsTab:SearchMatch(subSec.label) or self.calcsTab:SearchMatch(displayLabel) then
textColor = colorCodes.HIGHLIGHT
end
Expand Down Expand Up @@ -276,7 +276,7 @@ function CalcSectionClass:Draw(viewPort, noTooltip)
textColor = rowData.color
end
if rowData.label then
local displayRowLabel = i18n.lookup("calcs", rowData.label)
local displayRowLabel = i18n.lookup("calcs", rowData.label) or rowData.label
SetDrawColor(rowData.bgCol or "^0")
DrawImage(nil, x + 2, lineY + 2, 130, 18)
if self.calcsTab:SearchMatch(rowData.label) or self.calcsTab:SearchMatch(displayRowLabel) then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -830,9 +830,9 @@ function GemSelectClass:AddGrantedEffectInfo(gemInstance, grantedEffect, addReq)
self.tooltip:AddSeparator(10)
if addReq then
local reqLevel = grantedEffect.levels[gemInstance.level] and grantedEffect.levels[gemInstance.level].levelRequirement or 1
local reqStr = calcLib.getGemStatRequirement(reqLevel, grantedEffect.support, gemInstance.gemData.reqStr)
local reqDex = calcLib.getGemStatRequirement(reqLevel, grantedEffect.support, gemInstance.gemData.reqDex)
local reqInt = calcLib.getGemStatRequirement(reqLevel, grantedEffect.support, gemInstance.gemData.reqInt)
local reqStr = calcLib.getGemStatRequirement(reqLevel, gemInstance.gemData.reqStr, grantedEffect.support)
local reqDex = calcLib.getGemStatRequirement(reqLevel, gemInstance.gemData.reqDex, grantedEffect.support)
local reqInt = calcLib.getGemStatRequirement(reqLevel, gemInstance.gemData.reqInt, grantedEffect.support)
self.skillsTab.build:AddRequirementsToTooltip(self.tooltip, reqLevel, reqStr, reqDex, reqInt)
end
local descText = i18n.lookup("gemDescriptions", gemInstance.gemData.name) or grantedEffect.description
Expand Down Expand Up @@ -902,6 +902,8 @@ function GemSelectClass:AddStatSetInfo(gemInstance, grantedEffect, statSet, noLa
for i, line in ipairs(descriptions) do
local source = (statSet.statMap and statSet.statMap[lineMap[line]]) or self.skillsTab.build.data.skillStatMap[lineMap[line]]
local bg = nil -- GemHoverModBg.png asset not available on macOS
-- Translate stat line via mod line translator as fallback
local displayLine = (i18n and i18n.translateModLine) and i18n.translateModLine(line) or line
if source then
if launch.devModeAlt then
local devText = lineMap[line]
Expand All @@ -911,16 +913,16 @@ function GemSelectClass:AddStatSetInfo(gemInstance, grantedEffect, statSet, noLa
end
devText = modLib.formatMod(source[1])
end
line = line .. " ^2" .. devText
displayLine = displayLine .. " ^2" .. devText
end
self.tooltip:AddLine(fontSizeBig, colorCodes.MAGIC .. line, "FONTIN SC", bg)
self.tooltip:AddLine(fontSizeBig, colorCodes.MAGIC .. displayLine, "FONTIN SC", bg)
else
if launch.devModeAlt then
line = line .. " ^1" .. lineMap[line]
displayLine = displayLine .. " ^1" .. lineMap[line]
end
local line = colorCodes.UNSUPPORTED .. line
line = main.notSupportedModTooltips and (line .. main.notSupportedTooltipText) or line
self.tooltip:AddLine(fontSizeBig, line, "FONTIN SC", bg)
local unsupLine = colorCodes.UNSUPPORTED .. displayLine
unsupLine = main.notSupportedModTooltips and (unsupLine .. main.notSupportedTooltipText) or unsupLine
self.tooltip:AddLine(fontSizeBig, unsupLine, "FONTIN SC", bg)
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1807,6 +1807,10 @@ function PassiveTreeViewClass:AddNodeTooltip(tooltip, node, build, incSmallPassi
end
for i, line in ipairs(mNode.sd) do
local displayLine = (mNode.sd_display and mNode.sd_display[i]) or line
-- Fallback translation via mod line translator if no tree translation available
if displayLine == line and i18n and i18n.translateModLine then
displayLine = i18n.translateModLine(line)
end
addModInfoToTooltip(mNode, i, displayLine, localIncEffect)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1131,9 +1131,9 @@ function SkillsTabClass:ProcessSocketGroup(socketGroup)
calcLib.validateGemLevel(gemInstance)
if gemInstance.gemData then
gemInstance.reqLevel = grantedEffect.levels[gemInstance.level].levelRequirement
gemInstance.reqStr = calcLib.getGemStatRequirement(gemInstance.reqLevel, grantedEffect.support, gemInstance.gemData.reqStr)
gemInstance.reqDex = calcLib.getGemStatRequirement(gemInstance.reqLevel, grantedEffect.support, gemInstance.gemData.reqDex)
gemInstance.reqInt = calcLib.getGemStatRequirement(gemInstance.reqLevel, grantedEffect.support, gemInstance.gemData.reqInt)
gemInstance.reqStr = calcLib.getGemStatRequirement(gemInstance.reqLevel, gemInstance.gemData.reqStr, grantedEffect.support)
gemInstance.reqDex = calcLib.getGemStatRequirement(gemInstance.reqLevel, gemInstance.gemData.reqDex, grantedEffect.support)
gemInstance.reqInt = calcLib.getGemStatRequirement(gemInstance.reqLevel, gemInstance.gemData.reqInt, grantedEffect.support)
end
end
end
Expand Down
73 changes: 73 additions & 0 deletions PathOfBuilding.app/Contents/Resources/src/Locales/ja.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3100,6 +3100,79 @@ return {
["Wave Pulse Rate"] = "ウェーブパルス速度",
["Weapon Range"] = "武器レンジ",
["Wither Effect"] = "ウィザー効果",
-- Phase 3: upstream CalcSections 新規ラベル
["2 Add. Proj. Chance"] = "追加投射物2本確率",
["Ailment Threshold"] = "状態異常閾値",
["Ailment modifiers"] = "状態異常補正",
["Arm. as Deflection"] = "アーマー→偏向",
["Armour Break / hit"] = "アーマーブレイク/ヒット",
["Average Poison Roll"] = "平均毒ロール",
["Bolt Count"] = "ボルト数",
["Chance to Blind"] = "暗転確率",
["Chance to Daze"] = "朦朧確率",
["Chance to Rearm"] = "再装填確率",
["Charm Limit"] = "チャーム上限",
["Charms"] = "チャーム",
["Curse Delay"] = "呪い遅延",
["Deflect Chance"] = "偏向確率",
["Deflect Effect"] = "偏向効果",
["Deflection"] = "偏向",
["Deflection Rating"] = "偏向値",
["Detonation Time"] = "起爆時間",
["Dmg. of all Bleeds"] = "全出血ダメージ",
["Dmg. of all Ignites"] = "全発火ダメージ",
["Dmg. of all Poisons"] = "全毒ダメージ",
["Eff. Bolt Count"] = "有効ボルト数",
["Eff. Reload Time"] = "有効リロード時間",
["Effective \\"] = "有効 \\",
["Ele Recoup"] = "元素リクープ",
["Electrocute Buildup"] = "感電蓄積",
["Enemy Ail. Thresh."] = "敵状態異常閾値",
["Eva. as Deflection"] = "回避→偏向",
["Firing Rate"] = "発射速度",
["Freeze Buildup"] = "凍結蓄積",
["Gem Req Mod"] = "ジェム要求補正",
["Ice Crystal Life"] = "氷結晶ライフ",
["Inc. Quiver Effect"] = "矢筒効果増加",
["Inc. Reload Speed"] = "リロード速度増加",
["Increased Energy Shield Recovery"] = "ES回復量増加",
["Increased Life Recovery"] = "ライフ回復量増加",
["Increased Mana Recovery"] = "マナ回復量増加",
["Item Req Mod"] = "アイテム要求補正",
["Leech Conversion"] = "リーチ変換",
["MH Crit Bifurcates"] = "主手クリ分岐",
["MS While Casting"] = "詠唱中移動速度",
["Magnitude Effect"] = "マグニチュード効果",
["Mark Effect Mod"] = "マーク効果補正",
["Mark Limit"] = "マーク上限",
["Max Poison Stacks"] = "最大毒スタック",
["Minion Revival Time"] = "ミニオン復活時間",
["More Energy Shield Recovery"] = "ESのmore回復",
["More Life Recovery"] = "ライフのmore回復",
["More Mana Recovery"] = "マナのmore回復",
["More Reload Speed"] = "リロード速度more",
["No Ammo Consume"] = "弾薬非消費",
["OH Crit Bifurcates"] = "副手クリ分岐",
["Override"] = "オーバーライド",
["Perfect Timing"] = "パーフェクトタイミング",
["Pin Buildup"] = "ピン蓄積",
["Presence Mod"] = "プレゼンス補正",
["Presence Radius"] = "プレゼンス範囲",
["Reload Time"] = "リロード時間",
["Shock Stacks"] = "感電スタック",
["Spell Evade Ch."] = "スペル回避率",
["Spell Proj. Evade Ch."] = "スペル投射物回避率",
["Spirit"] = "スピリット",
["Spirit % Cost"] = "スピリット%コスト",
["Spirit Cost"] = "スピリットコスト",
["Spirit Reserve Mod"] = "スピリット予約補正",
["Stun Buildup"] = "スタン蓄積",
["Surrounded Mod"] = "包囲補正",
["Surrounded Radius"] = "包囲範囲",
["Terrain Chain"] = "地形チェイン",
["Total Firing Time"] = "総発射時間",
["Weap. Swap Speed"] = "武器切替速度",
["Weapon Req Mod"] = "武器要求補正",
},
party = {
ui = {
Expand Down
Loading