Commit 64cf820baa

64cf820baaa28ffc1584f14cf4c10dd6281f3bd8

parent: 2b4bbb3825

Verified · cmc

cmc <hello@cleberg.net> · 2026-11-20 07:24 UTC

Review fixes for the Mac App Store build

- Keep the Emacs wording in the Developer ID and iOS apps; the App Store app turns it off at launch (EmacsFallback)
- Refresh orgstar+ when the app becomes active and when a subscription expires
- Show a message and Try Again when plans don't load
- Ask for access to capture targets, archive files, roam, dailies and Denote folders, and export images
- Ignore environment config folders outside the container in the sandbox
- Move license and update strings to l10n/DeveloperID.xcstrings, compiled only into the Developer ID app; release-macos.sh checks the string tables
- Keep buffer bookmarks on every save, not only at quit
- Say when a picked folder doesn't cover the one asked for, or a grant or config folder can't be kept
- Count the configuration folder as reachable; don't ask for missing setup files or includes
- Translate the new strings; list what is left before submission in CONTRIBUTING.org

Layout: unified · split

CONTRIBUTING.org +11
@@ -92,6 +92,17 @@ data in =~/Library/Group Containers/group.sh.krz.orgstar/=. A development build
9292Store install share them, as they share the bundle ID. Keep the Developer ID app out of the way
9393while testing, since Finder, Quick Look, Spotlight and URL handlers bind to one copy.
9494
95Not yet done before the first submission:
96- A smoke test of a signed, sandboxed build: Grant Access… for includes, setup files, tangle
97 and export targets, images, capture, archive and dailies outside the folders (including a
98 picked folder that doesn't contain the one asked for); Can't Open and regranting a folder;
99 files opened from Finder coming back after a relaunch and after a force quit; the
100 configuration folder after a relaunch; =:shebang= tangling setting the mode; Save Elsewhere…
101 for exports; the Import from Emacs pickers; the welcome sheet's iCloud Drive folder.
102- The Mac screenshots (below).
103- The TestFlight group for the Mac app, in App Store Connect.
104- Installing each Mac version over the other, with the results in the manual's Install page.
105
95106** Mac screenshots
96107
97108App Store Connect takes Mac screenshots at 1280x800, 1440x900, 2560x1600 or 2880x1800 pixels.
Sources/OrgApp/ConfigFolder.swift +7 −5
@@ -20,12 +20,14 @@ public enum ConfigFolder {
2020 return url
2121 }
2222
23 /// Keeps `url`, as from a folder picker, as the chosen folder and starts access to it.
24 public static func set(_ url: URL, defaults: UserDefaults = .standard, sandboxed: Bool = Sandbox.isActive) {
23 /// Keeps `url`, as from a folder picker, as the chosen folder and starts access to it. False
24 /// when its bookmark can't be made, so the choice isn't kept after the app quits.
25 @discardableResult
26 public static func set(_ url: URL, defaults: UserDefaults = .standard, sandboxed: Bool = Sandbox.isActive) -> Bool {
2527 _ = url.startAccessingSecurityScopedResource()
26 if let bookmark = try? url.bookmarkData(options: Sandbox.bookmarkCreationOptions(sandboxed: sandboxed)) {
27 defaults.set(bookmark, forKey: bookmarkKey)
28 }
28 guard let bookmark = try? url.bookmarkData(options: Sandbox.bookmarkCreationOptions(sandboxed: sandboxed)) else { return false }
29 defaults.set(bookmark, forKey: bookmarkKey)
30 return true
2931 }
3032
3133 /// Stops using a chosen folder.
Sources/OrgApp/DocumentSession.swift +6
@@ -752,6 +752,12 @@ public final class DocumentSession {
752752 return (TextEdit(range: at..<at, replacement: insertion), newStart, level)
753753 }
754754
755 /// The file `archive(from:now:)` moves the entry to, or nil when it can't tell.
756 public func archiveFile(from: (path: String, offset: Int)? = nil, now: Date = Date()) -> String? {
757 guard let (path, context) = source(from, now: now), case .success(let destination) = Archive.destination(context, sourcePath: path) else { return nil }
758 return destination.path
759 }
760
755761 /// Archives the subtree at the caret, or at `from`, where `org-archive-subtree` would.
756762 /// Returns a message.
757763 @discardableResult
Sources/OrgApp/FolderGrants.swift +14 −4
@@ -47,12 +47,22 @@ public final class FolderGrants {
4747 if kept != saved { defaults.set(kept, forKey: Self.key) }
4848 }
4949
50 /// Keeps `url`, a folder from an open panel, and starts access to it.
51 public func add(_ url: URL) {
50 /// Keeps `url`, a folder from an open panel, and starts access to it. False when its
51 /// bookmark can't be made, so access lasts only until the app quits.
52 @discardableResult
53 public func add(_ url: URL) -> Bool {
5254 _ = url.startAccessingSecurityScopedResource()
53 guard !folders.contains(where: { $0.standardizedFileURL == url.standardizedFileURL }),
54 let data = SecurityBookmark.make(url, sandboxed: sandboxed) else { return }
55 guard !folders.contains(where: { $0.standardizedFileURL == url.standardizedFileURL }) else { return true }
5556 folders.append(url)
57 guard let data = SecurityBookmark.make(url, sandboxed: sandboxed) else { return false }
5658 defaults.set((defaults.array(forKey: Self.key) as? [Data] ?? []) + [data], forKey: Self.key)
59 return true
60 }
61
62 /// Whether `granted` is `folder` or contains it.
63 public nonisolated static func covers(_ granted: URL, _ folder: URL) -> Bool {
64 let outer = granted.resolvingSymlinksInPath().standardizedFileURL.path
65 let inner = folder.resolvingSymlinksInPath().standardizedFileURL.path
66 return inner == outer || inner.hasPrefix(outer == "/" ? "/" : outer + "/")
5767 }
5868}
Sources/OrgApp/PDFExport.swift +17 −3
@@ -52,8 +52,24 @@ public enum PDFExport {
5252 }
5353 }
5454
55 /// The local files the `<img>` tags of `html` name.
56 public nonisolated static func imageFiles(_ html: String, directory: URL?) -> [String] {
57 var paths: [String] = []
58 for match in html.matches(of: /<img\b[^>]*?\bsrc="([^"]*)"/) {
59 if let path = imageURL(String(match.output.1), directory: directory)?.path, !paths.contains(path) { paths.append(path) }
60 }
61 return paths
62 }
63
5564 /// The file an `<img src>` names, as a `data:` URI; nil for remote or unreadable images.
5665 nonisolated static func dataURI(_ src: String, directory: URL?) -> String? {
66 guard let url = imageURL(src, directory: directory), let data = try? Data(contentsOf: url) else { return nil }
67 let type = UTType(filenameExtension: url.pathExtension)?.preferredMIMEType ?? "application/octet-stream"
68 return "data:\(type);base64,\(data.base64EncodedString())"
69 }
70
71 /// The local file an `<img src>` names; nil for remote images.
72 nonisolated static func imageURL(_ src: String, directory: URL?) -> URL? {
5773 let path = src.replacingOccurrences(of: "&quot;", with: "\"").replacingOccurrences(of: "&lt;", with: "<")
5874 .replacingOccurrences(of: "&gt;", with: ">").replacingOccurrences(of: "&amp;", with: "&")
5975 let url: URL
@@ -69,9 +85,7 @@ public enum PDFExport {
6985 } else {
7086 return nil
7187 }
72 guard let data = try? Data(contentsOf: url) else { return nil }
73 let type = UTType(filenameExtension: url.pathExtension)?.preferredMIMEType ?? "application/octet-stream"
74 return "data:\(type);base64,\(data.base64EncodedString())"
88 return url
7589 }
7690
7791 /// Each page's number, centred in its bottom margin, as an annotation: drawing it into the
Sources/OrgApp/ProStore.swift +31 −2
@@ -36,9 +36,11 @@ public final class ProStore {
3636 public private(set) var products: [Product] = []
3737 public private(set) var activeProductID: String?
3838 public private(set) var busy = false
39 public private(set) var isLoading = false
3940 public var message: String?
4041
4142 @ObservationIgnored private var updates: Task<Void, Never>?
43 @ObservationIgnored private var expiry: Task<Void, Never>?
4244
4345 private init() {}
4446
@@ -57,24 +59,35 @@ public final class ProStore {
5759 }
5860
5961 public func loadProducts() async {
60 guard products.isEmpty else { return }
62 guard products.count < Self.productIDs.count, !isLoading else { return }
63 isLoading = true
64 message = nil
65 defer { isLoading = false }
6166 do {
6267 let fetched = try await Product.products(for: Self.productIDs)
6368 products = Self.productIDs.compactMap { id in fetched.first { $0.id == id } }
69 if products.count < Self.productIDs.count {
70 message = String(localized: "Some plans aren't available from the App Store right now.")
71 }
6472 } catch {
65 message = "The App Store can't be reached right now."
73 message = String(localized: "The App Store can't be reached right now.")
6674 }
6775 }
6876
6977 /// Sets Pro from the current entitlements, or from the original download predating Pro.
7078 public func refresh() async {
7179 var active: String?
80 var expires: Date?
7281 for await result in Transaction.currentEntitlements {
7382 guard case .verified(let transaction) = result, Self.productIDs.contains(transaction.productID),
7483 transaction.revocationDate == nil else { continue }
7584 if active == nil || transaction.productID == Self.lifetime { active = transaction.productID }
85 if let date = transaction.expirationDate { expires = max(expires ?? date, date) }
7686 }
7787 activeProductID = active
88 #if os(macOS)
89 refresh(at: active == Self.lifetime ? nil : expires)
90 #endif
7891 if active != nil {
7992 ProAccess.shared.set(.purchase)
8093 } else if await Self.predatesPro() {
@@ -85,6 +98,22 @@ public final class ProStore {
8598 }
8699 }
87100
101 #if os(macOS)
102 /// Checks again when a subscription runs out, since StoreKit sends no update for a lapse and
103 /// the Mac app can stay open for weeks.
104 private func refresh(at date: Date?) {
105 expiry?.cancel()
106 expiry = nil
107 guard let date, date > .now else { return }
108 expiry = Task {
109 try? await Task.sleep(for: .seconds(date.timeIntervalSinceNow + 1))
110 guard !Task.isCancelled else { return }
111 // A new task, so cancelling this one can't cut the entitlement check short.
112 Task { await ProStore.shared.refresh() }
113 }
114 }
115 #endif
116
88117 /// Whether this Apple Account first downloaded orgstar before Pro. Only the production App
89118 /// Store reports real original versions; sandbox and Xcode always say "1.0".
90119 private static func predatesPro() async -> Bool {
Sources/OrgApp/RoamActions.swift +7
@@ -21,6 +21,9 @@ public struct RoamActions {
2121 public var insertLink: (_ link: String, _ title: String) -> Void
2222 /// The index reads new files.
2323 public var refresh: () -> Void
24 /// In the Mac sandbox, asks for access to folders outside the sidebar's that new notes go
25 /// in. False when one is still out of reach.
26 public var reachFolders: ([String]) -> Bool = { _ in true }
2427
2528 public init(
2629 session: DocumentSession, roots: @escaping () -> [String], nodes: @escaping () -> [IndexStore.Node], show: @escaping (String) -> Void,
@@ -126,6 +129,7 @@ public struct RoamActions {
126129 /// `org-roam-dailies-goto-*`: the day's file, made if missing.
127130 func goto(_ day: Date) {
128131 guard let dailies else { return show("No folder for daily notes") }
132 guard reachFolders([dailies.directory]) else { return }
129133 do {
130134 let (path, created) = try dailies.ensure(day)
131135 if created { refresh() }
@@ -139,6 +143,7 @@ public struct RoamActions {
139143 /// which opens with the caret at `%?`.
140144 func capture(_ day: Date) {
141145 guard let dailies else { return show("No folder for daily notes") }
146 guard reachFolders([dailies.directory]) else { return }
142147 let context = CaptureContext(now: day, file: session.path ?? "", userName: NSFullUserName())
143148 let questions = Capture.questions(dailies.entry, context: context)
144149 func ask(_ answers: [String]) {
@@ -193,6 +198,7 @@ public struct RoamActions {
193198 guard !title.isEmpty else { return }
194199 if denote || silo != nil { return createDenote(title, known: all, silo: silo, then) }
195200 guard let folder = RoamNode.directory(roots: roots()) else { return show("No folder for new nodes") }
201 guard reachFolders([folder]) else { return }
196202 do {
197203 let node = try RoamNode.create(title: title, in: folder)
198204 refresh()
@@ -240,6 +246,7 @@ public struct RoamActions {
240246 var answers = answers
241247 switch prompts.first {
242248 case nil:
249 guard reachFolders([answers.folder ?? root]) else { return }
243250 do {
244251 let note = try DenoteNote.create(title: title, keywords: answers.keywords, in: answers.folder ?? root, roots: roots,
245252 now: answers.date ?? Date(), signature: answers.signature, template: answers.template)
Sources/OrgApp/UserConfig.swift +14 −5
@@ -13,14 +13,23 @@ public enum UserConfig {
1313
1414 public static var directory: URL {
1515 if let directoryOverride { return directoryOverride }
16 let environment = ProcessInfo.processInfo.environment
17 if let override = environment["ORGSTAR_CONFIG_DIR"] { return URL(fileURLWithPath: override) }
16 return defaultDirectory(environment: ProcessInfo.processInfo.environment, home: NSHomeDirectory(), sandboxed: Sandbox.isActive)
17 }
18
19 /// The folder from the environment, else `~/.config/orgstar`. In the sandbox, `home` is the
20 /// container and folders from the environment outside it are ignored, since they can't be
21 /// reached without a grant.
22 public static func defaultDirectory(environment: [String: String], home: String, sandboxed: Bool) -> URL {
23 let usable: (String) -> Bool = { path in
24 !sandboxed || (path as NSString).standardizingPath.hasPrefix((home as NSString).standardizingPath + "/")
25 }
26 if let override = environment["ORGSTAR_CONFIG_DIR"], usable(override) { return URL(fileURLWithPath: override) }
1827 // Development runs keep everything in their data folder.
19 if let data = environment["ORGSTAR_DATA_DIR"] { return URL(fileURLWithPath: data) }
20 if let xdg = environment["XDG_CONFIG_HOME"], !xdg.isEmpty {
28 if let data = environment["ORGSTAR_DATA_DIR"], usable(data) { return URL(fileURLWithPath: data) }
29 if let xdg = environment["XDG_CONFIG_HOME"], !xdg.isEmpty, usable(xdg) {
2130 return URL(fileURLWithPath: xdg).appendingPathComponent("orgstar")
2231 }
23 return URL(fileURLWithPath: NSHomeDirectory()).appendingPathComponent(".config/orgstar")
32 return URL(fileURLWithPath: home).appendingPathComponent(".config/orgstar")
2433 }
2534
2635 /// The theme `config.toml` (`text`) sets: its `[theme]` tables' colors over those of
Sources/OrgApp/WorkspaceModel.swift +12
@@ -163,9 +163,21 @@ public final class WorkspaceModel {
163163 public func foldersToGrant(for paths: [String], directories: Bool = false) -> [URL] {
164164 guard Sandbox.isActive else { return [] }
165165 let reachable = Array(resolvedRoots.values) + FolderGrants.shared.folders + [URL(fileURLWithPath: NSHomeDirectory())]
166 + (UserConfig.directoryOverride.map { [$0] } ?? [])
166167 return Self.foldersToGrant(for: paths, directories: directories, reachable: reachable)
167168 }
168169
170 /// Whether the file at `path` is there to be read, for all the read failed: missing files
171 /// aren't worth asking for access to.
172 public nonisolated static func isThere(_ path: String) -> Bool {
173 do {
174 _ = try Data(contentsOf: URL(fileURLWithPath: path), options: .mappedIfSafe)
175 return true
176 } catch let error as NSError {
177 return !(error.domain == NSCocoaErrorDomain && error.code == NSFileReadNoSuchFileError)
178 }
179 }
180
169181 nonisolated static func foldersToGrant(
170182 for paths: [String], directories: Bool, reachable: [URL],
171183 exists: (String) -> Bool = { FileManager.default.fileExists(atPath: $0) }
Sources/OrgCore/Compute/BabelCache.swift +2 −1
@@ -45,7 +45,8 @@ extension Babel {
4545 /// sorted by key and printed with `%S`, then the expanded body.
4646 static func cacheInput(language: String, params: Params, tables: Tables, expanded: String, call: Bool) throws -> String {
4747 if let key = params.lisp.first(where: { params.evaluated[$0] == nil }) {
48 throw Failure.message(":cache with \(key) \(params.single[key] ?? "") is Lisp that can't be evaluated here; nothing was run.")
48 let setting = ":cache with \(key) \(params.single[key] ?? "")"
49 throw Failure.message(setting + EmacsFallback.wording(" needs Emacs to evaluate the Lisp; nothing was run.", " is Lisp that can't be evaluated here; nothing was run."))
4950 }
5051 let ignored: Set<String> = ["replace", "silent", "none", "discard", "append", "prepend"]
5152 let drawsFile = language == "dot" || language == "plantuml"
Sources/OrgCore/Compute/BabelExpand.swift +1 −1
@@ -518,7 +518,7 @@ extension Babel {
518518 run = "echo | clojure -M \(file)\n"
519519 programs = ["clojure"]
520520 case let backend?:
521 throw Failure.message("The \(backend) backend for clojure isn't supported; orgstar runs babashka or clojure-cli.")
521 throw Failure.message("The \(backend) backend for clojure " + EmacsFallback.wording("needs Emacs", "isn't supported") + "; orgstar runs babashka or clojure-cli.")
522522 }
523523 return CompiledRun(source: expanded, script: start + "cat > \(file)\n" + run + end, programs: [programs])
524524 default:
Sources/OrgCore/Compute/TableFormulaCommands.swift +2 −2
@@ -9,7 +9,7 @@ public struct TableRecalculate: OrgCommand {
99 public var id: String { all ? "org.table.recalc-all" : "org.table.recalc" }
1010 public var title: String { all ? "Recalculate Table" : "Recalculate Table Row" }
1111
12 public static let emacsMessage = "can't be calculated here: "
12 public static var emacsMessage: String { EmacsFallback.wording("needs Emacs: ", "can't be calculated here: ") }
1313
1414 public func applies(in context: EditContext) -> Bool {
1515 KeyContext.holds("table", in: context) || Self.tblfmLine(in: context) != nil
@@ -199,7 +199,7 @@ extension EmacsBuffer {
199199 do {
200200 try tableEvalFormula(formula, analysis: analysis, substituted: false)
201201 } catch let error as Calc.Unsupported {
202 message = "The formula was stored; it can't be calculated here: " + error.reason
202 message = EmacsFallback.wording("The formula was stored; recalculating it needs Emacs: ", "The formula was stored; it can't be calculated here: ") + error.reason
203203 }
204204 tableAlign()
205205 }
Sources/OrgCore/EmacsFallback.swift added +12
@@ -0,0 +1,12 @@
1import Foundation
2
3/// Whether messages may send the user to Emacs for what orgstar can't do itself. The Mac App
4/// Store build, which can't run Emacs, turns it off at launch.
5public enum EmacsFallback {
6 nonisolated(unsafe) public static var offered = true
7
8 /// `emacs` while Emacs is offered, else `other`.
9 public static func wording(_ emacs: String, _ other: String, offered: Bool = offered) -> String {
10 offered ? emacs : other
11 }
12}
Sources/OrgEditorAppKit/OrgEditor.swift +1 −1
@@ -652,7 +652,7 @@ public final class OrgEditor: NSObject {
652652 case .failed(let message):
653653 onMessage?(message)
654654 case .external(let request):
655 if let onExternal { onExternal(request) } else { onMessage?("This isn't available here.") }
655 if let onExternal { onExternal(request) } else { onMessage?(EmacsFallback.wording("This needs Emacs, which isn't available here.", "This isn't available here.")) }
656656 case .prompt(let prompt):
657657 onPrompt?(prompt) { [weak self] answer in
658658 guard let self else { return }
Sources/Orgstar/AgendaView+Actions.swift +3
@@ -146,6 +146,9 @@ extension AgendaView {
146146 message = "No entry selected"
147147 return
148148 }
149 #if APPSTORE
150 guard commands.reach(session.archiveFile(from: (entry.path, offset)).map { [$0] } ?? []) else { return }
151 #endif
149152 message = session.archive(from: (entry.path, offset))
150153 tick += 1
151154 }
Sources/Orgstar/CaptureView.swift +7 −1
@@ -270,7 +270,13 @@ struct CaptureView: View {
270270 }
271271 } else {
272272 placed = template.resolved(workspace: workspace, session: session, clock: clock).flatMap { resolved in
273 session.capture(text, template: resolved.template, root: workspace.rootPaths.first, file: resolved.file, now: captureDate(now))
273 #if APPSTORE
274 let path = resolved.file ?? DocumentSession.resolve(resolved.template.target.file, root: workspace.rootPaths.first)
275 guard commands.reach([path]) else {
276 return .failure(CaptureError(message: String(localized: "orgstar can't reach \(OrgPaths.abbreviatingWithTilde(path)).", comment: "Alert for a folder outside the sidebar's folders")))
277 }
278 #endif
279 return session.capture(text, template: resolved.template, root: workspace.rootPaths.first, file: resolved.file, now: captureDate(now))
274280 }
275281 }
276282 switch placed {
Sources/Orgstar/ContentView.swift +20 −5
@@ -299,13 +299,13 @@ struct ContentView: View {
299299 // Buffers switched by keys show in the sidebar too; a restored caret shows once.
300300 if let path = session.path, selectedFile != path { selectedFile = path }
301301 if let path = session.path, let caret = pendingCarets.removeValue(forKey: path) { session.reveal(caret) }
302 BufferRestore.save(session)
302 saveBuffers()
303303 // Syncthing's conflict copies of the file.
304304 let copies = session.syncConflictCopies().count
305305 if copies > 0 { commands.show("\(copies) sync conflict \(copies == 1 ? "copy" : "copies") of this file; Resolve Sync Conflicts compares them.") }
306306 }
307307 .onChange(of: session.openPaths) { _, paths in
308 BufferRestore.save(session)
308 saveBuffers()
309309 for path in commands.store.editors.keys where !paths.contains(path) { commands.store.releasePath(path) }
310310 }
311311 .onChange(of: editorSettings, initial: true) { _, settings in commands.editorSettings = settings }
@@ -637,6 +637,8 @@ struct ContentView: View {
637637 codeStyle: HTMLCodeStyle(highlighter: PaneView.highlighter, theme: theme), language: OrgPreferences.exportLanguage()
638638 )
639639 let directory = url.deletingLastPathComponent()
640 // Images that can't be read are left out, so offer access to them first.
641 _ = reach(PDFExport.imageFiles(html, directory: directory).filter(WorkspaceModel.isThere))
640642 if format == "print-pdf" { commands.show("Exporting to PDF…") }
641643 Task {
642644 do {
@@ -708,6 +710,14 @@ struct ContentView: View {
708710 #endif
709711 }
710712
713 private func saveBuffers() {
714 #if APPSTORE
715 BufferRestore.save(session, workspace: workspace)
716 #else
717 BufferRestore.save(session)
718 #endif
719 }
720
711721 /// In the App Store build, asks for the folders outside the sidebar's folders that `paths`
712722 /// need. False when one is still out of reach.
713723 private func reach(_ paths: @autoclosure () -> [String], directories: Bool = false) -> Bool {
@@ -727,10 +737,10 @@ struct ContentView: View {
727737 var setupFiles: [String] = []
728738 _ = Preferences.orgSettings.resolvingSetupFiles(in: text, path: path) { file in
729739 let contents = OrgSettings.readFile(file)
730 if contents == nil { setupFiles.append(file) }
740 if contents == nil, WorkspaceModel.isThere(file) { setupFiles.append(file) }
731741 return contents
732742 }
733 let includes = ExportPreprocess.unreadableIncludes(text, directory: directory)
743 let includes = ExportPreprocess.unreadableIncludes(text, directory: directory).filter(WorkspaceModel.isThere)
734744 guard !(setupFiles + includes).isEmpty else { return true }
735745 _ = reach(setupFiles + includes)
736746 guard let unreadable = ExportPreprocess.unreadableIncludes(text, directory: directory).first else { return true }
@@ -793,7 +803,7 @@ struct ContentView: View {
793803
794804 /// org-roam's daily notes and nodes.
795805 private var roamActions: RoamActions {
796 RoamActions(
806 var actions = RoamActions(
797807 session: session, roots: { [workspace] in workspace.rootPaths },
798808 nodes: { [workspace, session] in workspace.nodes(overlay: workspace.overlay(session.openDocuments)) },
799809 show: { [commands] in commands.show($0) }, ask: { [commands] in commands.ask($0, reply: $1) },
@@ -808,6 +818,10 @@ struct ContentView: View {
808818 editor.perform(PrecomputedEdit(EditResult(baseRevision: context.revision, edits: [TextEdit(range: range, replacement: text)], selection: [end..<end])))
809819 },
810820 refresh: { [workspace] in Task { await workspace.refresh() } })
821 #if APPSTORE
822 actions.reachFolders = { [workspace] in GrantAccess.reach($0, directories: true, workspace: workspace) }
823 #endif
824 return actions
811825 }
812826
813827 /// org-attach's commands for the entry at the caret.
@@ -1218,6 +1232,7 @@ struct ContentView: View {
12181232 commands.jump(path: target.path, offset: target.start ?? Int.max)
12191233 }
12201234 case "app.archive":
1235 guard reach(session.archiveFile().map { [$0] } ?? []) else { return }
12211236 if let message = session.archive() { commands.show(message) }
12221237 case "app.table-import":
12231238 // `org-table-import`: a TSV, CSV or space-separated file becomes a table at point.
Sources/Orgstar/GrantAccess.swift +16 −1
@@ -30,10 +30,25 @@ enum GrantAccess {
3030 }
3131 guard let url = choose(at: folder, message: String(localized: "Choose \(name) or a folder that contains it.", comment: "Open panel for giving orgstar access to a folder"),
3232 prompt: String(localized: "Grant Access", comment: "Open panel button that gives orgstar access to a folder")) else { return .canceled }
33 FolderGrants.shared.add(url)
33 guard FolderGrants.covers(url, folder) else {
34 tell(String(localized: "\(OrgPaths.abbreviatingWithTilde(url.path)) doesn't contain \(name).", comment: "Alert when the folder chosen to grant access doesn't contain the one needed"),
35 String(localized: "Choose \(name) or a folder that contains it.", comment: "Open panel for giving orgstar access to a folder"))
36 return .canceled
37 }
38 if !FolderGrants.shared.add(url) {
39 tell(String(localized: "orgstar can't keep access to \(name).", comment: "Alert when a folder grant can't be saved"),
40 String(localized: "Access lasts until orgstar quits.", comment: "Alert when a folder grant or the configuration folder can't be saved"))
41 }
3442 return workspace.foldersToGrant(for: [folder.path], directories: true).isEmpty ? .granted : .canceled
3543 }
3644
45 static func tell(_ message: String, _ information: String) {
46 let alert = NSAlert()
47 alert.messageText = message
48 alert.informativeText = information
49 alert.runModal()
50 }
51
3752 /// An open panel at `location`, for a folder, or a file too with `files`. Hidden files show
3853 /// with `hidden`, for dot folders such as `~/.config`.
3954 static func choose(at location: URL, message: String, prompt: String, files: Bool = false, hidden: Bool = false) -> URL? {
Sources/Orgstar/OrgstarApp.swift +27 −7
@@ -200,6 +200,13 @@ final class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCent
200200 #endif
201201 }
202202
203 #if APPSTORE
204 /// A subscription may have lapsed or renewed while the app was in the background.
205 func applicationDidBecomeActive(_ notification: Notification) {
206 Task { await ProStore.shared.refresh() }
207 }
208 #endif
209
203210 /// `:session` interpreters end with the app.
204211 func applicationWillTerminate(_ notification: Notification) {
205212 #if !APPSTORE
@@ -249,7 +256,7 @@ final class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCent
249256 func applicationShouldTerminate(_ sender: NSApplication) -> NSApplication.TerminateReply {
250257 guard let session else { return .terminateNow }
251258 #if APPSTORE
252 BufferRestore.save(session, bookmarking: { [workspace] in workspace?.contains(URL(fileURLWithPath: $0)) != true })
259 BufferRestore.save(session, workspace: workspace)
253260 #else
254261 BufferRestore.save(session)
255262 #endif
@@ -313,18 +320,27 @@ enum BufferRestore {
313320 var bookmarks: [String: Data]?
314321 }
315322
316 /// `bookmarking` says which paths get a bookmark.
323 /// `bookmarking` says which paths get a bookmark. A path still open keeps the bookmark it
324 /// has when no new one is made.
317325 static func save(_ session: DocumentSession, bookmarking: (String) -> Bool = { _ in false }, defaults: UserDefaults = .standard) {
318326 var carets: [String: Int] = [:]
319327 for path in session.openPaths { carets[path] = session.caret(of: path) }
328 let previous = defaults.data(forKey: key).flatMap { try? JSONDecoder().decode(State.self, from: $0) }?.bookmarks ?? [:]
320329 var bookmarks: [String: Data] = [:]
321 for path in session.openPaths where bookmarking(path) {
322 bookmarks[path] = SecurityBookmark.make(URL(fileURLWithPath: path))
330 for path in session.openPaths {
331 bookmarks[path] = (bookmarking(path) ? SecurityBookmark.make(URL(fileURLWithPath: path)) : nil) ?? previous[path]
323332 }
324333 let state = State(paths: session.openPaths, current: session.path, carets: carets, bookmarks: bookmarks.isEmpty ? nil : bookmarks)
325334 if let data = try? JSONEncoder().encode(state) { defaults.set(data, forKey: key) }
326335 }
327336
337 #if APPSTORE
338 /// Saves with bookmarks for the files outside `workspace`'s folders and grants.
339 static func save(_ session: DocumentSession, workspace: WorkspaceModel?) {
340 save(session, bookmarking: { workspace?.contains(URL(fileURLWithPath: $0)) != true })
341 }
342 #endif
343
328344 /// Opens the buffers that were open, in order, and returns the carets to show them at.
329345 static func restore(_ session: DocumentSession, defaults: UserDefaults = .standard) -> [String: Int] {
330346 guard let data = defaults.data(forKey: key), var state = try? JSONDecoder().decode(State.self, from: data) else { return [:] }
@@ -360,6 +376,7 @@ struct OrgstarApp: App {
360376 init() {
361377 #if APPSTORE
362378 AgendaSnapshot.useGroupContainer = true
379 EmacsFallback.offered = false
363380 _ = FolderGrants.shared
364381 ProStore.shared.start()
365382 #else
@@ -731,7 +748,10 @@ struct SettingsView: View {
731748 panel.directoryURL = configFolder ?? ConfigFolder.suggested
732749 panel.message = String(localized: "Choose the folder for config.toml and orgstar's other configuration files.", comment: "Choose Configuration Folder panel")
733750 guard panel.runModal() == .OK, let url = panel.url else { return }
734 ConfigFolder.set(url)
751 if !ConfigFolder.set(url) {
752 GrantAccess.tell(String(localized: "orgstar can't keep \(OrgPaths.abbreviatingWithTilde(url.path)) as the configuration folder.", comment: "Alert when the chosen configuration folder can't be saved"),
753 String(localized: "Access lasts until orgstar quits.", comment: "Alert when a folder grant or the configuration folder can't be saved"))
754 }
735755 useConfigFolder(url)
736756 }
737757
@@ -772,9 +792,9 @@ struct SettingsView: View {
772792 #if !APPSTORE
773793 if updates.canCheck {
774794 Section {
775 Toggle("Check for updates automatically", isOn: Binding(get: { updates.automatically }, set: { updates.automatically = $0 }))
795 Toggle(isOn: Binding(get: { updates.automatically }, set: { updates.automatically = $0 })) { Text("Check for updates automatically", tableName: "DeveloperID") }
776796 } footer: {
777 Text("Once a day, from the app's own feed. orgstar ▸ Check for Updates… checks now.")
797 Text("Once a day, from the app's own feed. orgstar ▸ Check for Updates… checks now.", tableName: "DeveloperID")
778798 .settingsFooter()
779799 }
780800 }
Sources/Orgstar/ProLicense.swift +10 −8
@@ -46,7 +46,7 @@ struct LicenseForm: View {
4646 LabeledContent("orgstar+", value: license.map { "Licensed to \($0.holder)" } ?? "Licensed")
4747 if let expires = license?.expires {
4848 let date = Date(timeIntervalSince1970: TimeInterval(expires)).formatted(date: .abbreviated, time: .omitted)
49 Text("Renews while you sponsor monthly. This key is valid until \(date).")
49 Text("Renews while you sponsor monthly. This key is valid until \(date).", tableName: "DeveloperID")
5050 .foregroundStyle(.secondary)
5151 }
5252 case .grandfathered:
@@ -57,26 +57,28 @@ struct LicenseForm: View {
5757 }
5858 if access.grant != .license {
5959 Section {
60 TextField("License key", text: $key, prompt: Text("ORGSTAR1-…"), axis: .vertical)
60 TextField(text: $key, prompt: Text("ORGSTAR1-…", tableName: "DeveloperID"), axis: .vertical) { Text("License key", tableName: "DeveloperID") }
6161 .lineLimit(2...4)
6262 .font(.body.monospaced())
6363 .onSubmit(activate)
6464 if let error { Text(error).foregroundStyle(.red) }
6565 HStack {
66 Link("Sponsor for orgstar+…", destination: MacPro.buyURL)
67 Link("Get Your Key…", destination: MacPro.keyURL)
66 Link(destination: MacPro.buyURL) { Text("Sponsor for orgstar+…", tableName: "DeveloperID") }
67 Link(destination: MacPro.keyURL) { Text("Get Your Key…", tableName: "DeveloperID") }
6868 Spacer()
69 Button("Activate", action: activate).disabled(key.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty)
69 Button(action: activate) { Text("Activate", tableName: "DeveloperID") }.disabled(key.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty)
7070 }
7171 } footer: {
72 Text("Sponsors get their key by signing in with GitHub. It is checked on this Mac; a monthly sponsor's key is renewed with krz.sh.")
72 Text("Sponsors get their key by signing in with GitHub. It is checked on this Mac; a monthly sponsor's key is renewed with krz.sh.", tableName: "DeveloperID")
7373 }
7474 } else {
7575 Section {
76 Button("Remove License from This Mac", role: .destructive) {
76 Button(role: .destructive) {
7777 LicenseStore.remove()
7878 license = nil
7979 MacPro.resolve()
80 } label: {
81 Text("Remove License from This Mac", tableName: "DeveloperID")
8082 }
8183 }
8284 }
@@ -114,7 +116,7 @@ struct ProPaywallSheet: View {
114116 VStack(alignment: .leading, spacing: 0) {
115117 VStack(alignment: .leading, spacing: 6) {
116118 Label("\(feature.title) needs orgstar+", systemImage: feature.systemImage).font(.headline)
117 Text("orgstar+ for Mac comes with sponsoring orgstar on GitHub: $60 once, or $5 a month. Editing, the agenda, capture, clocking and search stay free.")
119 Text("orgstar+ for Mac comes with sponsoring orgstar on GitHub: $60 once, or $5 a month. Editing, the agenda, capture, clocking and search stay free.", tableName: "DeveloperID")
118120 .foregroundStyle(.secondary)
119121 }
120122 .padding([.horizontal, .top], 20)
Sources/Orgstar/StoreViews.swift +4 −1
@@ -48,10 +48,13 @@ struct StoreForm: View {
4848 }
4949 if store.activeProductID != ProStore.lifetime {
5050 Section {
51 if store.products.isEmpty {
51 if store.isLoading && store.products.isEmpty {
5252 ProgressView().frame(maxWidth: .infinity)
5353 }
5454 ForEach(store.products) { product in plan(product) }
55 if !store.isLoading && store.message != nil && store.products.count < ProStore.productIDs.count {
56 Button("Try Again") { Task { await store.loadProducts() } }
57 }
5558 } header: {
5659 Text("Choose a plan")
5760 } footer: {
Sources/Orgstar/Updates.swift +1 −1
@@ -37,7 +37,7 @@ struct CheckForUpdatesItem: View {
3737 let updates: Updates
3838
3939 var body: some View {
40 Button("Check for Updates…") { updates.check() }
40 Button { updates.check() } label: { Text("Check for Updates…", tableName: "DeveloperID") }
4141 .disabled(!updates.canCheck)
4242 }
4343}
Tests/OrgAppTests/ConfigFolderTests.swift +6
@@ -31,6 +31,12 @@ struct ConfigFolderTests {
3131 #expect(ConfigFolder.resolve(defaults: store) == nil)
3232 }
3333
34 @Test func aFolderWithoutABookmarkIsNotKept() {
35 let store = defaults()
36 #expect(!ConfigFolder.set(URL(fileURLWithPath: "/nowhere-\(UUID().uuidString)"), defaults: store))
37 #expect(store.data(forKey: ConfigFolder.bookmarkKey) == nil)
38 }
39
3440 /// iOS keeps its folder under the key it always used.
3541 @Test func bookmarkKeyIsUnchanged() {
3642 #expect(ConfigFolder.bookmarkKey == "configFolderBookmark")
Tests/OrgAppTests/FolderGrantsTests.swift +24
@@ -24,6 +24,23 @@ struct FolderGrantsTests {
2424 #expect(relaunched.folders.map { $0.resolvingSymlinksInPath().path } == [folder.url.resolvingSymlinksInPath().path])
2525 }
2626
27 @Test func aGrantWithoutABookmarkLastsForTheSession() {
28 let store = defaults()
29 let grants = FolderGrants(defaults: store, sandboxed: false)
30 let missing = URL(fileURLWithPath: "/nowhere-\(UUID().uuidString)")
31 #expect(!grants.add(missing))
32 #expect(grants.folders == [missing])
33 #expect(store.array(forKey: FolderGrants.key) == nil)
34 }
35
36 @Test func coverage() {
37 #expect(FolderGrants.covers(URL(fileURLWithPath: "/a"), URL(fileURLWithPath: "/a/b")))
38 #expect(FolderGrants.covers(URL(fileURLWithPath: "/a/b"), URL(fileURLWithPath: "/a/b")))
39 #expect(FolderGrants.covers(URL(fileURLWithPath: "/"), URL(fileURLWithPath: "/a")))
40 #expect(!FolderGrants.covers(URL(fileURLWithPath: "/a/b"), URL(fileURLWithPath: "/a")))
41 #expect(!FolderGrants.covers(URL(fileURLWithPath: "/a/b"), URL(fileURLWithPath: "/a/bc")))
42 }
43
2744 @Test func bookmarksThatDontResolveAreKept() {
2845 let store = defaults()
2946 store.set([Data("not a bookmark".utf8)], forKey: FolderGrants.key)
@@ -48,6 +65,13 @@ struct FolderGrantsTests {
4865 #expect(folders.map(\.path) == ["/other", "/other/site"])
4966 }
5067
68 @Test func onlyFilesThatAreThereAreAskedFor() throws {
69 let folder = try Folder()
70 let file = try folder.write("setup.org", "#+TODO: A\n")
71 #expect(WorkspaceModel.isThere(file.path))
72 #expect(!WorkspaceModel.isThere(folder.url.appendingPathComponent("missing.org").path))
73 }
74
5175 @Test func foldersToGrantForFolders() {
5276 let folders = WorkspaceModel.foldersToGrant(
5377 for: ["/out/public", "/out/missing/deep"], directories: true, reachable: [],
Tests/OrgAppTests/PDFExportTests.swift +6
@@ -48,4 +48,10 @@ struct PDFExportTests {
4848 #expect(inlined.contains(#"<img src="gone.png">"#))
4949 #expect(PDFExport.inliningImages(#"<img src="img/a b.png">"#, directory: nil) == #"<img src="img/a b.png">"#)
5050 }
51
52 /// The images to ask for access to before exporting.
53 @Test func localImageFiles() {
54 let html = #"<img src="img/a.png"> <img alt="c" src="/abs/c.svg"> <img src="https://x.org/r.png"> <img src="img/a.png">"#
55 #expect(PDFExport.imageFiles(html, directory: URL(fileURLWithPath: "/notes")) == ["/notes/img/a.png", "/abs/c.svg"])
56 }
5157}
Tests/OrgAppTests/UserConfigTests.swift +10
@@ -310,4 +310,14 @@ struct ThemeReadingTests {
310310 #expect(try String(contentsOf: folder.appendingPathComponent("config.toml"), encoding: .utf8).contains("dark-theme = \"nord\""))
311311 #expect(sync.theme.dark["background"] == ThemeSpec.palette("nord", .dark)?.colors["background"])
312312 }
313
314 @Test func sandboxIgnoresEnvironmentFoldersOutsideTheContainer() {
315 let home = "/Users/me/Library/Containers/sh.krz.orgstar/Data"
316 let outside = ["XDG_CONFIG_HOME": "/Users/me/.config", "ORGSTAR_CONFIG_DIR": "/Users/me/orgstar"]
317 #expect(UserConfig.defaultDirectory(environment: outside, home: home, sandboxed: true).path == home + "/.config/orgstar")
318 #expect(UserConfig.defaultDirectory(environment: outside, home: home, sandboxed: false).path == "/Users/me/orgstar")
319 #expect(UserConfig.defaultDirectory(environment: ["XDG_CONFIG_HOME": "/Users/me/.config"], home: home, sandboxed: false).path == "/Users/me/.config/orgstar")
320 let inside = ["XDG_CONFIG_HOME": home + "/xdg"]
321 #expect(UserConfig.defaultDirectory(environment: inside, home: home, sandboxed: true).path == home + "/xdg/orgstar")
322 }
313323}
Tests/OrgCoreTests/BabelCompiledTests.swift +1 −1
@@ -220,6 +220,6 @@ struct BabelCompiledTests {
220220 Issue.record("planned cider")
221221 return
222222 }
223 #expect(message == "The cider backend for clojure isn't supported; orgstar runs babashka or clojure-cli.")
223 #expect(message == "The cider backend for clojure needs Emacs; orgstar runs babashka or clojure-cli.")
224224 }
225225}
Tests/OrgCoreTests/EmacsFallbackTests.swift added +12
@@ -0,0 +1,12 @@
1import Testing
2@testable import OrgCore
3
4struct EmacsFallbackWordingTests {
5 /// The Developer ID and iOS apps keep pointing at Emacs; the App Store app doesn't.
6 @Test func wording() {
7 #expect(EmacsFallback.offered)
8 #expect(EmacsFallback.wording("needs Emacs", "isn't supported") == "needs Emacs")
9 #expect(EmacsFallback.wording("needs Emacs", "isn't supported", offered: false) == "isn't supported")
10 #expect(TableRecalculate.emacsMessage == "needs Emacs: ")
11 }
12}
Tests/OrgCoreTests/TableFormulaEntryTests.swift +1 −1
@@ -98,7 +98,7 @@ extension TableFormulaEntryTests {
9898 let tab = try #require(committed(TableCommand(.nextField), symbolic, after: "*2"))
9999 #expect(tab.text == "| a | b |\n| x | =$1*2 |\n| y | |\n#+TBLFM: $2=$1*2\n", "\(tab.text.debugDescription)")
100100 #expect(tab.caret == (tab.text as NSString).range(of: "| y").location + 2)
101 #expect(tab.message?.hasPrefix("The formula was stored; it can't be calculated here") == true)
101 #expect(tab.message?.hasPrefix("The formula was stored; recalculating it needs Emacs") == true)
102102 let prompted = try #require(committed(TableEvalFormula(named: false), symbolic, after: "| x", answers: ["formula": "$1+1"]))
103103 #expect(prompted.text.hasSuffix("#+TBLFM: $1=$1+1\n") && prompted.message != nil, "\(prompted)")
104104 }
docs/manual/install.org +3 −2
@@ -79,8 +79,9 @@ The App Store version can open only the folders and files you give it:
7979- Folders you add (File ▸ Add Folder…, or the welcome sheet) and files you open from Finder.
8080 orgstar remembers them across launches.
8181- When something needs a file outside them, such as an =#+INCLUDE:= or =#+SETUPFILE:=, a
82 tangle target, an export file, a =file:= link, a =:file= result or a publishing folder,
83 orgstar asks once. Grant Access… opens a folder picker at that folder; choose it, and orgstar
82 tangle target, an export file, an image in a PDF, Word or RTF export, a =file:= link, a
83 =:file= result, a publishing folder, a capture target, an archive file, or the folder for
84 org-roam nodes, daily notes or Denote notes, orgstar asks once. Grant Access… opens a folder picker at that folder; choose it, and orgstar
8485 uses that folder and everything in it from then on. An export also offers Save Elsewhere….
8586- A folder that can no longer be opened, for example one on a disk that isn't connected, is
8687 listed under Can't Open in the sidebar, with Grant Access… to choose it again.
l10n/DeveloperID.xcstrings added +414
@@ -0,0 +1,414 @@
1{
2 "sourceLanguage": "en",
3 "strings": {
4 "Activate": {
5 "localizations": {
6 "de": {
7 "stringUnit": {
8 "state": "translated",
9 "value": "Aktivieren"
10 }
11 },
12 "es": {
13 "stringUnit": {
14 "state": "translated",
15 "value": "Activar"
16 }
17 },
18 "fr": {
19 "stringUnit": {
20 "state": "translated",
21 "value": "Activer"
22 }
23 },
24 "ja": {
25 "stringUnit": {
26 "state": "translated",
27 "value": "アクティベート"
28 }
29 },
30 "pt-BR": {
31 "stringUnit": {
32 "state": "translated",
33 "value": "Ativar"
34 }
35 }
36 }
37 },
38 "Check for Updates…": {
39 "localizations": {
40 "de": {
41 "stringUnit": {
42 "state": "translated",
43 "value": "Nach Updates suchen …"
44 }
45 },
46 "es": {
47 "stringUnit": {
48 "state": "translated",
49 "value": "Buscar actualizaciones…"
50 }
51 },
52 "fr": {
53 "stringUnit": {
54 "state": "translated",
55 "value": "Rechercher les mises à jour…"
56 }
57 },
58 "ja": {
59 "stringUnit": {
60 "state": "translated",
61 "value": "アップデートを確認…"
62 }
63 },
64 "pt-BR": {
65 "stringUnit": {
66 "state": "translated",
67 "value": "Buscar Atualizações…"
68 }
69 }
70 }
71 },
72 "Check for updates automatically": {
73 "localizations": {
74 "de": {
75 "stringUnit": {
76 "state": "translated",
77 "value": "Automatisch nach Updates suchen"
78 }
79 },
80 "es": {
81 "stringUnit": {
82 "state": "translated",
83 "value": "Buscar actualizaciones automáticamente"
84 }
85 },
86 "fr": {
87 "stringUnit": {
88 "state": "translated",
89 "value": "Rechercher automatiquement les mises à jour"
90 }
91 },
92 "ja": {
93 "stringUnit": {
94 "state": "translated",
95 "value": "アップデートを自動的に確認"
96 }
97 },
98 "pt-BR": {
99 "stringUnit": {
100 "state": "translated",
101 "value": "Buscar atualizações automaticamente"
102 }
103 }
104 }
105 },
106 "Get Your Key…": {
107 "localizations": {
108 "de": {
109 "stringUnit": {
110 "state": "translated",
111 "value": "Schlüssel abrufen …"
112 }
113 },
114 "es": {
115 "stringUnit": {
116 "state": "translated",
117 "value": "Obtener tu clave…"
118 }
119 },
120 "fr": {
121 "stringUnit": {
122 "state": "translated",
123 "value": "Obtenir votre clé…"
124 }
125 },
126 "ja": {
127 "stringUnit": {
128 "state": "translated",
129 "value": "キーを取得…"
130 }
131 },
132 "pt-BR": {
133 "stringUnit": {
134 "state": "translated",
135 "value": "Obter sua chave…"
136 }
137 }
138 }
139 },
140 "License key": {
141 "localizations": {
142 "de": {
143 "stringUnit": {
144 "state": "translated",
145 "value": "Lizenzschlüssel"
146 }
147 },
148 "es": {
149 "stringUnit": {
150 "state": "translated",
151 "value": "Clave de licencia"
152 }
153 },
154 "fr": {
155 "stringUnit": {
156 "state": "translated",
157 "value": "Clé de licence"
158 }
159 },
160 "ja": {
161 "stringUnit": {
162 "state": "translated",
163 "value": "ライセンスキー"
164 }
165 },
166 "pt-BR": {
167 "stringUnit": {
168 "state": "translated",
169 "value": "Chave de licença"
170 }
171 }
172 }
173 },
174 "ORGSTAR1-…": {
175 "localizations": {
176 "de": {
177 "stringUnit": {
178 "state": "translated",
179 "value": "ORGSTAR1-…"
180 }
181 },
182 "es": {
183 "stringUnit": {
184 "state": "translated",
185 "value": "ORGSTAR1-…"
186 }
187 },
188 "fr": {
189 "stringUnit": {
190 "state": "translated",
191 "value": "ORGSTAR1-…"
192 }
193 },
194 "ja": {
195 "stringUnit": {
196 "state": "translated",
197 "value": "ORGSTAR1-…"
198 }
199 },
200 "pt-BR": {
201 "stringUnit": {
202 "state": "translated",
203 "value": "ORGSTAR1-…"
204 }
205 }
206 }
207 },
208 "Once a day, from the app's own feed. orgstar ▸ Check for Updates… checks now.": {
209 "localizations": {
210 "de": {
211 "stringUnit": {
212 "state": "translated",
213 "value": "Einmal täglich, aus dem Feed der App. orgstar ▸ Nach Updates suchen … prüft sofort."
214 }
215 },
216 "es": {
217 "stringUnit": {
218 "state": "translated",
219 "value": "Una vez al día, desde el canal de la propia app. orgstar ▸ Buscar actualizaciones… lo comprueba ahora."
220 }
221 },
222 "fr": {
223 "stringUnit": {
224 "state": "translated",
225 "value": "Une fois par jour, depuis le flux de l'app. orgstar ▸ Rechercher les mises à jour… vérifie immédiatement."
226 }
227 },
228 "ja": {
229 "stringUnit": {
230 "state": "translated",
231 "value": "1日1回、App独自のフィードから確認します。orgstar ▸ アップデートを確認…ですぐに確認できます。"
232 }
233 },
234 "pt-BR": {
235 "stringUnit": {
236 "state": "translated",
237 "value": "Uma vez por dia, a partir do feed do próprio app. orgstar ▸ Buscar Atualizações… verifica agora."
238 }
239 }
240 }
241 },
242 "Remove License from This Mac": {
243 "localizations": {
244 "de": {
245 "stringUnit": {
246 "state": "translated",
247 "value": "Lizenz von diesem Mac entfernen"
248 }
249 },
250 "es": {
251 "stringUnit": {
252 "state": "translated",
253 "value": "Quitar la licencia de este Mac"
254 }
255 },
256 "fr": {
257 "stringUnit": {
258 "state": "translated",
259 "value": "Retirer la licence de ce Mac"
260 }
261 },
262 "ja": {
263 "stringUnit": {
264 "state": "translated",
265 "value": "このMacからライセンスを削除"
266 }
267 },
268 "pt-BR": {
269 "stringUnit": {
270 "state": "translated",
271 "value": "Remover Licença Deste Mac"
272 }
273 }
274 }
275 },
276 "Renews while you sponsor monthly. This key is valid until %@.": {
277 "localizations": {
278 "de": {
279 "stringUnit": {
280 "state": "translated",
281 "value": "Wird verlängert, solange du monatlich sponserst. Dieser Schlüssel gilt bis %@."
282 }
283 },
284 "es": {
285 "stringUnit": {
286 "state": "translated",
287 "value": "Se renueva mientras patrocines cada mes. Esta clave es válida hasta el %@."
288 }
289 },
290 "fr": {
291 "stringUnit": {
292 "state": "translated",
293 "value": "Renouvelée tant que vous sponsorisez chaque mois. Cette clé est valable jusqu'au %@."
294 }
295 },
296 "ja": {
297 "stringUnit": {
298 "state": "translated",
299 "value": "毎月スポンサーを続けている間は更新されます。このキーは%@まで有効です。"
300 }
301 },
302 "pt-BR": {
303 "stringUnit": {
304 "state": "translated",
305 "value": "É renovada enquanto você patrocina mensalmente. Esta chave é válida até %@."
306 }
307 }
308 }
309 },
310 "Sponsor for orgstar+…": {
311 "localizations": {
312 "de": {
313 "stringUnit": {
314 "state": "translated",
315 "value": "Für orgstar+ sponsern …"
316 }
317 },
318 "es": {
319 "stringUnit": {
320 "state": "translated",
321 "value": "Patrocinar para orgstar+…"
322 }
323 },
324 "fr": {
325 "stringUnit": {
326 "state": "translated",
327 "value": "Sponsoriser pour orgstar+…"
328 }
329 },
330 "ja": {
331 "stringUnit": {
332 "state": "translated",
333 "value": "スポンサーになってorgstar+を利用…"
334 }
335 },
336 "pt-BR": {
337 "stringUnit": {
338 "state": "translated",
339 "value": "Patrocinar para o orgstar+…"
340 }
341 }
342 }
343 },
344 "Sponsors get their key by signing in with GitHub. It is checked on this Mac; a monthly sponsor's key is renewed with krz.sh.": {
345 "localizations": {
346 "de": {
347 "stringUnit": {
348 "state": "translated",
349 "value": "Sponsoren erhalten ihren Schlüssel, indem sie sich mit GitHub anmelden. Er wird auf diesem Mac geprüft; der Schlüssel monatlicher Sponsoren wird über krz.sh verlängert."
350 }
351 },
352 "es": {
353 "stringUnit": {
354 "state": "translated",
355 "value": "Los patrocinadores obtienen su clave iniciando sesión con GitHub. Se comprueba en este Mac; la clave de un patrocinador mensual se renueva con krz.sh."
356 }
357 },
358 "fr": {
359 "stringUnit": {
360 "state": "translated",
361 "value": "Les sponsors obtiennent leur clé en se connectant avec GitHub. Elle est vérifiée sur ce Mac ; la clé d'un sponsor mensuel est renouvelée auprès de krz.sh."
362 }
363 },
364 "ja": {
365 "stringUnit": {
366 "state": "translated",
367 "value": "スポンサーはGitHubでサインインしてキーを取得します。キーはこのMac上で確認されます。月額スポンサーのキーはkrz.shで更新されます。"
368 }
369 },
370 "pt-BR": {
371 "stringUnit": {
372 "state": "translated",
373 "value": "Os patrocinadores obtêm a chave entrando com o GitHub. Ela é verificada neste Mac; a chave de um patrocinador mensal é renovada com o krz.sh."
374 }
375 }
376 }
377 },
378 "orgstar+ for Mac comes with sponsoring orgstar on GitHub: $60 once, or $5 a month. Editing, the agenda, capture, clocking and search stay free.": {
379 "localizations": {
380 "de": {
381 "stringUnit": {
382 "state": "translated",
383 "value": "orgstar+ für Mac gibt es, wenn du orgstar auf GitHub sponserst: einmalig $60 oder $5 im Monat. Bearbeiten, Agenda, Erfassen, Zeiterfassung und Suche bleiben kostenlos."
384 }
385 },
386 "es": {
387 "stringUnit": {
388 "state": "translated",
389 "value": "orgstar+ para Mac se incluye al patrocinar orgstar en GitHub: $60 una vez o $5 al mes. La edición, la agenda, la captura, el registro de tiempo y la búsqueda siguen siendo gratuitos."
390 }
391 },
392 "fr": {
393 "stringUnit": {
394 "state": "translated",
395 "value": "orgstar+ pour Mac est inclus quand vous sponsorisez orgstar sur GitHub : $60 une fois, ou $5 par mois. L'édition, l'agenda, la capture, le chronométrage et la recherche restent gratuits."
396 }
397 },
398 "ja": {
399 "stringUnit": {
400 "state": "translated",
401 "value": "Mac版orgstar+は、GitHubでorgstarのスポンサーになると利用できます(1回$60、または月額$5)。編集、アジェンダ、キャプチャ、クロック、検索は引き続き無料です。"
402 }
403 },
404 "pt-BR": {
405 "stringUnit": {
406 "state": "translated",
407 "value": "O orgstar+ para Mac vem com o patrocínio do orgstar no GitHub: $60 uma vez ou $5 por mês. A edição, a agenda, a captura, o registro de tempo e a busca continuam gratuitos."
408 }
409 }
410 }
411 }
412 },
413 "version": "1.1"
414}
l10n/Localizable.xcstrings +172 −399
@@ -257,6 +257,47 @@
257257 }
258258 }
259259 },
260 "%@ doesn't contain %@.": {
261 "comment": "Alert when the folder chosen to grant access doesn't contain the one needed",
262 "localizations": {
263 "de": {
264 "stringUnit": {
265 "state": "translated",
266 "value": "%1$@ enthält %2$@ nicht."
267 }
268 },
269 "en": {
270 "stringUnit": {
271 "state": "new",
272 "value": "%1$@ doesn't contain %2$@."
273 }
274 },
275 "es": {
276 "stringUnit": {
277 "state": "translated",
278 "value": "%1$@ no contiene %2$@."
279 }
280 },
281 "fr": {
282 "stringUnit": {
283 "state": "translated",
284 "value": "%1$@ ne contient pas %2$@."
285 }
286 },
287 "ja": {
288 "stringUnit": {
289 "state": "translated",
290 "value": "%1$@には%2$@が含まれていません。"
291 }
292 },
293 "pt-BR": {
294 "stringUnit": {
295 "state": "translated",
296 "value": "%1$@ não contém %2$@."
297 }
298 }
299 }
300 },
260301 "%@ isn't available on iPhone and iPad.": {
261302 "comment": "A command that runs only on the Mac",
262303 "localizations": {
@@ -1796,140 +1837,141 @@
17961837 }
17971838 }
17981839 },
1799 "Act at Point": {
1800 "comment": "Command title",
1840 "Access lasts until orgstar quits.": {
1841 "comment": "Alert when a folder grant or the configuration folder can't be saved",
18011842 "localizations": {
18021843 "de": {
18031844 "stringUnit": {
18041845 "state": "translated",
1805 "value": "An der Einfügemarke ausführen"
1846 "value": "Der Zugriff gilt, bis orgstar beendet wird."
18061847 }
18071848 },
18081849 "es": {
18091850 "stringUnit": {
18101851 "state": "translated",
1811 "value": "Actuar en el punto"
1852 "value": "El acceso dura hasta que se cierre orgstar."
18121853 }
18131854 },
18141855 "fr": {
18151856 "stringUnit": {
18161857 "state": "translated",
1817 "value": "Agir au point"
1858 "value": "L'accès dure jusqu'à ce que vous quittiez orgstar."
18181859 }
18191860 },
18201861 "ja": {
18211862 "stringUnit": {
18221863 "state": "translated",
1823 "value": "ポイントで実行"
1864 "value": "アクセスはorgstarを終了するまで有効です。"
18241865 }
18251866 },
18261867 "pt-BR": {
18271868 "stringUnit": {
18281869 "state": "translated",
1829 "value": "Agir no Cursor"
1870 "value": "O acesso dura até o orgstar ser encerrado."
18301871 }
18311872 }
18321873 }
18331874 },
1834 "Act at Point (C-c C-c)": {
1875 "Act at Point": {
18351876 "comment": "Command title",
18361877 "localizations": {
18371878 "de": {
18381879 "stringUnit": {
18391880 "state": "translated",
1840 "value": "An der Einfügemarke ausführen (C-c C-c)"
1881 "value": "An der Einfügemarke ausführen"
18411882 }
18421883 },
18431884 "es": {
18441885 "stringUnit": {
18451886 "state": "translated",
1846 "value": "Actuar en el punto (C-c C-c)"
1887 "value": "Actuar en el punto"
18471888 }
18481889 },
18491890 "fr": {
18501891 "stringUnit": {
18511892 "state": "translated",
1852 "value": "Agir au point (C-c C-c)"
1893 "value": "Agir au point"
18531894 }
18541895 },
18551896 "ja": {
18561897 "stringUnit": {
18571898 "state": "translated",
1858 "value": "ポイントで実行(C-c C-c)"
1899 "value": "ポイントで実行"
18591900 }
18601901 },
18611902 "pt-BR": {
18621903 "stringUnit": {
18631904 "state": "translated",
1864 "value": "Agir no Cursor (C-c C-c)"
1905 "value": "Agir no Cursor"
18651906 }
18661907 }
18671908 }
18681909 },
1869 "Actions": {
1910 "Act at Point (C-c C-c)": {
1911 "comment": "Command title",
18701912 "localizations": {
18711913 "de": {
18721914 "stringUnit": {
18731915 "state": "translated",
1874 "value": "Aktionen"
1916 "value": "An der Einfügemarke ausführen (C-c C-c)"
18751917 }
18761918 },
18771919 "es": {
18781920 "stringUnit": {
18791921 "state": "translated",
1880 "value": "Acciones"
1922 "value": "Actuar en el punto (C-c C-c)"
18811923 }
18821924 },
18831925 "fr": {
18841926 "stringUnit": {
18851927 "state": "translated",
1886 "value": "Actions"
1928 "value": "Agir au point (C-c C-c)"
18871929 }
18881930 },
18891931 "ja": {
18901932 "stringUnit": {
18911933 "state": "translated",
1892 "value": "アクション"
1934 "value": "ポイントで実行(C-c C-c)"
18931935 }
18941936 },
18951937 "pt-BR": {
18961938 "stringUnit": {
18971939 "state": "translated",
1898 "value": "Ações"
1940 "value": "Agir no Cursor (C-c C-c)"
18991941 }
19001942 }
19011943 }
19021944 },
1903 "Activate": {
1945 "Actions": {
19041946 "localizations": {
19051947 "de": {
19061948 "stringUnit": {
19071949 "state": "translated",
1908 "value": "Aktivieren"
1950 "value": "Aktionen"
19091951 }
19101952 },
19111953 "es": {
19121954 "stringUnit": {
19131955 "state": "translated",
1914 "value": "Activar"
1956 "value": "Acciones"
19151957 }
19161958 },
19171959 "fr": {
19181960 "stringUnit": {
19191961 "state": "translated",
1920 "value": "Activer"
1962 "value": "Actions"
19211963 }
19221964 },
19231965 "ja": {
19241966 "stringUnit": {
19251967 "state": "translated",
1926 "value": "アクティベート"
1968 "value": "アクション"
19271969 }
19281970 },
19291971 "pt-BR": {
19301972 "stringUnit": {
19311973 "state": "translated",
1932 "value": "Ativar"
1974 "value": "Ações"
19331975 }
19341976 }
19351977 }
@@ -5465,74 +5507,6 @@
54655507 }
54665508 }
54675509 },
5468 "Check for Updates…": {
5469 "localizations": {
5470 "de": {
5471 "stringUnit": {
5472 "state": "translated",
5473 "value": "Nach Updates suchen …"
5474 }
5475 },
5476 "es": {
5477 "stringUnit": {
5478 "state": "translated",
5479 "value": "Buscar actualizaciones…"
5480 }
5481 },
5482 "fr": {
5483 "stringUnit": {
5484 "state": "translated",
5485 "value": "Rechercher les mises à jour…"
5486 }
5487 },
5488 "ja": {
5489 "stringUnit": {
5490 "state": "translated",
5491 "value": "アップデートを確認…"
5492 }
5493 },
5494 "pt-BR": {
5495 "stringUnit": {
5496 "state": "translated",
5497 "value": "Buscar Atualizações…"
5498 }
5499 }
5500 }
5501 },
5502 "Check for updates automatically": {
5503 "localizations": {
5504 "de": {
5505 "stringUnit": {
5506 "state": "translated",
5507 "value": "Automatisch nach Updates suchen"
5508 }
5509 },
5510 "es": {
5511 "stringUnit": {
5512 "state": "translated",
5513 "value": "Buscar actualizaciones automáticamente"
5514 }
5515 },
5516 "fr": {
5517 "stringUnit": {
5518 "state": "translated",
5519 "value": "Rechercher automatiquement les mises à jour"
5520 }
5521 },
5522 "ja": {
5523 "stringUnit": {
5524 "state": "translated",
5525 "value": "アップデートを自動的に確認"
5526 }
5527 },
5528 "pt-BR": {
5529 "stringUnit": {
5530 "state": "translated",
5531 "value": "Buscar atualizações automaticamente"
5532 }
5533 }
5534 }
5535 },
55365510 "Check spelling while typing (spell-check)": {
55375511 "localizations": {
55385512 "de": {
@@ -6118,6 +6092,7 @@
61186092 }
61196093 },
61206094 "Choose your init.el, or the folder holding it (~/.emacs.d, ~/.config/doom).": {
6095 "comment": "Open panel for importing an Emacs configuration",
61216096 "localizations": {
61226097 "de": {
61236098 "stringUnit": {
@@ -13189,40 +13164,6 @@
1318913164 }
1319013165 }
1319113166 },
13192 "Get Your Key…": {
13193 "localizations": {
13194 "de": {
13195 "stringUnit": {
13196 "state": "translated",
13197 "value": "Schlüssel abrufen …"
13198 }
13199 },
13200 "es": {
13201 "stringUnit": {
13202 "state": "translated",
13203 "value": "Obtener tu clave…"
13204 }
13205 },
13206 "fr": {
13207 "stringUnit": {
13208 "state": "translated",
13209 "value": "Obtenir votre clé…"
13210 }
13211 },
13212 "ja": {
13213 "stringUnit": {
13214 "state": "translated",
13215 "value": "キーを取得…"
13216 }
13217 },
13218 "pt-BR": {
13219 "stringUnit": {
13220 "state": "translated",
13221 "value": "Obter sua chave…"
13222 }
13223 }
13224 }
13225 },
1322613167 "Git branch": {
1322713168 "localizations": {
1322813169 "de": {
@@ -16338,40 +16279,6 @@
1633816279 }
1633916280 }
1634016281 },
16341 "License key": {
16342 "localizations": {
16343 "de": {
16344 "stringUnit": {
16345 "state": "translated",
16346 "value": "Lizenzschlüssel"
16347 }
16348 },
16349 "es": {
16350 "stringUnit": {
16351 "state": "translated",
16352 "value": "Clave de licencia"
16353 }
16354 },
16355 "fr": {
16356 "stringUnit": {
16357 "state": "translated",
16358 "value": "Clé de licence"
16359 }
16360 },
16361 "ja": {
16362 "stringUnit": {
16363 "state": "translated",
16364 "value": "ライセンスキー"
16365 }
16366 },
16367 "pt-BR": {
16368 "stringUnit": {
16369 "state": "translated",
16370 "value": "Chave de licença"
16371 }
16372 }
16373 }
16374 },
1637516282 "Light": {
1637616283 "localizations": {
1637716284 "de": {
@@ -20671,74 +20578,6 @@
2067120578 }
2067220579 }
2067320580 },
20674 "ORGSTAR1-…": {
20675 "localizations": {
20676 "de": {
20677 "stringUnit": {
20678 "state": "translated",
20679 "value": "ORGSTAR1-…"
20680 }
20681 },
20682 "es": {
20683 "stringUnit": {
20684 "state": "translated",
20685 "value": "ORGSTAR1-…"
20686 }
20687 },
20688 "fr": {
20689 "stringUnit": {
20690 "state": "translated",
20691 "value": "ORGSTAR1-…"
20692 }
20693 },
20694 "ja": {
20695 "stringUnit": {
20696 "state": "translated",
20697 "value": "ORGSTAR1-…"
20698 }
20699 },
20700 "pt-BR": {
20701 "stringUnit": {
20702 "state": "translated",
20703 "value": "ORGSTAR1-…"
20704 }
20705 }
20706 }
20707 },
20708 "Once a day, from the app's own feed. orgstar ▸ Check for Updates… checks now.": {
20709 "localizations": {
20710 "de": {
20711 "stringUnit": {
20712 "state": "translated",
20713 "value": "Einmal täglich, aus dem Feed der App. orgstar ▸ Nach Updates suchen … prüft sofort."
20714 }
20715 },
20716 "es": {
20717 "stringUnit": {
20718 "state": "translated",
20719 "value": "Una vez al día, desde el canal de la propia app. orgstar ▸ Buscar actualizaciones… lo comprueba ahora."
20720 }
20721 },
20722 "fr": {
20723 "stringUnit": {
20724 "state": "translated",
20725 "value": "Une fois par jour, depuis le flux de l'app. orgstar ▸ Rechercher les mises à jour… vérifie immédiatement."
20726 }
20727 },
20728 "ja": {
20729 "stringUnit": {
20730 "state": "translated",
20731 "value": "1日1回、App独自のフィードから確認します。orgstar ▸ アップデートを確認…ですぐに確認できます。"
20732 }
20733 },
20734 "pt-BR": {
20735 "stringUnit": {
20736 "state": "translated",
20737 "value": "Uma vez por dia, a partir do feed do próprio app. orgstar ▸ Buscar Atualizações… verifica agora."
20738 }
20739 }
20740 }
20741 },
2074220581 "One payment, no subscription": {
2074320582 "localizations": {
2074420583 "de": {
@@ -24320,40 +24159,6 @@
2432024159 }
2432124160 }
2432224161 },
24323 "Remove License from This Mac": {
24324 "localizations": {
24325 "de": {
24326 "stringUnit": {
24327 "state": "translated",
24328 "value": "Lizenz von diesem Mac entfernen"
24329 }
24330 },
24331 "es": {
24332 "stringUnit": {
24333 "state": "translated",
24334 "value": "Quitar la licencia de este Mac"
24335 }
24336 },
24337 "fr": {
24338 "stringUnit": {
24339 "state": "translated",
24340 "value": "Retirer la licence de ce Mac"
24341 }
24342 },
24343 "ja": {
24344 "stringUnit": {
24345 "state": "translated",
24346 "value": "このMacからライセンスを削除"
24347 }
24348 },
24349 "pt-BR": {
24350 "stringUnit": {
24351 "state": "translated",
24352 "value": "Remover Licença Deste Mac"
24353 }
24354 }
24355 }
24356 },
2435724162 "Remove Priority": {
2435824163 "comment": "Command title",
2435924164 "localizations": {
@@ -24768,40 +24573,6 @@
2476824573 }
2476924574 }
2477024575 },
24771 "Renews while you sponsor monthly. This key is valid until %@.": {
24772 "localizations": {
24773 "de": {
24774 "stringUnit": {
24775 "state": "translated",
24776 "value": "Wird verlängert, solange du monatlich sponserst. Dieser Schlüssel gilt bis %@."
24777 }
24778 },
24779 "es": {
24780 "stringUnit": {
24781 "state": "translated",
24782 "value": "Se renueva mientras patrocines cada mes. Esta clave es válida hasta el %@."
24783 }
24784 },
24785 "fr": {
24786 "stringUnit": {
24787 "state": "translated",
24788 "value": "Renouvelée tant que vous sponsorisez chaque mois. Cette clé est valable jusqu'au %@."
24789 }
24790 },
24791 "ja": {
24792 "stringUnit": {
24793 "state": "translated",
24794 "value": "毎月スポンサーを続けている間は更新されます。このキーは%@まで有効です。"
24795 }
24796 },
24797 "pt-BR": {
24798 "stringUnit": {
24799 "state": "translated",
24800 "value": "É renovada enquanto você patrocina mensalmente. Esta chave é válida até %@."
24801 }
24802 }
24803 }
24804 },
2480524576 "Reparent Note with Descendants…": {
2480624577 "comment": "Command title",
2480724578 "localizations": {
@@ -28381,6 +28152,40 @@
2838128152 }
2838228153 }
2838328154 },
28155 "Some plans aren't available from the App Store right now.": {
28156 "localizations": {
28157 "de": {
28158 "stringUnit": {
28159 "state": "translated",
28160 "value": "Einige Abos sind gerade nicht im App Store verfügbar."
28161 }
28162 },
28163 "es": {
28164 "stringUnit": {
28165 "state": "translated",
28166 "value": "Algunos planes no están disponibles en la App Store en este momento."
28167 }
28168 },
28169 "fr": {
28170 "stringUnit": {
28171 "state": "translated",
28172 "value": "Certaines formules ne sont pas disponibles sur l'App Store pour le moment."
28173 }
28174 },
28175 "ja": {
28176 "stringUnit": {
28177 "state": "translated",
28178 "value": "一部のプランは現在App Storeで利用できません。"
28179 }
28180 },
28181 "pt-BR": {
28182 "stringUnit": {
28183 "state": "translated",
28184 "value": "Alguns planos não estão disponíveis na App Store no momento."
28185 }
28186 }
28187 }
28188 },
2838428189 "Some tips aren't available from the App Store right now.": {
2838528190 "localizations": {
2838628191 "de": {
@@ -28727,74 +28532,6 @@
2872728532 }
2872828533 }
2872928534 },
28730 "Sponsor for orgstar+…": {
28731 "localizations": {
28732 "de": {
28733 "stringUnit": {
28734 "state": "translated",
28735 "value": "Für orgstar+ sponsern …"
28736 }
28737 },
28738 "es": {
28739 "stringUnit": {
28740 "state": "translated",
28741 "value": "Patrocinar para orgstar+…"
28742 }
28743 },
28744 "fr": {
28745 "stringUnit": {
28746 "state": "translated",
28747 "value": "Sponsoriser pour orgstar+…"
28748 }
28749 },
28750 "ja": {
28751 "stringUnit": {
28752 "state": "translated",
28753 "value": "スポンサーになってorgstar+を利用…"
28754 }
28755 },
28756 "pt-BR": {
28757 "stringUnit": {
28758 "state": "translated",
28759 "value": "Patrocinar para o orgstar+…"
28760 }
28761 }
28762 }
28763 },
28764 "Sponsors get their key by signing in with GitHub. It is checked on this Mac; a monthly sponsor's key is renewed with krz.sh.": {
28765 "localizations": {
28766 "de": {
28767 "stringUnit": {
28768 "state": "translated",
28769 "value": "Sponsoren erhalten ihren Schlüssel, indem sie sich mit GitHub anmelden. Er wird auf diesem Mac geprüft; der Schlüssel monatlicher Sponsoren wird über krz.sh verlängert."
28770 }
28771 },
28772 "es": {
28773 "stringUnit": {
28774 "state": "translated",
28775 "value": "Los patrocinadores obtienen su clave iniciando sesión con GitHub. Se comprueba en este Mac; la clave de un patrocinador mensual se renueva con krz.sh."
28776 }
28777 },
28778 "fr": {
28779 "stringUnit": {
28780 "state": "translated",
28781 "value": "Les sponsors obtiennent leur clé en se connectant avec GitHub. Elle est vérifiée sur ce Mac ; la clé d'un sponsor mensuel est renouvelée auprès de krz.sh."
28782 }
28783 },
28784 "ja": {
28785 "stringUnit": {
28786 "state": "translated",
28787 "value": "スポンサーはGitHubでサインインしてキーを取得します。キーはこのMac上で確認されます。月額スポンサーのキーはkrz.shで更新されます。"
28788 }
28789 },
28790 "pt-BR": {
28791 "stringUnit": {
28792 "state": "translated",
28793 "value": "Os patrocinadores obtêm a chave entrando com o GitHub. Ela é verificada neste Mac; a chave de um patrocinador mensal é renovada com o krz.sh."
28794 }
28795 }
28796 }
28797 },
2879828535 "Standard Mac editing keys, with Org commands on ⌃⌘: ⌃⌘T cycles TODO, ⌃⌘S schedules.": {
2879928536 "localizations": {
2880028537 "de": {
@@ -35201,6 +34938,76 @@
3520134938 }
3520234939 }
3520334940 },
34941 "orgstar can't keep %@ as the configuration folder.": {
34942 "comment": "Alert when the chosen configuration folder can't be saved",
34943 "localizations": {
34944 "de": {
34945 "stringUnit": {
34946 "state": "translated",
34947 "value": "orgstar kann %@ nicht als Konfigurationsordner behalten."
34948 }
34949 },
34950 "es": {
34951 "stringUnit": {
34952 "state": "translated",
34953 "value": "orgstar no puede conservar %@ como carpeta de configuración."
34954 }
34955 },
34956 "fr": {
34957 "stringUnit": {
34958 "state": "translated",
34959 "value": "orgstar ne peut pas conserver %@ comme dossier de configuration."
34960 }
34961 },
34962 "ja": {
34963 "stringUnit": {
34964 "state": "translated",
34965 "value": "orgstarは%@を設定フォルダとして保持できません。"
34966 }
34967 },
34968 "pt-BR": {
34969 "stringUnit": {
34970 "state": "translated",
34971 "value": "O orgstar não consegue manter %@ como pasta de configuração."
34972 }
34973 }
34974 }
34975 },
34976 "orgstar can't keep access to %@.": {
34977 "comment": "Alert when a folder grant can't be saved",
34978 "localizations": {
34979 "de": {
34980 "stringUnit": {
34981 "state": "translated",
34982 "value": "orgstar kann den Zugriff auf %@ nicht behalten."
34983 }
34984 },
34985 "es": {
34986 "stringUnit": {
34987 "state": "translated",
34988 "value": "orgstar no puede conservar el acceso a %@."
34989 }
34990 },
34991 "fr": {
34992 "stringUnit": {
34993 "state": "translated",
34994 "value": "orgstar ne peut pas conserver l'accès à %@."
34995 }
34996 },
34997 "ja": {
34998 "stringUnit": {
34999 "state": "translated",
35000 "value": "orgstarは%@へのアクセスを保持できません。"
35001 }
35002 },
35003 "pt-BR": {
35004 "stringUnit": {
35005 "state": "translated",
35006 "value": "O orgstar não consegue manter o acesso a %@."
35007 }
35008 }
35009 }
35010 },
3520435011 "orgstar can't open this folder": {
3520535012 "localizations": {
3520635013 "de": {
@@ -35474,40 +35281,6 @@
3547435281 }
3547535282 }
3547635283 },
35477 "orgstar+ for Mac comes with sponsoring orgstar on GitHub: $60 once, or $5 a month. Editing, the agenda, capture, clocking and search stay free.": {
35478 "localizations": {
35479 "de": {
35480 "stringUnit": {
35481 "state": "translated",
35482 "value": "orgstar+ für Mac gibt es, wenn du orgstar auf GitHub sponserst: einmalig $60 oder $5 im Monat. Bearbeiten, Agenda, Erfassen, Zeiterfassung und Suche bleiben kostenlos."
35483 }
35484 },
35485 "es": {
35486 "stringUnit": {
35487 "state": "translated",
35488 "value": "orgstar+ para Mac se incluye al patrocinar orgstar en GitHub: $60 una vez o $5 al mes. La edición, la agenda, la captura, el registro de tiempo y la búsqueda siguen siendo gratuitos."
35489 }
35490 },
35491 "fr": {
35492 "stringUnit": {
35493 "state": "translated",
35494 "value": "orgstar+ pour Mac est inclus quand vous sponsorisez orgstar sur GitHub : $60 une fois, ou $5 par mois. L'édition, l'agenda, la capture, le chronométrage et la recherche restent gratuits."
35495 }
35496 },
35497 "ja": {
35498 "stringUnit": {
35499 "state": "translated",
35500 "value": "Mac版orgstar+は、GitHubでorgstarのスポンサーになると利用できます(1回$60、または月額$5)。編集、アジェンダ、キャプチャ、クロック、検索は引き続き無料です。"
35501 }
35502 },
35503 "pt-BR": {
35504 "stringUnit": {
35505 "state": "translated",
35506 "value": "O orgstar+ para Mac vem com o patrocínio do orgstar no GitHub: $60 uma vez ou $5 por mês. A edição, a agenda, a captura, o registro de tempo e a busca continuam gratuitos."
35507 }
35508 }
35509 }
35510 },
3551135284 "orgstar+ is a one-time purchase of $39.99 for this Mac. Editing, the agenda, capture, clocking and search stay free.": {
3551235285 "extractionState": "stale",
3551335286 "localizations": {
scripts/build-app.sh +2 −2
@@ -54,8 +54,8 @@ if [ "$sign" != "-" ]; then
5454else
5555 feed_keys=""
5656fi
57# The UI's translations, from l10n/Localizable.xcstrings.
58scripts/localize.sh "$app/Contents/Resources"
57# The UI's translations, from l10n/Localizable.xcstrings and l10n/DeveloperID.xcstrings.
58scripts/localize.sh --developer-id "$app/Contents/Resources"
5959
6060# The icon (macOS derives its dark and tinted styles), and the Dock icons Settings offers.
6161work="$(mktemp -d)"
scripts/localize.sh +7 −2
@@ -1,13 +1,18 @@
11#!/bin/sh
22# Compiles l10n/Localizable.xcstrings into the .lproj folders of each bundle folder given (an
33# app's Contents/Resources, an iOS app or extension folder). English is the source language:
4# its folder is empty, so the keys show as they are.
5# Usage: scripts/localize.sh <folder>...
4# its folder is empty, so the keys show as they are. With --developer-id, the DeveloperID table
5# too: the license and update strings, which only the Developer ID Mac app shows.
6# Usage: scripts/localize.sh [--developer-id] <folder>...
67set -eu
78
89cd "$(dirname "$0")/.."
910work="$(mktemp -d)"
1011xcrun xcstringstool compile l10n/Localizable.xcstrings --output-directory "$work" > /dev/null
12if [ "${1:-}" = --developer-id ]; then
13 shift
14 xcrun xcstringstool compile l10n/DeveloperID.xcstrings --output-directory "$work" > /dev/null
15fi
1116mkdir -p "$work/en.lproj"
1217for folder in "$@"; do
1318 for lproj in "$work"/*.lproj; do
scripts/release-macos.sh +5 −1
@@ -31,7 +31,8 @@ preflight() {
3131}
3232
3333# Checks the built app: no Sparkle, no updater keys, no process launching, no temporary exceptions,
34# and a provisioning profile in the app and in each extension.
34# a provisioning profile in the app and in each extension, and no license or update text in its
35# string tables.
3536check_archive() {
3637 set -- "$1"/Products/Applications/*.app
3738 [ -d "$1" ] || fail "no app in the archive"
@@ -51,6 +52,9 @@ check_archive() {
5152 esac
5253 [ -f "$bundle/Contents/embedded.provisionprofile" ] || fail "$(basename "$bundle") has no embedded.provisionprofile"
5354 done
55 found="$(find "$app" -path '*.lproj/*' -name '*.strings' -exec sh -c \
56 'plutil -convert json -o - "$1" | grep -Eio "sponsor|license key|krz\.sh|check for updates" | sed "s|^|$1: |"' _ {} \; | head -1)"
57 [ -z "$found" ] || fail "the app has Developer ID text: $found"
5458}
5559
5660# appstore-kit has no step between archiving and exporting, so its export call checks the archive first.
scripts/sync-strings.sh +8 −5
@@ -1,5 +1,6 @@
11#!/bin/sh
2# Brings l10n/Localizable.xcstrings up to date with the strings the apps show: builds the Mac, Mac
2# Brings l10n/Localizable.xcstrings and l10n/DeveloperID.xcstrings (the strings with that table,
3# which only the Developer ID Mac app shows) up to date with the strings the apps show: builds the Mac, Mac
34# App Store and iOS targets with SWIFT_EMIT_LOC_STRINGS and syncs the catalog from their .stringsdata
45# files.
56# New strings are added, ones no longer used are marked stale; translations are kept.
@@ -34,7 +35,9 @@ find "$mas" -path '*/arm64/*' -name '*.stringsdata' | grep -E '/(Orgstar macOS|O
3435# The App Store target's folder name has a space, so the list is read a line at a time.
3536set --
3637while IFS= read -r file; do set -- "$@" "$file"; done < "$mac/stringsdata.txt"
37xcrun xcstringstool sync "$catalog" --stringsdata "$@"
38# xcstringstool writes its own spacing; the committed catalog is Python's sorted JSON.
39python3 -c "import json, sys; p = sys.argv[1]; d = json.load(open(p)); open(p, 'w').write(json.dumps(d, indent=2, ensure_ascii=False, sort_keys=True) + '\n')" "$catalog"
40echo "$(python3 -c "import json; print(len(json.load(open('$catalog'))['strings']))") strings in $catalog"
38for catalog in "$catalog" l10n/DeveloperID.xcstrings; do
39 xcrun xcstringstool sync "$catalog" --stringsdata "$@"
40 # xcstringstool writes its own spacing; the committed catalog is Python's sorted JSON.
41 python3 -c "import json, sys; p = sys.argv[1]; d = json.load(open(p)); open(p, 'w').write(json.dumps(d, indent=2, ensure_ascii=False, sort_keys=True) + '\n')" "$catalog"
42 echo "$(python3 -c "import json; print(len(json.load(open('$catalog'))['strings']))") strings in $catalog"
43done