Skip to content

Commit

Permalink
Update localization.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmarkowsky committed Dec 2, 2024
1 parent cccf30d commit 74d28af
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Source/gui/Resources/de.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
3 changes: 3 additions & 0 deletions Source/gui/Resources/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -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<br />because its trustworthiness cannot be determined" = "The following application has been blocked from executing<br />because its trustworthiness cannot be determined";

Expand Down
3 changes: 3 additions & 0 deletions Source/gui/Resources/ru.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
/* No comment provided by engineer. */
"Application" = "Приложение";

/* No comment provided by engineer. */
"the application " = "приложение ";

/* No comment provided by engineer. */
"Bundle Hash" = "Бандл-хэш";

Expand Down
3 changes: 3 additions & 0 deletions Source/gui/Resources/uk.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
/* No comment provided by engineer. */
"Application" = "Заявка";

/* No comment provided by engineer */
"the application " = "додаток ";

/* No comment provided by engineer. */
"Bundle Hash" = "Пакетний хеш";

Expand Down
10 changes: 7 additions & 3 deletions Source/gui/SNTBinaryMessageWindowView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 74d28af

Please sign in to comment.