update placeholder for alias input field

This commit is contained in:
True Zhuanjia committed 2024-07-26 19:53:36 +08:00
1 parent 039bf549a9
commit f5342caca6
2 files changed
+5 -5

No files matched your search

+4 -4
View File
@@ -145,25 +145,25 @@
} }
} }
}, },
"Alias" : { "Alias (optional)" : {
"extractionState" : "manual", "extractionState" : "manual",
"localizations" : { "localizations" : {
"zh-Hans" : { "zh-Hans" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "别名" "value" : "别名 (允许留空)"
} }
}, },
"zh-Hant" : { "zh-Hant" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "别名" "value" : "别名 (允许留空)"
} }
}, },
"zh-HK" : { "zh-HK" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "translated",
"value" : "别名" "value" : "别名 (允许留空)"
} }
} }
} }
@@ -175,7 +175,7 @@ import UIKit
@objc private func addButtonTapped() { @objc private func addButtonTapped() {
let alert = UIAlertController(title: SwiftLocalizationHelper.localizedString(forKey: "New Command"), message: SwiftLocalizationHelper.localizedString(forKey: "Enter a new command and alias"), preferredStyle: .alert) let alert = UIAlertController(title: SwiftLocalizationHelper.localizedString(forKey: "New Command"), message: SwiftLocalizationHelper.localizedString(forKey: "Enter a new command and alias"), preferredStyle: .alert)
alert.addTextField { $0.placeholder = SwiftLocalizationHelper.localizedString(forKey:"Command") } alert.addTextField { $0.placeholder = SwiftLocalizationHelper.localizedString(forKey:"Command") }
alert.addTextField { $0.placeholder = SwiftLocalizationHelper.localizedString(forKey: "Alias") } alert.addTextField { $0.placeholder = SwiftLocalizationHelper.localizedString(forKey: "Alias (optional)") }
alert.textFields?[0].keyboardType = .asciiCapable alert.textFields?[0].keyboardType = .asciiCapable
alert.textFields?[0].autocorrectionType = .no alert.textFields?[0].autocorrectionType = .no
alert.textFields?[0].spellCheckingType = .no alert.textFields?[0].spellCheckingType = .no