diff --git a/Example Assets/com.github.macadmins.Nudge.json b/Example Assets/com.github.macadmins.Nudge.json index 9568ea38..ab8765e7 100644 --- a/Example Assets/com.github.macadmins.Nudge.json +++ b/Example Assets/com.github.macadmins.Nudge.json @@ -73,7 +73,6 @@ "iconLightPath": "/somewhere/logoLight.png", "screenShotDarkPath": "/somewhere/screenShotDark.png", "screenShotLightPath": "/somewhere/screenShotLight.png", - "screenShotAltText": "Click to zoom into screenshot", "showDeferralCount": true, "simpleMode": false, "singleQuitButton": false, @@ -93,7 +92,8 @@ "oneHourDeferralButtonText": "One Hour", "primaryQuitButtonText": "Later", "secondaryQuitButtonText": "I understand", - "subHeader": "A friendly reminder from your local IT team" + "subHeader": "A friendly reminder from your local IT team", + "screenShotAltText": "Click to zoom into screenshot" }, { "_language": "es", @@ -106,7 +106,8 @@ "mainHeader": "Tu dispositivo requiere una actualización de seguridad", "primaryQuitButtonText": "Más tarde", "secondaryQuitButtonText": "Entiendo", - "subHeader": "Un recordatorio amistoso de su equipo de IT local" + "subHeader": "Un recordatorio amistoso de su equipo de IT local", + "screenShotAltText": "Haga clic para ampliar la captura de pantalla" }, { "_language": "fr", @@ -119,7 +120,8 @@ "mainHeader": "Votre appareil nécessite une mise à jour de sécurité.", "primaryQuitButtonText": "Plus tard", "secondaryQuitButtonText": "Je comprends", - "subHeader": "Un rappel amical de votre équipe informatique locale" + "subHeader": "Un rappel amical de votre équipe informatique locale", + "screenShotAltText": "Cliquez pour agrandir la capture d'écran" }, { "_language": "de", @@ -132,7 +134,8 @@ "mainHeader": "Ihr Gerät benötigt ein Sicherheitsupdate", "primaryQuitButtonText": "Später", "secondaryQuitButtonText": "Ich verstehe", - "subHeader": "Eine freundliche Erinnerung von Ihrem IT-Team" + "subHeader": "Eine freundliche Erinnerung von Ihrem IT-Team", + "screenShotAltText": "Hier klicken, um den Screenshot zu vergrößern" } ] } diff --git a/Example Assets/com.github.macadmins.Nudge.mobileconfig b/Example Assets/com.github.macadmins.Nudge.mobileconfig index 45a2a245..b398c57a 100644 --- a/Example Assets/com.github.macadmins.Nudge.mobileconfig +++ b/Example Assets/com.github.macadmins.Nudge.mobileconfig @@ -155,8 +155,6 @@ /somewhere/screenShotDark.png screenShotLightPath /somewhere/screenShotLight.png - screenShotAltText - Click to zoom into screenshot showDeferralCount simpleMode @@ -200,6 +198,8 @@ I understand subHeader A friendly reminder from your local IT team + screenShotAltText + Click to zoom into screenshot _language @@ -228,6 +228,8 @@ Entiendo subHeader Un recordatorio amistoso de su equipo de IT local + screenShotAltText + Haga clic para ampliar la captura de pantalla _language @@ -256,6 +258,8 @@ Je comprends subHeader Un rappel amical de votre équipe informatique locale + screenShotAltText + Cliquez pour agrandir la capture d'écran _language @@ -283,6 +287,8 @@ Ich verstehe subHeader Eine freundliche Erinnerung von Ihrem IT-Team + screenShotAltText + Hier klicken, um den Screenshot zu vergrößern diff --git a/Example Assets/com.github.macadmins.Nudge.tester.json b/Example Assets/com.github.macadmins.Nudge.tester.json index a98d2b06..106daa03 100644 --- a/Example Assets/com.github.macadmins.Nudge.tester.json +++ b/Example Assets/com.github.macadmins.Nudge.tester.json @@ -53,7 +53,8 @@ "oneHourDeferralButtonText": "oneHourDeferralButtonText", "primaryQuitButtonText": "primaryQuitButtonText", "secondaryQuitButtonText": "secondaryQuitButtonText", - "subHeader": "subHeader" + "subHeader": "subHeader", + "screenShotAltText": "Click to zoom into screenshot" } ] } diff --git a/Nudge/Preferences/PreferencesStructure.swift b/Nudge/Preferences/PreferencesStructure.swift index 6bd5b1f9..070e5aab 100644 --- a/Nudge/Preferences/PreferencesStructure.swift +++ b/Nudge/Preferences/PreferencesStructure.swift @@ -356,7 +356,7 @@ extension UserExperience { struct UserInterface: Codable { var actionButtonPath, fallbackLanguage: String? var forceFallbackLanguage, forceScreenShotIcon: Bool? - var iconDarkPath, iconLightPath, screenShotDarkPath, screenShotLightPath, screenShotAltText: String? + var iconDarkPath, iconLightPath, screenShotDarkPath, screenShotLightPath: String? var showDeferralCount, simpleMode, singleQuitButton: Bool? var updateElements: [UpdateElement]? } @@ -387,7 +387,6 @@ extension UserInterface { iconLightPath: String?? = nil, screenShotDarkPath: String?? = nil, screenShotLightPath: String?? = nil, - screenShotAltText: String?? = nil, showDeferralCount: Bool?? = nil, simpleMode: Bool?? = nil, singleQuitButton: Bool?? = nil, @@ -402,7 +401,6 @@ extension UserInterface { iconLightPath: iconLightPath ?? self.iconLightPath, screenShotDarkPath: screenShotDarkPath ?? self.screenShotDarkPath, screenShotLightPath: screenShotLightPath ?? self.screenShotLightPath, - screenShotAltText: screenShotAltText ?? self.screenShotAltText, showDeferralCount: showDeferralCount ?? self.showDeferralCount, simpleMode: simpleMode ?? self.simpleMode, singleQuitButton: singleQuitButton ?? self.simpleMode, @@ -463,7 +461,8 @@ extension UpdateElement { oneHourDeferralButtonText: String?? = nil, primaryQuitButtonText: String?? = nil, secondaryQuitButtonText: String?? = nil, - subHeader: String?? = nil + subHeader: String?? = nil, + screenShotAltText: String?? = nil ) -> UpdateElement { return UpdateElement( language: language ?? self.language, @@ -480,7 +479,8 @@ extension UpdateElement { oneHourDeferralButtonText: oneHourDeferralButtonText ?? self.oneHourDeferralButtonText, primaryQuitButtonText: primaryQuitButtonText ?? self.primaryQuitButtonText, secondaryQuitButtonText: secondaryQuitButtonText ?? self.secondaryQuitButtonText, - subHeader: subHeader ?? self.subHeader + subHeader: subHeader ?? self.subHeader, + screenShotAltText: screenShotAltText ?? self.screenShotAltText ) } diff --git a/Nudge/UI/StandardMode/RightSide.swift b/Nudge/UI/StandardMode/RightSide.swift index 52ac478a..f0e3cac4 100644 --- a/Nudge/UI/StandardMode/RightSide.swift +++ b/Nudge/UI/StandardMode/RightSide.swift @@ -134,7 +134,7 @@ struct StandardModeRightSide: View { .frame(maxHeight: screenshotMaxHeight) } .buttonStyle(.plain) - .help("Click to zoom into screenshot".localized(desiredLanguage: getDesiredLanguage(locale: appState.locale))) + .help(screenShotAltText.localized(desiredLanguage: getDesiredLanguage(locale: appState.locale))) .sheet(isPresented: $appState.screenShotZoomViewIsPresented) { ScreenShotZoom() }