From 0b451c4dc880645726d2256e0138a0bd1ba60c9d Mon Sep 17 00:00:00 2001 From: Gregor Longariva <gregor.longariva@fau.de> Date: Wed, 26 Mar 2025 15:04:01 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20commented=20out=20localized=20mo?= =?UTF-8?q?unt=20folders?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Network Share Mounter/model/Mounter.swift | 9 ++++++--- Network Share Mounter/preferences/config.swift | 14 +++++++++++--- networkShareMounter.xcodeproj/project.pbxproj | 8 ++++---- 3 files changed, 21 insertions(+), 10 deletions(-) diff --git a/Network Share Mounter/model/Mounter.swift b/Network Share Mounter/model/Mounter.swift index b6c7cfe..8491418 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 b5fc9de..6ae3f9b 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 5097621..a71fd91 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; -- GitLab