2024-09-23 13:02:26 +00:00
// s w i f t l i n t : d i s a b l e a l l
// G e n e r a t e d u s i n g S w i f t G e n — h t t p s : / / g i t h u b . c o m / S w i f t G e n / S w i f t G e n
import Foundation
// s w i f t l i n t : d i s a b l e s u p e r f l u o u s _ d i s a b l e _ c o m m a n d f i l e _ l e n g t h i m p l i c i t _ r e t u r n p r e f e r _ s e l f _ i n _ s t a t i c _ r e f e r e n c e s
// MARK: - S t r i n g s
// s w i f t l i n t : d i s a b l e e x p l i c i t _ t y p e _ i n t e r f a c e f u n c t i o n _ p a r a m e t e r _ c o u n t i d e n t i f i e r _ n a m e l i n e _ l e n g t h
// s w i f t l i n t : d i s a b l e n e s t i n g t y p e _ b o d y _ l e n g t h t y p e _ n a m e v e r t i c a l _ w h i t e s p a c e _ o p e n i n g _ b r a c e s
internal enum Strings {
internal enum Alerts {
internal enum Iap {
internal enum Restricted {
// / T h e r e q u e s t e d f e a t u r e i s u n a v a i l a b l e i n t h i s b u i l d .
internal static let message = Strings . tr ( " Localizable " , " alerts.iap.restricted.message " , fallback : " The requested feature is unavailable in this build. " )
// / R e s t r i c t e d
internal static let title = Strings . tr ( " Localizable " , " alerts.iap.restricted.title " , fallback : " Restricted " )
}
}
}
internal enum Entities {
internal enum ConnectionStatus {
// / C o n n e c t e d
internal static let connected = Strings . tr ( " Localizable " , " entities.connection_status.connected " , fallback : " Connected " )
// / C o n n e c t i n g
internal static let connecting = Strings . tr ( " Localizable " , " entities.connection_status.connecting " , fallback : " Connecting " )
// / D i s c o n n e c t e d
internal static let disconnected = Strings . tr ( " Localizable " , " entities.connection_status.disconnected " , fallback : " Disconnected " )
// / D i s c o n n e c t i n g
internal static let disconnecting = Strings . tr ( " Localizable " , " entities.connection_status.disconnecting " , fallback : " Disconnecting " )
}
internal enum Dns {
// / S e a r c h d o m a i n s
internal static let searchDomains = Strings . tr ( " Localizable " , " entities.dns.search_domains " , fallback : " Search domains " )
// / S e r v e r s
internal static let servers = Strings . tr ( " Localizable " , " entities.dns.servers " , fallback : " Servers " )
}
internal enum DnsProtocol {
// / C l e a r t e x t
internal static let cleartext = Strings . tr ( " Localizable " , " entities.dns_protocol.cleartext " , fallback : " Cleartext " )
// / O v e r H T T P S
internal static let https = Strings . tr ( " Localizable " , " entities.dns_protocol.https " , fallback : " Over HTTPS " )
// / O v e r T L S
internal static let tls = Strings . tr ( " Localizable " , " entities.dns_protocol.tls " , fallback : " Over TLS " )
}
internal enum HttpProxy {
// / B y p a s s d o m a i n s
internal static let bypassDomains = Strings . tr ( " Localizable " , " entities.http_proxy.bypass_domains " , fallback : " Bypass domains " )
}
internal enum OnDemand {
internal enum Policy {
// / A l l n e t w o r k s
internal static let any = Strings . tr ( " Localizable " , " entities.on_demand.policy.any " , fallback : " All networks " )
// / E x c l u d i n g
internal static let excluding = Strings . tr ( " Localizable " , " entities.on_demand.policy.excluding " , fallback : " Excluding " )
// / I n c l u d i n g
internal static let including = Strings . tr ( " Localizable " , " entities.on_demand.policy.including " , fallback : " Including " )
}
}
internal enum Openvpn {
internal enum CompressionAlgorithm {
// / U n s u p p o r t e d
internal static let other = Strings . tr ( " Localizable " , " entities.openvpn.compression_algorithm.other " , fallback : " Unsupported " )
}
internal enum OtpMethod {
// / A p p e n d
internal static let append = Strings . tr ( " Localizable " , " entities.openvpn.otp_method.append " , fallback : " Append " )
// / E n c o d e
internal static let encode = Strings . tr ( " Localizable " , " entities.openvpn.otp_method.encode " , fallback : " Encode " )
// / N o n e
internal static let ` none ` = Strings . tr ( " Localizable " , " entities.openvpn.otp_method.none " , fallback : " None " )
}
}
internal enum Profile {
internal enum Name {
// / N e w p r o f i l e
internal static let new = Strings . tr ( " Localizable " , " entities.profile.name.new " , fallback : " New profile " )
}
}
internal enum TunnelStatus {
// / A c t i v a t i n g
internal static let activating = Strings . tr ( " Localizable " , " entities.tunnel_status.activating " , fallback : " Activating " )
// / A c t i v e
internal static let active = Strings . tr ( " Localizable " , " entities.tunnel_status.active " , fallback : " Active " )
// / D e a c t i v a t i n g
internal static let deactivating = Strings . tr ( " Localizable " , " entities.tunnel_status.deactivating " , fallback : " Deactivating " )
// / I n a c t i v e
internal static let inactive = Strings . tr ( " Localizable " , " entities.tunnel_status.inactive " , fallback : " Inactive " )
}
}
internal enum Errors {
internal enum App {
// / U n a b l e t o c o m p l e t e o p e r a t i o n .
internal static let ` default ` = Strings . tr ( " Localizable " , " errors.app.default " , fallback : " Unable to complete operation. " )
// / P r o f i l e n a m e i s e m p t y .
internal static let emptyProfileName = Strings . tr ( " Localizable " , " errors.app.empty_profile_name " , fallback : " Profile name is empty. " )
// / I P m o d u l e c a n o n l y b e e n a b l e d t o g e t h e r w i t h a c o n n e c t i o n .
internal static let ipModuleRequiresConnection = Strings . tr ( " Localizable " , " errors.app.ip_module_requires_connection " , fallback : " IP module can only be enabled together with a connection. " )
// / M o d u l e % @ i s m a l f o r m e d . % @
internal static func malformedModule ( _ p1 : Any , _ p2 : Any ) -> String {
return Strings . tr ( " Localizable " , " errors.app.malformed_module " , String ( describing : p1 ) , String ( describing : p2 ) , fallback : " Module %@ is malformed. %@ " )
}
// / O n l y o n e c o n n e c t i o n m o d u l e c a n b e a c t i v e a t a t i m e .
internal static let multipleConnectionModules = Strings . tr ( " Localizable " , " errors.app.multiple_connection_modules " , fallback : " Only one connection module can be active at a time. " )
internal enum Passepartout {
// / U n a b l e t o c o m p l e t e o p e r a t i o n ( c o d e = % @ ) .
internal static func ` default ` ( _ p1 : Any ) -> String {
return Strings . tr ( " Localizable " , " errors.app.passepartout.default " , String ( describing : p1 ) , fallback : " Unable to complete operation (code=%@). " )
}
// / I n v a l i d f i e l d s ( % @ ) .
internal static func invalidFields ( _ p1 : Any ) -> String {
return Strings . tr ( " Localizable " , " errors.app.passepartout.invalid_fields " , String ( describing : p1 ) , fallback : " Invalid fields (%@). " )
}
// / U n a b l e t o p a r s e f i l e .
internal static let parsing = Strings . tr ( " Localizable " , " errors.app.passepartout.parsing " , fallback : " Unable to parse file. " )
}
}
internal enum Tunnel {
// / A u t h f a i l e d
internal static let auth = Strings . tr ( " Localizable " , " errors.tunnel.auth " , fallback : " Auth failed " )
// / C o m p r e s s i o n u n s u p p o r t e d
internal static let compression = Strings . tr ( " Localizable " , " errors.tunnel.compression " , fallback : " Compression unsupported " )
// / D N S f a i l e d
internal static let dns = Strings . tr ( " Localizable " , " errors.tunnel.dns " , fallback : " DNS failed " )
// / E n c r y p t i o n f a i l e d
internal static let encryption = Strings . tr ( " Localizable " , " errors.tunnel.encryption " , fallback : " Encryption failed " )
// / F a i l e d
internal static let generic = Strings . tr ( " Localizable " , " errors.tunnel.generic " , fallback : " Failed " )
// / M i s s i n g r o u t i n g
internal static let routing = Strings . tr ( " Localizable " , " errors.tunnel.routing " , fallback : " Missing routing " )
// / S e r v e r s h u t d o w n
internal static let shutdown = Strings . tr ( " Localizable " , " errors.tunnel.shutdown " , fallback : " Server shutdown " )
// / T i m e o u t
internal static let timeout = Strings . tr ( " Localizable " , " errors.tunnel.timeout " , fallback : " Timeout " )
// / T L S f a i l e d
internal static let tls = Strings . tr ( " Localizable " , " errors.tunnel.tls " , fallback : " TLS failed " )
}
}
internal enum Global {
2024-09-28 10:47:33 +00:00
// / A b o u t
internal static let about = Strings . tr ( " Localizable " , " global.about " , fallback : " About " )
2024-09-23 13:02:26 +00:00
// / A c c o u n t
internal static let account = Strings . tr ( " Localizable " , " global.account " , fallback : " Account " )
// / A d d r e s s
internal static let address = Strings . tr ( " Localizable " , " global.address " , fallback : " Address " )
// / A d d r e s s e s
internal static let addresses = Strings . tr ( " Localizable " , " global.addresses " , fallback : " Addresses " )
// / A n y
internal static let any = Strings . tr ( " Localizable " , " global.any " , fallback : " Any " )
// / C a n c e l
internal static let cancel = Strings . tr ( " Localizable " , " global.cancel " , fallback : " Cancel " )
// / C e r t i f i c a t e
internal static let certificate = Strings . tr ( " Localizable " , " global.certificate " , fallback : " Certificate " )
// / C o m p r e s s i o n
internal static let compression = Strings . tr ( " Localizable " , " global.compression " , fallback : " Compression " )
// / C o n n e c t
internal static let connect = Strings . tr ( " Localizable " , " global.connect " , fallback : " Connect " )
// / C o n n e c t i o n
internal static let connection = Strings . tr ( " Localizable " , " global.connection " , fallback : " Connection " )
// / D e f a u l t
internal static let ` default ` = Strings . tr ( " Localizable " , " global.default " , fallback : " Default " )
// / D e s t i n a t i o n
internal static let destination = Strings . tr ( " Localizable " , " global.destination " , fallback : " Destination " )
// / D i s a b l e
internal static let disable = Strings . tr ( " Localizable " , " global.disable " , fallback : " Disable " )
// / D i s a b l e d
internal static let disabled = Strings . tr ( " Localizable " , " global.disabled " , fallback : " Disabled " )
// / D i s c o n n e c t
internal static let disconnect = Strings . tr ( " Localizable " , " global.disconnect " , fallback : " Disconnect " )
// / D o m a i n
internal static let domain = Strings . tr ( " Localizable " , " global.domain " , fallback : " Domain " )
// / D o n e
internal static let done = Strings . tr ( " Localizable " , " global.done " , fallback : " Done " )
// / D u p l i c a t e
internal static let duplicate = Strings . tr ( " Localizable " , " global.duplicate " , fallback : " Duplicate " )
// / E d i t
internal static let edit = Strings . tr ( " Localizable " , " global.edit " , fallback : " Edit " )
// / E m p t y
internal static let empty = Strings . tr ( " Localizable " , " global.empty " , fallback : " Empty " )
// / E n a b l e
internal static let enable = Strings . tr ( " Localizable " , " global.enable " , fallback : " Enable " )
// / E n a b l e d
internal static let enabled = Strings . tr ( " Localizable " , " global.enabled " , fallback : " Enabled " )
// / E n d p o i n t
internal static let endpoint = Strings . tr ( " Localizable " , " global.endpoint " , fallback : " Endpoint " )
// / F o l d e r
internal static let folder = Strings . tr ( " Localizable " , " global.folder " , fallback : " Folder " )
// / G a t e w a y
internal static let gateway = Strings . tr ( " Localizable " , " global.gateway " , fallback : " Gateway " )
// / G e n e r a l
internal static let general = Strings . tr ( " Localizable " , " global.general " , fallback : " General " )
// / H o s t n a m e
internal static let hostname = Strings . tr ( " Localizable " , " global.hostname " , fallback : " Hostname " )
// / I n t e r f a c e
internal static let interface = Strings . tr ( " Localizable " , " global.interface " , fallback : " Interface " )
// / K e e p - a l i v e
internal static let keepAlive = Strings . tr ( " Localizable " , " global.keep_alive " , fallback : " Keep-alive " )
// / K e y
internal static let key = Strings . tr ( " Localizable " , " global.key " , fallback : " Key " )
// / M e t h o d
internal static let method = Strings . tr ( " Localizable " , " global.method " , fallback : " Method " )
// / M o d u l e s
internal static let modules = Strings . tr ( " Localizable " , " global.modules " , fallback : " Modules " )
// / % d s e c o n d s
internal static func nSeconds ( _ p1 : Int ) -> String {
return Strings . tr ( " Localizable " , " global.n_seconds " , p1 , fallback : " %d seconds " )
}
// / N a m e
internal static let name = Strings . tr ( " Localizable " , " global.name " , fallback : " Name " )
// / N e t w o r k s
internal static let networks = Strings . tr ( " Localizable " , " global.networks " , fallback : " Networks " )
// / N o c o n t e n t
internal static let noContent = Strings . tr ( " Localizable " , " global.no_content " , fallback : " No content " )
// / N o s e l e c t i o n
internal static let noSelection = Strings . tr ( " Localizable " , " global.no_selection " , fallback : " No selection " )
// / N o n e
internal static let ` none ` = Strings . tr ( " Localizable " , " global.none " , fallback : " None " )
// / O K
internal static let ok = Strings . tr ( " Localizable " , " global.ok " , fallback : " OK " )
// / O n d e m a n d
internal static let onDemand = Strings . tr ( " Localizable " , " global.on_demand " , fallback : " On demand " )
// / O t h e r
internal static let other = Strings . tr ( " Localizable " , " global.other " , fallback : " Other " )
// / P a s s w o r d
internal static let password = Strings . tr ( " Localizable " , " global.password " , fallback : " Password " )
// / P o r t
internal static let port = Strings . tr ( " Localizable " , " global.port " , fallback : " Port " )
// / P r i v a t e k e y
internal static let privateKey = Strings . tr ( " Localizable " , " global.private_key " , fallback : " Private key " )
// / P r o t o c o l
internal static let ` protocol ` = Strings . tr ( " Localizable " , " global.protocol " , fallback : " Protocol " )
// / P u b l i c k e y
internal static let publicKey = Strings . tr ( " Localizable " , " global.public_key " , fallback : " Public key " )
// / D e l e t e
internal static let remove = Strings . tr ( " Localizable " , " global.remove " , fallback : " Delete " )
// / R e s t a r t
internal static let restart = Strings . tr ( " Localizable " , " global.restart " , fallback : " Restart " )
// / R o u t e
internal static let route = Strings . tr ( " Localizable " , " global.route " , fallback : " Route " )
// / R o u t e s
internal static let routes = Strings . tr ( " Localizable " , " global.routes " , fallback : " Routes " )
// / S a v e
internal static let save = Strings . tr ( " Localizable " , " global.save " , fallback : " Save " )
// / S e r v e r
internal static let server = Strings . tr ( " Localizable " , " global.server " , fallback : " Server " )
// / S e r v e r s
internal static let servers = Strings . tr ( " Localizable " , " global.servers " , fallback : " Servers " )
2024-09-25 17:32:07 +00:00
// / S e t t i n g s
internal static let settings = Strings . tr ( " Localizable " , " global.settings " , fallback : " Settings " )
2024-09-23 13:02:26 +00:00
// / S t a t u s
internal static let status = Strings . tr ( " Localizable " , " global.status " , fallback : " Status " )
// / S t o r a g e
internal static let storage = Strings . tr ( " Localizable " , " global.storage " , fallback : " Storage " )
// / S u b n e t
internal static let subnet = Strings . tr ( " Localizable " , " global.subnet " , fallback : " Subnet " )
// / U n i n s t a l l
internal static let uninstall = Strings . tr ( " Localizable " , " global.uninstall " , fallback : " Uninstall " )
// / U n k n o w n
internal static let unknown = Strings . tr ( " Localizable " , " global.unknown " , fallback : " Unknown " )
// / U s e r n a m e
internal static let username = Strings . tr ( " Localizable " , " global.username " , fallback : " Username " )
// / V e r s i o n
internal static let version = Strings . tr ( " Localizable " , " global.version " , fallback : " Version " )
}
internal enum Modules {
internal enum Dns {
internal enum SearchDomains {
// / A d d d o m a i n
internal static let add = Strings . tr ( " Localizable " , " modules.dns.search_domains.add " , fallback : " Add domain " )
}
internal enum Servers {
// / A d d a d d r e s s
internal static let add = Strings . tr ( " Localizable " , " modules.dns.servers.add " , fallback : " Add address " )
}
}
internal enum HttpProxy {
internal enum BypassDomains {
// / A d d b y p a s s d o m a i n
internal static let add = Strings . tr ( " Localizable " , " modules.http_proxy.bypass_domains.add " , fallback : " Add bypass domain " )
}
}
internal enum Ip {
internal enum Routes {
// / A d d % @
internal static func addFamily ( _ p1 : Any ) -> String {
return Strings . tr ( " Localizable " , " modules.ip.routes.add_family " , String ( describing : p1 ) , fallback : " Add %@ " )
}
// / E x c l u d e r o u t e
internal static let exclude = Strings . tr ( " Localizable " , " modules.ip.routes.exclude " , fallback : " Exclude route " )
// / E x c l u d e d r o u t e s
internal static let excluded = Strings . tr ( " Localizable " , " modules.ip.routes.excluded " , fallback : " Excluded routes " )
// / I n c l u d e r o u t e
internal static let include = Strings . tr ( " Localizable " , " modules.ip.routes.include " , fallback : " Include route " )
// / I n c l u d e d r o u t e s
internal static let included = Strings . tr ( " Localizable " , " modules.ip.routes.included " , fallback : " Included routes " )
}
}
internal enum OnDemand {
// / E t h e r n e t
internal static let ethernet = Strings . tr ( " Localizable " , " modules.on_demand.ethernet " , fallback : " Ethernet " )
// / M o b i l e
internal static let mobile = Strings . tr ( " Localizable " , " modules.on_demand.mobile " , fallback : " Mobile " )
// / P o l i c y
internal static let policy = Strings . tr ( " Localizable " , " modules.on_demand.policy " , fallback : " Policy " )
internal enum Policy {
// / A c t i v a t e t h e V P N % @ .
internal static func footer ( _ p1 : Any ) -> String {
return Strings . tr ( " Localizable " , " modules.on_demand.policy.footer " , String ( describing : p1 ) , fallback : " Activate the VPN %@. " )
}
internal enum Footer {
// / i n a n y n e t w o r k
internal static let any = Strings . tr ( " Localizable " , " modules.on_demand.policy.footer.any " , fallback : " in any network " )
// / e x c e p t i n t h e n e t w o r k s b e l o w
internal static let excluding = Strings . tr ( " Localizable " , " modules.on_demand.policy.footer.excluding " , fallback : " except in the networks below " )
// / o n l y i n t h e n e t w o r k s b e l o w
internal static let including = Strings . tr ( " Localizable " , " modules.on_demand.policy.footer.including " , fallback : " only in the networks below " )
}
}
internal enum Ssid {
// / A d d S S I D
internal static let add = Strings . tr ( " Localizable " , " modules.on_demand.ssid.add " , fallback : " Add SSID " )
}
}
internal enum Openvpn {
// / C i p h e r
internal static let cipher = Strings . tr ( " Localizable " , " modules.openvpn.cipher " , fallback : " Cipher " )
// / C o m m u n i c a t i o n
internal static let communication = Strings . tr ( " Localizable " , " modules.openvpn.communication " , fallback : " Communication " )
// / C o m p r e s s i o n
internal static let compression = Strings . tr ( " Localizable " , " modules.openvpn.compression " , fallback : " Compression " )
// / A l g o r i t h m
internal static let compressionAlgorithm = Strings . tr ( " Localizable " , " modules.openvpn.compression_algorithm " , fallback : " Algorithm " )
// / F r a m i n g
internal static let compressionFraming = Strings . tr ( " Localizable " , " modules.openvpn.compression_framing " , fallback : " Framing " )
// / C r e d e n t i a l s
internal static let credentials = Strings . tr ( " Localizable " , " modules.openvpn.credentials " , fallback : " Credentials " )
// / D i g e s t
internal static let digest = Strings . tr ( " Localizable " , " modules.openvpn.digest " , fallback : " Digest " )
// / E x t e n d e d v e r i f i c a t i o n
internal static let eku = Strings . tr ( " Localizable " , " modules.openvpn.eku " , fallback : " Extended verification " )
// / P u l l
internal static let pull = Strings . tr ( " Localizable " , " modules.openvpn.pull " , fallback : " Pull " )
// / R a n d o m i z e e n d p o i n t
internal static let randomizeEndpoint = Strings . tr ( " Localizable " , " modules.openvpn.randomize_endpoint " , fallback : " Randomize endpoint " )
// / R a n d o m i z e h o s t n a m e
internal static let randomizeHostname = Strings . tr ( " Localizable " , " modules.openvpn.randomize_hostname " , fallback : " Randomize hostname " )
// / R e d i r e c t g a t e w a y
internal static let redirectGateway = Strings . tr ( " Localizable " , " modules.openvpn.redirect_gateway " , fallback : " Redirect gateway " )
// / R e m o t e s
internal static let remotes = Strings . tr ( " Localizable " , " modules.openvpn.remotes " , fallback : " Remotes " )
// / R e n e g o t i a t i o n
internal static let renegotiation = Strings . tr ( " Localizable " , " modules.openvpn.renegotiation " , fallback : " Renegotiation " )
// / W r a p p i n g
internal static let tlsWrap = Strings . tr ( " Localizable " , " modules.openvpn.tls_wrap " , fallback : " Wrapping " )
internal enum Credentials {
// / I n t e r a c t i v e
internal static let interactive = Strings . tr ( " Localizable " , " modules.openvpn.credentials.interactive " , fallback : " Interactive " )
internal enum Interactive {
// / O n - d e m a n d w i l l b e d i s a b l e d .
internal static let footer = Strings . tr ( " Localizable " , " modules.openvpn.credentials.interactive.footer " , fallback : " On-demand will be disabled. " )
}
internal enum OtpMethod {
internal enum Approach {
// / T h e O T P w i l l b e a p p e n d e d t o t h e p a s s w o r d .
internal static let append = Strings . tr ( " Localizable " , " modules.openvpn.credentials.otp_method.approach.append " , fallback : " The OTP will be appended to the password. " )
// / T h e O T P w i l l b e e n c o d e d i n B a s e 6 4 w i t h t h e p a s s w o r d .
internal static let encode = Strings . tr ( " Localizable " , " modules.openvpn.credentials.otp_method.approach.encode " , fallback : " The OTP will be encoded in Base64 with the password. " )
}
}
}
}
internal enum Wireguard {
// / A l l o w e d I P s
internal static let allowedIps = Strings . tr ( " Localizable " , " modules.wireguard.allowed_ips " , fallback : " Allowed IPs " )
// / I n t e r f a c e
internal static let interface = Strings . tr ( " Localizable " , " modules.wireguard.interface " , fallback : " Interface " )
// / P e e r # % d
internal static func peer ( _ p1 : Int ) -> String {
return Strings . tr ( " Localizable " , " modules.wireguard.peer " , p1 , fallback : " Peer #%d " )
}
// / P r e - s h a r e d k e y
internal static let presharedKey = Strings . tr ( " Localizable " , " modules.wireguard.preshared_key " , fallback : " Pre-shared key " )
}
}
internal enum Placeholders {
// / s e c r e t
internal static let secret = Strings . tr ( " Localizable " , " placeholders.secret " , fallback : " secret " )
// / u s e r n a m e
internal static let username = Strings . tr ( " Localizable " , " placeholders.username " , fallback : " username " )
internal enum OnDemand {
// / M y S S I D
internal static let ssid = Strings . tr ( " Localizable " , " placeholders.on_demand.ssid " , fallback : " My SSID " )
}
internal enum Profile {
// / M y p r o f i l e
internal static let name = Strings . tr ( " Localizable " , " placeholders.profile.name " , fallback : " My profile " )
}
}
internal enum Views {
2024-09-28 10:47:33 +00:00
internal enum About {
// / A b o u t
internal static let title = Strings . tr ( " Localizable " , " views.about.title " , fallback : " About " )
2024-09-23 13:02:26 +00:00
internal enum Credits {
// / L i c e n s e s
2024-09-28 10:47:33 +00:00
internal static let licenses = Strings . tr ( " Localizable " , " views.about.credits.licenses " , fallback : " Licenses " )
2024-09-23 13:02:26 +00:00
// / N o t i c e s
2024-09-28 10:47:33 +00:00
internal static let notices = Strings . tr ( " Localizable " , " views.about.credits.notices " , fallback : " Notices " )
2024-09-23 13:02:26 +00:00
// / C r e d i t s
2024-09-28 10:47:33 +00:00
internal static let title = Strings . tr ( " Localizable " , " views.about.credits.title " , fallback : " Credits " )
2024-09-23 13:02:26 +00:00
// / T r a n s l a t i o n s
2024-09-28 10:47:33 +00:00
internal static let translations = Strings . tr ( " Localizable " , " views.about.credits.translations " , fallback : " Translations " )
2024-09-23 13:02:26 +00:00
}
internal enum Links {
// / L i n k s
2024-09-28 10:47:33 +00:00
internal static let title = Strings . tr ( " Localizable " , " views.about.links.title " , fallback : " Links " )
2024-09-23 13:02:26 +00:00
internal enum Rows {
// / D i s c l a i m e r
2024-09-28 10:47:33 +00:00
internal static let disclaimer = Strings . tr ( " Localizable " , " views.about.links.rows.disclaimer " , fallback : " Disclaimer " )
2024-09-23 13:02:26 +00:00
// / H o m e p a g e
2024-09-28 10:47:33 +00:00
internal static let homePage = Strings . tr ( " Localizable " , " views.about.links.rows.home_page " , fallback : " Home page " )
2024-09-23 13:02:26 +00:00
// / J o i n c o m m u n i t y
2024-09-28 10:47:33 +00:00
internal static let joinCommunity = Strings . tr ( " Localizable " , " views.about.links.rows.join_community " , fallback : " Join community " )
2024-09-23 13:02:26 +00:00
// / P r i v a c y p o l i c y
2024-09-28 10:47:33 +00:00
internal static let privacyPolicy = Strings . tr ( " Localizable " , " views.about.links.rows.privacy_policy " , fallback : " Privacy policy " )
2024-09-23 13:02:26 +00:00
// / W r i t e a r e v i e w
2024-09-28 10:47:33 +00:00
internal static let writeReview = Strings . tr ( " Localizable " , " views.about.links.rows.write_review " , fallback : " Write a review " )
2024-09-23 13:02:26 +00:00
}
internal enum Sections {
// / S u p p o r t
2024-09-28 10:47:33 +00:00
internal static let support = Strings . tr ( " Localizable " , " views.about.links.sections.support " , fallback : " Support " )
2024-09-23 13:02:26 +00:00
// / W e b
2024-09-28 10:47:33 +00:00
internal static let web = Strings . tr ( " Localizable " , " views.about.links.sections.web " , fallback : " Web " )
2024-09-23 13:02:26 +00:00
}
}
internal enum Sections {
// / R e s o u r c e s
2024-09-28 10:47:33 +00:00
internal static let resources = Strings . tr ( " Localizable " , " views.about.sections.resources " , fallback : " Resources " )
2024-09-23 13:02:26 +00:00
}
}
internal enum Diagnostics {
// / D i a g n o s t i c s
internal static let title = Strings . tr ( " Localizable " , " views.diagnostics.title " , fallback : " Diagnostics " )
internal enum Alerts {
internal enum ReportIssue {
// / T h e d e v i c e i s n o t c o n f i g u r e d t o s e n d e - m a i l s .
internal static let email = Strings . tr ( " Localizable " , " views.diagnostics.alerts.report_issue.email " , fallback : " The device is not configured to send e-mails. " )
}
}
internal enum Openvpn {
internal enum Rows {
// / S e r v e r c o n f i g u r a t i o n
internal static let serverConfiguration = Strings . tr ( " Localizable " , " views.diagnostics.openvpn.rows.server_configuration " , fallback : " Server configuration " )
}
}
internal enum ReportIssue {
// / R e p o r t i s s u e
internal static let title = Strings . tr ( " Localizable " , " views.diagnostics.report_issue.title " , fallback : " Report issue " )
}
internal enum Rows {
// / A p p
internal static let app = Strings . tr ( " Localizable " , " views.diagnostics.rows.app " , fallback : " App " )
// / I n c l u d e p r i v a t e d a t a
internal static let includePrivateData = Strings . tr ( " Localizable " , " views.diagnostics.rows.include_private_data " , fallback : " Include private data " )
// / D e l e t e a l l l o g s
internal static let removeTunnelLogs = Strings . tr ( " Localizable " , " views.diagnostics.rows.remove_tunnel_logs " , fallback : " Delete all logs " )
// / T u n n e l
internal static let tunnel = Strings . tr ( " Localizable " , " views.diagnostics.rows.tunnel " , fallback : " Tunnel " )
}
internal enum Sections {
// / L i v e l o g
internal static let live = Strings . tr ( " Localizable " , " views.diagnostics.sections.live " , fallback : " Live log " )
// / T u n n e l l o g s
internal static let tunnel = Strings . tr ( " Localizable " , " views.diagnostics.sections.tunnel " , fallback : " Tunnel logs " )
}
}
internal enum Donate {
// / M a k e a d o n a t i o n
internal static let title = Strings . tr ( " Localizable " , " views.donate.title " , fallback : " Make a donation " )
}
internal enum Profile {
internal enum ModuleList {
internal enum Section {
// / D r a g m o d u l e s t o r e a r r a n g e t h e m , a s t h e i r o r d e r d e t e r m i n e s p r i o r i t y .
internal static let footer = Strings . tr ( " Localizable " , " views.profile.module_list.section.footer " , fallback : " Drag modules to rearrange them, as their order determines priority. " )
}
}
internal enum Rows {
// / A d d m o d u l e
internal static let addModule = Strings . tr ( " Localizable " , " views.profile.rows.add_module " , fallback : " Add module " )
}
}
internal enum Profiles {
internal enum Alerts {
internal enum Import {
internal enum Passphrase {
// / E n t e r p a s s p h r a s e f o r ' % @ ' .
internal static func message ( _ p1 : Any ) -> String {
return Strings . tr ( " Localizable " , " views.profiles.alerts.import.passphrase.message " , String ( describing : p1 ) , fallback : " Enter passphrase for '%@'. " )
}
// / D e c r y p t
internal static let ok = Strings . tr ( " Localizable " , " views.profiles.alerts.import.passphrase.ok " , fallback : " Decrypt " )
}
}
}
internal enum Errors {
// / U n a b l e t o d u p l i c a t e p r o f i l e ' % @ ' .
internal static func duplicate ( _ p1 : Any ) -> String {
return Strings . tr ( " Localizable " , " views.profiles.errors.duplicate " , String ( describing : p1 ) , fallback : " Unable to duplicate profile '%@'. " )
}
// / U n a b l e t o i m p o r t p r o f i l e s .
internal static let ` import ` = Strings . tr ( " Localizable " , " views.profiles.errors.import " , fallback : " Unable to import profiles. " )
// / U n a b l e t o e x e c u t e t u n n e l o p e r a t i o n .
internal static let tunnel = Strings . tr ( " Localizable " , " views.profiles.errors.tunnel " , fallback : " Unable to execute tunnel operation. " )
}
internal enum Folders {
// / I n s t a l l e d p r o f i l e
internal static let activeProfile = Strings . tr ( " Localizable " , " views.profiles.folders.active_profile " , fallback : " Installed profile " )
// / A d d p r o f i l e
internal static let addProfile = Strings . tr ( " Localizable " , " views.profiles.folders.add_profile " , fallback : " Add profile " )
// / M y p r o f i l e s
internal static let ` default ` = Strings . tr ( " Localizable " , " views.profiles.folders.default " , fallback : " My profiles " )
// / N o p r o f i l e s
internal static let noProfiles = Strings . tr ( " Localizable " , " views.profiles.folders.no_profiles " , fallback : " No profiles " )
}
internal enum Rows {
// / % d m o d u l e s
internal static func modules ( _ p1 : Int ) -> String {
return Strings . tr ( " Localizable " , " views.profiles.rows.modules " , p1 , fallback : " %d modules " )
}
// / S e l e c t a p r o f i l e
internal static let notInstalled = Strings . tr ( " Localizable " , " views.profiles.rows.not_installed " , fallback : " Select a profile " )
}
internal enum Toolbar {
// / I m p o r t p r o f i l e
internal static let importProfile = Strings . tr ( " Localizable " , " views.profiles.toolbar.import_profile " , fallback : " Import profile " )
// / N e w p r o f i l e
internal static let newProfile = Strings . tr ( " Localizable " , " views.profiles.toolbar.new_profile " , fallback : " New profile " )
}
}
2024-09-28 10:47:33 +00:00
internal enum Settings {
internal enum Rows {
// / L o c k i n b a c k g r o u n d
internal static let lockInBackground = Strings . tr ( " Localizable " , " views.settings.rows.lock_in_background " , fallback : " Lock in background " )
internal enum LockInBackground {
// / P a s s e p a r t o u t i s l o c k e d
internal static let message = Strings . tr ( " Localizable " , " views.settings.rows.lock_in_background.message " , fallback : " Passepartout is locked " )
}
}
internal enum Sections {
// / L o c k
internal static let lock = Strings . tr ( " Localizable " , " views.settings.sections.lock " , fallback : " Lock " )
}
}
2024-09-23 13:02:26 +00:00
}
}
// s w i f t l i n t : e n a b l e e x p l i c i t _ t y p e _ i n t e r f a c e f u n c t i o n _ p a r a m e t e r _ c o u n t i d e n t i f i e r _ n a m e l i n e _ l e n g t h
// s w i f t l i n t : e n a b l e n e s t i n g t y p e _ b o d y _ l e n g t h t y p e _ n a m e v e r t i c a l _ w h i t e s p a c e _ o p e n i n g _ b r a c e s
// MARK: - I m p l e m e n t a t i o n D e t a i l s
extension Strings {
private static func tr ( _ table : String , _ key : String , _ args : CVarArg . . . , fallback value : String ) -> String {
let format = Bundle . main . localizedString ( forKey : key , value : value , table : table )
return String ( format : format , locale : Locale . current , arguments : args )
}
}