Fix localization

This commit is contained in:
1024jp 2023-10-06 01:05:48 +09:00
parent 7a02b40bf4
commit bb1fafe881
3 changed files with 8 additions and 3 deletions

View File

@ -11,6 +11,11 @@ Change Log
- [trivial] Avoid unwanted line break in the character inspector.
### Fixes
- Fix that a label was not localized.
4.6.2 (594)
--------------------------

View File

@ -186,7 +186,7 @@ final class EditorTextViewController: NSViewController, NSTextViewDelegate {
let item = NSMenuItem()
item.title = ""
item.setAccessibilityLabel(String(localized: "Script"))
item.image = NSImage(systemSymbolName: "applescript.fill", accessibilityDescription: String(localized: "Scripts"))
item.image = NSImage(systemSymbolName: "applescript.fill", accessibilityDescription: String(localized: "Script"))
item.toolTip = String(localized: "Script")
item.submenu = scriptMenu

View File

@ -124,8 +124,8 @@ extension NSTextView {
progress.finish()
let message = (progress.count == 0)
? String(localized: "Not replaced")
: String(localized: "\(progress.count) replaced")
? String(localized: "Not replaced", table: "Count")
: String(localized: "\(progress.count) replaced", table: "Count")
self.requestAccessibilityAnnouncement(message)