diff --git a/Network Share Mounter/model/Mounter.swift b/Network Share Mounter/model/Mounter.swift index b6c7cfe8a2e1b4153c3a5d2749643e75ed62e229..84914182a0974efedc826f9b2c9593e77cc0b623 100644 --- a/Network Share Mounter/model/Mounter.swift +++ b/Network Share Mounter/model/Mounter.swift @@ -119,14 +119,17 @@ class Mounter: ObservableObject { /// - Attempts to add the user's home directory (if in AD/Kerberos environment) func asyncInit() async { // Determine whether to use localized folder names based on preference - if prefs.bool(for: .useLocalizedMountDirectories, defaultValue: false) { + // FIXME: temporary removed feature, the following line is the final one :-D + // g. +// if prefs.bool(for: .useLocalizedMountDirectories, defaultValue: false) { + if prefs.bool(for: .useLocalizedMountDirectories, defaultValue: true) { // Use language-specific folder name if preference is enabled self.localizedFolder = Defaults.translation[Locale.current.languageCode!] ?? Defaults.translation["en"]! - Logger.mounter.debug("Using localized folder name: \(self.localizedFolder)") + Logger.mounter.debug("Using localized folder name: \(self.localizedFolder, privacy: .public)") } else { // Always use English name for backward compatibility self.localizedFolder = Defaults.translation["en"]! - Logger.mounter.debug("Using default English folder name for compatibility: \(self.localizedFolder)") + Logger.mounter.debug("Using default English folder name for compatibility: \(self.localizedFolder, privacy: .public)") } // Define and create the directory where shares will be mounted diff --git a/Network Share Mounter/preferences/config.swift b/Network Share Mounter/preferences/config.swift index b5fc9de7e23c5b295f5a0238abcda937c820d0a6..6ae3f9b7de77e5fa01304d75a92cbd56913f23e1 100644 --- a/Network Share Mounter/preferences/config.swift +++ b/Network Share Mounter/preferences/config.swift @@ -45,12 +45,20 @@ struct Defaults { // MARK: - Localization /// Translations for the network shares folder name in different languages + // FIXME: temporarely disable feature +// static let translation = [ +// "en": "Networkshares", +// "de": "Netzlaufwerke", +// "es": "Recursos de red", +// "fr": "Partages réseau", +// "nl": "Netwerkschijven" +// ] static let translation = [ "en": "Networkshares", "de": "Netzlaufwerke", - "es": "Recursos de red", - "fr": "Partages réseau", - "nl": "Netwerkschijven" + "es": "Networkshares", + "fr": "Networkshares", + "nl": "Networkshares" ] // MARK: - Timer Settings diff --git a/networkShareMounter.xcodeproj/project.pbxproj b/networkShareMounter.xcodeproj/project.pbxproj index 50976210544bfb2a8f059e124edba27e284e25f8..a71fd915913c361d5f4c430339823a9fcaf881e4 100644 --- a/networkShareMounter.xcodeproj/project.pbxproj +++ b/networkShareMounter.xcodeproj/project.pbxproj @@ -647,7 +647,7 @@ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 211; + CURRENT_PROJECT_VERSION = 212; DEVELOPMENT_TEAM = C8F68RFW4L; ENABLE_USER_SCRIPT_SANDBOXING = YES; GCC_C_LANGUAGE_STANDARD = gnu17; @@ -677,7 +677,7 @@ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 211; + CURRENT_PROJECT_VERSION = 212; DEVELOPMENT_TEAM = C8F68RFW4L; ENABLE_USER_SCRIPT_SANDBOXING = YES; GCC_C_LANGUAGE_STANDARD = gnu17; @@ -711,7 +711,7 @@ "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Mac Developer"; CODE_SIGN_STYLE = Manual; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 212; + CURRENT_PROJECT_VERSION = 213; DEAD_CODE_STRIPPING = YES; DEVELOPMENT_TEAM = ""; "DEVELOPMENT_TEAM[sdk=macosx*]" = C8F68RFW4L; @@ -761,7 +761,7 @@ "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Mac Developer"; CODE_SIGN_STYLE = Manual; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 212; + CURRENT_PROJECT_VERSION = 213; DEAD_CODE_STRIPPING = YES; DEVELOPMENT_TEAM = ""; "DEVELOPMENT_TEAM[sdk=macosx*]" = C8F68RFW4L;