Screenshots, hung out to dry. A tiny native macOS app that hangs every screenshot on a line at the top of your screen.
Swift
Turkish language support (#27)
Efe Cömert2c7d226c11c5
diff --git a/README.md b/README.mdindex cd72a72..fa48a1a 100644--- a/README.md+++ b/README.md@@ -75,7 +75,7 @@ Tendedero runs entirely on your Mac, and your screenshots never leave it.|:--|:--|| **Compatibility** | macOS 14 Sonoma or later, on Apple silicon and Intel. Designed for macOS 27. || **Size** | 1.7 MB |-| **Languages** | English, Spanish, Chinese (Simplified) |+| **Languages** | English, Spanish, Chinese (Simplified), Turkish || **Built with** | Swift, AppKit and SwiftUI || **Network access** | None || **Price** | Free |diff --git a/Sources/Tendedero/Resources/tr.lproj/Localizable.strings b/Sources/Tendedero/Resources/tr.lproj/Localizable.stringsnew file mode 100644index 0000000..0879552--- /dev/null+++ b/Sources/Tendedero/Resources/tr.lproj/Localizable.strings@@ -0,0 +1,34 @@+/* Turkish. */++/* AppDelegate */+"Let Tendedero handle your screenshots?" = "Ekran görüntülerini Tendedero yönetsin mi?";+"Screenshots will hang on the line the instant you take them, without the floating thumbnail, and will not pile up on your Desktop. Drag one to a folder to keep it, or discard it with the cross. You can turn this off from the menu bar, and your settings come back when Tendedero quits." = "Ekran görüntüleri, kayan küçük resim olmadan anında ipin üzerine asılacak ve Masaüstünüzde birikmeyecek. Saklamak için bir klasöre sürükleyin ya da çarpı ile silin. Bunu menü çubuğundan kapatabilirsiniz; Tendedero kapandığında ayarlarınız geri gelir.";+"Turn on" = "Etkinleştir";+"Not now" = "Şimdi değil";+"Hide line" = "İpi gizle";+"Show line" = "İpi göster";+"Take everything down" = "Hepsini indir";+"Handle screenshots" = "Ekran görüntülerini yönet";+"Screenshots hang instantly and skip the Desktop" = "Ekran görüntüleri anında asılır ve Masaüstünü atlar";+"Open screenshots folder" = "Ekran görüntüleri klasörünü aç";+"Sounds" = "Sesler";+"Open at login" = "Başlangıçta aç";+"Quit Tendedero" = "Tendedero'yu kapat";+"Could not change the login setting" = "Giriş ayarı değiştirilemedi";+"Move Tendedero to the Applications folder and try again." = "Tendedero'yu Uygulamalar klasörüne taşıyın ve tekrar deneyin.";++/* GrabArea */+"Copy" = "Kopyala";+"Open" = "Aç";+"Markup" = "İşaretle";+"Show in Finder" = "Finder'da göster";+"Save to Desktop" = "Masaüstüne kaydet";+"Discard" = "Sil";+"Take down" = "İndir";+"Move to Trash" = "Çöp Kutusu'na taşı";++/* LineView */+"Take a screenshot and it will hang here" = "Bir ekran görüntüsü al, buraya asılacak";++/* PeggedView */+"Copied" = "Kopyalandı";diff --git a/docs/i18n/README.es.md b/docs/i18n/README.es.mdindex 5fe9db7..e6fd779 100644--- a/docs/i18n/README.es.md+++ b/docs/i18n/README.es.md@@ -77,7 +77,7 @@ Tendedero funciona solo en tu Mac, y tus capturas nunca salen de él.|:--|:--|| **Compatibilidad** | macOS 14 Sonoma o posterior, en Mac con Apple silicon o Intel. Pensado para macOS 27. || **Tamaño** | 1,7 MB |-| **Idiomas** | Inglés, español y chino simplificado |+| **Idiomas** | Inglés, español, chino simplificado y turco || **Hecho con** | Swift, AppKit y SwiftUI || **Conexión a internet** | No la usa || **Precio** | Gratis |diff --git a/docs/i18n/README.zh-Hans.md b/docs/i18n/README.zh-Hans.mdindex 1470c10..3aa118d 100644--- a/docs/i18n/README.zh-Hans.md+++ b/docs/i18n/README.zh-Hans.md@@ -76,7 +76,7 @@ Tendedero 完全在你的 Mac 上运行,截图不会离开这台电脑。|:--|:--|| **兼容性** | macOS 14 Sonoma 及以上,Apple 芯片与 Intel 均支持。已针对 macOS 27 设计。 || **体积** | 1.7 MB |-| **语言** | 英语、西班牙语、简体中文 |+| **语言** | 英语、西班牙语、简体中文、土耳其语 || **技术栈** | Swift、AppKit 与 SwiftUI || **网络访问** | 无 || **价格** | 免费 |diff --git a/scripts/check-strings.swift b/scripts/check-strings.swiftindex 3d69228..be5f514 100644--- a/scripts/check-strings.swift+++ b/scripts/check-strings.swift@@ -1,5 +1,7 @@// Checks the translations: every L("...") in the code has an entry in each// language, and no language keeps entries the code no longer uses.+// A missing translation is only a warning, because the app shows the English+// text instead. Everything else is an error.// Usage: swift scripts/check-strings.swiftimport Foundation@@ -11,6 +13,7 @@ let fm = FileManager.default// checked, so it is reported too.var used = Set<String>()var problems: [String] = []+var warnings: [String] = []let literal = try NSRegularExpression(pattern: #"\bL\(\s*"((?:[^"\\]|\\.)*)"\s*\)"#)let anyCall = try NSRegularExpression(pattern: #"\bL\("#)for case let file as URL in fm.enumerator(at: sources, includingPropertiesForKeys: nil)!@@ -37,12 +40,16 @@ for folder in languages {continue}let keys = Set(table.keys)- for key in used.subtracting(keys).sorted() { problems.append("\(folder): missing \"\(key)\"") }+ for key in used.subtracting(keys).sorted() {+ let message = "\(folder): missing \"\(key)\""+ if folder == "en.lproj" { problems.append(message) } else { warnings.append(message) }+ }for key in keys.subtracting(used).sorted() { problems.append("\(folder): unused \"\(key)\"") }}+warnings.forEach { print("warning: \($0)") }if problems.isEmpty {- print("\(used.count) strings, all present in \(languages.map { $0.replacingOccurrences(of: ".lproj", with: "") }.joined(separator: ", "))")+ print("\(used.count) strings, checked in \(languages.map { $0.replacingOccurrences(of: ".lproj", with: "") }.joined(separator: ", "))")} else {problems.forEach { print($0) }exit(1)