Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.
Swift cache-cleanercleanerclideveloper-toolsdisk-cleanupdisk-spaceduplicate-finderhomebrewliquid-glassmac-cleanermacosmacos-appmacos-golden-gatemacos-tahoemacos-tweaksswiftswiftuiterminal-themesuninstalluninstaller
Call a command-line tool by one name in every language
Țugui Dragoș2f2d3a15c7b8
diff --git a/Localization/Peel/Localizable.xcstrings b/Localization/Peel/Localizable.xcstringsindex c690e43c..5a10e8ea 100644--- a/Localization/Peel/Localizable.xcstrings+++ b/Localization/Peel/Localizable.xcstrings@@ -26150,7 +26150,7 @@"cs" : {"stringUnit" : {"state" : "translated",- "value" : "Příkazový nástroj"+ "value" : "Nástroj příkazového řádku"}},"de" : {@@ -26162,7 +26162,7 @@"es" : {"stringUnit" : {"state" : "translated",- "value" : "Comando de terminal"+ "value" : "Herramienta de línea de comandos"}},"fr" : {@@ -26174,7 +26174,7 @@"it" : {"stringUnit" : {"state" : "translated",- "value" : "Comando da terminale"+ "value" : "Strumento da riga di comando"}},"ja" : {@@ -26198,25 +26198,25 @@"pl" : {"stringUnit" : {"state" : "translated",- "value" : "Narzędzie terminala"+ "value" : "Narzędzie wiersza polecenia"}},"pt" : {"stringUnit" : {"state" : "translated",- "value" : "Linha de Comando"+ "value" : "Ferramenta de Linha de Comando"}},"ro" : {"stringUnit" : {"state" : "translated",- "value" : "Comandă de terminal"+ "value" : "Instrument în linie de comandă"}},"ru" : {"stringUnit" : {"state" : "translated",- "value" : "Утилита командной строки"+ "value" : "Инструмент командной строки"}},"sv" : {@@ -26234,7 +26234,7 @@"uk" : {"stringUnit" : {"state" : "translated",- "value" : "Консольна утиліта"+ "value" : "Інструмент командного рядка"}},"zh-Hans" : {diff --git a/Packages/PeelCore/Tests/PeelCoreTests/StringCatalogTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/StringCatalogTests.swiftindex a06b7cc8..8169c0c8 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/StringCatalogTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/StringCatalogTests.swift@@ -57,6 +57,21 @@ import Testing#expect(checker.problems.isEmpty, "\(checker.problems.map(\.description).joined(separator: "\n"))")}+ @Test func aCommandLineToolHasOneName() throws {+ let catalog = try Self.localizable()+ var problems: [String] = []+ for language in try Self.declaredLanguages() {+ guard let kind = Self.value(of: "Command-Line Tool", in: language, catalog),+ let name = Self.value(of: "Command-line tool", in: language, catalog) else { continue }+ // Some languages capitalize every word of a kind, as Portuguese and Turkish do.+ let locale = Locale(identifier: language)+ if kind.lowercased(with: locale) != name.lowercased(with: locale) {+ problems.append("\(language): a table's kind reads \(kind.debugDescription), Settings \(name.debugDescription)")+ }+ }+ #expect(problems.isEmpty, "\(problems.joined(separator: "\n"))")+ }+/// Each sidebar name fits in the font the sidebar draws with, at both weights for Bold Text. The sidebar grows/// to 320 points for its longest name and cuts a longer one: 37 of those points are the row's insets, and 26/// are the symbol and its gap.