Skip to content

Commit

Permalink
tips + localizations
Browse files Browse the repository at this point in the history
  • Loading branch information
KrLite committed May 12, 2024
1 parent 2b64be5 commit c1a9644
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 2 deletions.
Binary file not shown.
34 changes: 32 additions & 2 deletions Abyssal/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,12 @@
"state" : "new",
"value" : "All"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "全部"
}
}
}
},
Expand All @@ -181,6 +187,12 @@
"state" : "new",
"value" : "Any"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "任一"
}
}
}
},
Expand Down Expand Up @@ -472,6 +484,24 @@
}
}
},
"Tip/PopUpButtonModifierModes" : {
"comment" : "(pop up button) modifier modes",
"extractionState" : "extracted_with_value",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "new",
"value" : "Decides how the modifier keys are triggered."
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "决定修饰键的触发规则。"
}
}
}
},
"Tip/PopUpButtonThemes" : {
"comment" : "(pop up button) themes",
"extractionState" : "extracted_with_value",
Expand Down Expand Up @@ -628,8 +658,8 @@
},
"zh-Hans" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "选择要使用的修饰键。按下已选择的任一修饰键都可以触发相同效果。建议保持 ⌘ 修饰键启用。"
"state" : "translated",
"value" : "选择要使用的修饰键。建议保持 ⌘ 修饰键启用。"
}
}
}
Expand Down
9 changes: 9 additions & 0 deletions Abyssal/Views/MenuController+Initializers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,15 @@ Minimize this window. Right click on the `Menu Separator` to open this window ag
)!, trackingArea: buttonMinimize.visibleRect.getTrackingArea(self, viewToAdd: buttonMinimize)
),

popUpButtonModifierMode: (
tip: Tip(
tipString: {
NSLocalizedString("Tip/PopUpButtonModifierModes", value: """
Decides how the modifier keys are triggered.
""", comment: "(pop up button) modifier modes")
}
)!, trackingArea: popUpButtonModifierMode.visibleRect.getTrackingArea(self, viewToAdd: popUpButtonModifierMode)
),
popUpButtonTheme: (
tip: Tip(
tipString: {
Expand Down
12 changes: 12 additions & 0 deletions Abyssal/mul.lproj/Main.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,12 @@
"state" : "new",
"value" : "to trigger"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "修饰键以触发"
}
}
}
},
Expand All @@ -352,6 +358,12 @@
"state" : "new",
"value" : "Press"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "按下"
}
}
}
},
Expand Down

0 comments on commit c1a9644

Please sign in to comment.