mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-09-24 04:03:03 -04:00
Update Enum.swift
This commit is contained in:
parent
ebfbfa10bb
commit
7512a31146
@ -159,6 +159,7 @@
|
||||
"reading_settings.zoom.title" = "Page zoom";
|
||||
"reading_settings.zoom.reset.button" = "Reset";
|
||||
"reading_settings.external_link.title" = "External Link";
|
||||
"reading_settings.external_events_tab_opening.title" = "URLs and files should";
|
||||
"reading_settings.search_snippet.title" = "Search snippet";
|
||||
"reading_settings.tab.reading" = "Reading";
|
||||
"library_settings.catalog.title" = "Catalog";
|
||||
@ -255,8 +256,8 @@
|
||||
"enum.external_link_loading_policy.always_ask" = "Always Ask";
|
||||
"enum.external_link_loading_policy.always_load" = "Always Load";
|
||||
"enum.external_link_loading_policy.never_load" = "Never Load";
|
||||
"enum.enum_external_event.open_in_new_tab_same_window" = "Open in new tab in the active window";
|
||||
"enum.enum_external_event.open_new_detached_window" = "Open in new detached window";
|
||||
"enum.external_event.open_in_new_tab_same_window" = "Open in a new tab in the active window";
|
||||
"enum.external_event.open_new_detached_window" = "Open in a new detached window";
|
||||
"enum.flavor.max" = "max";
|
||||
"enum.flavor.no_pic" = "no pic";
|
||||
"enum.flavor.mini" = "mini";
|
||||
|
@ -124,6 +124,7 @@
|
||||
"reading_settings.zoom.title" = "Label title for a percentage selector in app settings, eg: 100%";
|
||||
"reading_settings.zoom.reset.button" = "Button title for percentage selector for zoom level in app settings";
|
||||
"reading_settings.external_link.title" = "Label title for option picker. External Link: Always Ask | Always Load | Never Load";
|
||||
"reading_settings.external_events_tab_opening.title" = "Label title for option picker. URLs and files should: Open in a new tab in the active window | Open in a new detached window";
|
||||
"reading_settings.search_snippet.title" = "Label title for option picker. Search snippet: Disabled | First Paragraph | First Sentence | Matches";
|
||||
"reading_settings.tab.reading" = "Settings page tab title";
|
||||
"library_settings.catalog.title" = "In settings: Label next to button Catalog: [Refresh] Last Refresh: 30 minutes ago";
|
||||
@ -211,8 +212,8 @@
|
||||
"enum.external_link_loading_policy.always_ask" = "Settings picker option title: how external links should be treated";
|
||||
"enum.external_link_loading_policy.always_load" = "Settings picker option title: how external links should be treated";
|
||||
"enum.external_link_loading_policy.never_load" = "Settings picker option title: how external links should be treated";
|
||||
"enum.enum_external_event.open_in_new_tab_same_window" = "Settings picker option title: how to handle zim urls, and files opened in Finder: they should be opened in a new tab attached to the currently active window";
|
||||
"enum.enum_external_event.open_new_detached_window" = "Settings picker option title: how to handle zim urls, and files opened in Finder: they should be opened in a new detached window on top of the currently running application window";
|
||||
"enum.external_event.open_in_new_tab_same_window" = "Settings picker option title: how to handle zim urls, and files opened in Finder: they should be opened in a new tab attached to the currently active window";
|
||||
"enum.external_event.open_new_detached_window" = "Settings picker option title: how to handle zim urls, and files opened in Finder: they should be opened in a new detached window on top of the currently running application window";
|
||||
"enum.flavor.max" = "short, abreviated label displayed in the corner of zim file cards, describing the flavour of the file. The shorter the better.";
|
||||
"enum.flavor.no_pic" = "short, abreviated label displayed in the corner of zim file cards, describing the flavour of the file. The shorter the better.";
|
||||
"enum.flavor.mini" = "short, abreviated label displayed in the corner of zim file cards, describing the flavour of the file. The shorter the better.";
|
||||
|
@ -138,6 +138,21 @@ enum ExternalLinkLoadingPolicy: String, CaseIterable, Identifiable, Defaults.Ser
|
||||
}
|
||||
}
|
||||
|
||||
enum ExternalEventOpeningPolicy: String, CaseIterable, Identifiable, Defaults.Serializable {
|
||||
var id: String { self.rawValue }
|
||||
case openInNewTabSameWindow
|
||||
case opneInNewDetachedWindow
|
||||
|
||||
var name: String {
|
||||
switch self {
|
||||
case .openInNewTabSameWindow:
|
||||
return LocalString.enum_external_event_open_in_new_tab_same_window
|
||||
case .opneInNewDetachedWindow:
|
||||
return LocalString.enum_external_event_open_new_detached_window
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
enum OpenURLContext {
|
||||
case deepLink(id: UUID?)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user