From 74d28afca8de05e7c90dbc7ef5bd5aaf408dbae5 Mon Sep 17 00:00:00 2001 From: Pete Markowsky Date: Mon, 2 Dec 2024 14:38:16 -0500 Subject: [PATCH] Update localization. --- Source/gui/Resources/de.lproj/Localizable.strings | 3 +++ Source/gui/Resources/en.lproj/Localizable.strings | 3 +++ Source/gui/Resources/ru.lproj/Localizable.strings | 3 +++ Source/gui/Resources/uk.lproj/Localizable.strings | 3 +++ Source/gui/SNTBinaryMessageWindowView.swift | 10 +++++++--- 5 files changed, 19 insertions(+), 3 deletions(-) diff --git a/Source/gui/Resources/de.lproj/Localizable.strings b/Source/gui/Resources/de.lproj/Localizable.strings index 96887d4b..7d099ce8 100644 --- a/Source/gui/Resources/de.lproj/Localizable.strings +++ b/Source/gui/Resources/de.lproj/Localizable.strings @@ -7,6 +7,9 @@ /* No comment provided by engineer. */ "Application" = "Applikation"; +/* No comment provided by engineer. */ +"the application " = "die applikation "; + /* No comment provided by engineer. */ "Bundle Hash" = "Bundle-Hash"; diff --git a/Source/gui/Resources/en.lproj/Localizable.strings b/Source/gui/Resources/en.lproj/Localizable.strings index 25507eb0..d0e2c6f7 100644 --- a/Source/gui/Resources/en.lproj/Localizable.strings +++ b/Source/gui/Resources/en.lproj/Localizable.strings @@ -67,6 +67,9 @@ /* No comment provided by engineer. */ "Signing ID" = "Signing ID"; +/* Bundle name */ +"the application " = "the application "; + /* The default message to show the user when an unknown application is blocked */ "The following application has been blocked from executing
because its trustworthiness cannot be determined" = "The following application has been blocked from executing
because its trustworthiness cannot be determined"; diff --git a/Source/gui/Resources/ru.lproj/Localizable.strings b/Source/gui/Resources/ru.lproj/Localizable.strings index c14162d1..64c2156f 100644 --- a/Source/gui/Resources/ru.lproj/Localizable.strings +++ b/Source/gui/Resources/ru.lproj/Localizable.strings @@ -7,6 +7,9 @@ /* No comment provided by engineer. */ "Application" = "Приложение"; +/* No comment provided by engineer. */ +"the application " = "приложение "; + /* No comment provided by engineer. */ "Bundle Hash" = "Бандл-хэш"; diff --git a/Source/gui/Resources/uk.lproj/Localizable.strings b/Source/gui/Resources/uk.lproj/Localizable.strings index 0c855012..6828d5d5 100644 --- a/Source/gui/Resources/uk.lproj/Localizable.strings +++ b/Source/gui/Resources/uk.lproj/Localizable.strings @@ -4,6 +4,9 @@ /* No comment provided by engineer. */ "Application" = "Заявка"; +/* No comment provided by engineer */ +"the application " = "додаток "; + /* No comment provided by engineer. */ "Bundle Hash" = "Пакетний хеш"; diff --git a/Source/gui/SNTBinaryMessageWindowView.swift b/Source/gui/SNTBinaryMessageWindowView.swift index ed712d56..e2ec95f0 100644 --- a/Source/gui/SNTBinaryMessageWindowView.swift +++ b/Source/gui/SNTBinaryMessageWindowView.swift @@ -358,16 +358,20 @@ struct SNTBinaryMessageWindowView: View { // This button is only shown when the standalone mode is enabled in place of // the "Open Event" button. func standAloneButton() { - var msg = NSLocalizedString("Standalone Approval", comment: "Standalone approval message") + + var msg = "Allow execution of " if let e = self.event { let bundleName = e.fileBundleName ?? "" let filePath = e.filePath ?? "" + let signingID = e.signingID ?? "" if !bundleName.isEmpty { - msg = NSLocalizedString(bundleName, comment: "Bundle name") + msg = NSLocalizedString("the application " + msg + bundleName, comment: "Bundle name") + } else if !signingID.isEmpty { + msg = NSLocalizedString(msg + signingID, comment: "Signing ID") } else if !filePath.isEmpty { - msg = NSLocalizedString(filePath, comment: "File path") + msg = NSLocalizedString(msg + filePath, comment: "File path") } } else { // If we don't have an event, we can't fill in the message.