Skip to content

Commit

Permalink
Merge branch 'main' into optimization-japanase-text
Browse files Browse the repository at this point in the history
  • Loading branch information
enpipi authored Aug 16, 2024
2 parents 970bef7 + 24a49f9 commit 787fea6
Show file tree
Hide file tree
Showing 6 changed files with 245 additions and 7 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.0.8] - 2024-08-16
Requires macOS 12.0 and higher.

### Changed
- Japenese Localization
- Thanks to [enpipi](https://github.com/enpipi) for the changes!
- [637](https://github.com/macadmins/nudge/issues/637)
- The `Debug` schema no longer honors `randomDelay`

### Fixed
- The left side of Nudge is no longer cut off when using more "verbose" languages
- [640](https://github.com/macadmins/nudge/issues/640)
- The left side of Nudge now has proper localization for the values `True` and `False`

## [2.0.7] - 2024-08-08
Requires macOS 12.0 and higher.

Expand Down
216 changes: 216 additions & 0 deletions Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -2045,6 +2045,114 @@
}
}
},
"False" : {
"comment" : "Actively Exploited CVEs",
"extractionState" : "manual",
"localizations" : {
"da" : {
"stringUnit" : {
"state" : "translated",
"value" : "Falsk"
}
},
"de" : {
"stringUnit" : {
"state" : "translated",
"value" : "Falsch"
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "False"
}
},
"es" : {
"stringUnit" : {
"state" : "translated",
"value" : "Falso"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "Faux"
}
},
"hi" : {
"stringUnit" : {
"state" : "translated",
"value" : "असत्य"
}
},
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "Falso"
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "偽"
}
},
"ko" : {
"stringUnit" : {
"state" : "translated",
"value" : "거짓"
}
},
"nb" : {
"stringUnit" : {
"state" : "translated",
"value" : "Usann"
}
},
"nl" : {
"stringUnit" : {
"state" : "translated",
"value" : "Onwaar"
}
},
"pl" : {
"stringUnit" : {
"state" : "translated",
"value" : "Fałsz"
}
},
"pt" : {
"stringUnit" : {
"state" : "translated",
"value" : "Falso"
}
},
"ru" : {
"stringUnit" : {
"state" : "translated",
"value" : "Ложь"
}
},
"sv" : {
"stringUnit" : {
"state" : "translated",
"value" : "Falskt"
}
},
"uk" : {
"stringUnit" : {
"state" : "translated",
"value" : "Брехня"
}
},
"zh" : {
"stringUnit" : {
"state" : "translated",
"value" : "假"
}
}
}
},
"Hours Remaining To Update:" : {
"comment" : "Hours Remaining To Update:",
"extractionState" : "manual",
Expand Down Expand Up @@ -3449,6 +3557,114 @@
}
}
},
"True" : {
"comment" : "Actively Exploited CVEs",
"extractionState" : "manual",
"localizations" : {
"da" : {
"stringUnit" : {
"state" : "translated",
"value" : "Sand"
}
},
"de" : {
"stringUnit" : {
"state" : "translated",
"value" : "Wahr"
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "True"
}
},
"es" : {
"stringUnit" : {
"state" : "translated",
"value" : "Verdadero"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "Vrai"
}
},
"hi" : {
"stringUnit" : {
"state" : "translated",
"value" : "सत्य"
}
},
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "Vero"
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "真実"
}
},
"ko" : {
"stringUnit" : {
"state" : "translated",
"value" : "참"
}
},
"nb" : {
"stringUnit" : {
"state" : "translated",
"value" : "Sann"
}
},
"nl" : {
"stringUnit" : {
"state" : "translated",
"value" : "Waar"
}
},
"pl" : {
"stringUnit" : {
"state" : "translated",
"value" : "Prawda"
}
},
"pt" : {
"stringUnit" : {
"state" : "translated",
"value" : "Verdade"
}
},
"ru" : {
"stringUnit" : {
"state" : "translated",
"value" : "Правда"
}
},
"sv" : {
"stringUnit" : {
"state" : "translated",
"value" : "Sant"
}
},
"uk" : {
"stringUnit" : {
"state" : "translated",
"value" : "Правда"
}
},
"zh" : {
"stringUnit" : {
"state" : "translated",
"value" : "真"
}
}
}
},
"Update Device" : {
"comment" : "actionButtonText",
"extractionState" : "manual",
Expand Down
4 changes: 2 additions & 2 deletions Nudge.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 12.0;
MARKETING_VERSION = 2.0.7;
MARKETING_VERSION = 2.0.8;
PRODUCT_BUNDLE_IDENTIFIER = com.github.macadmins.Nudge;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -729,7 +729,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 12.0;
MARKETING_VERSION = 2.0.7;
MARKETING_VERSION = 2.0.8;
PRODUCT_BUNDLE_IDENTIFIER = com.github.macadmins.Nudge;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
6 changes: 6 additions & 0 deletions Nudge.xcodeproj/xcshareddata/xcschemes/Nudge - Debug.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@
ReferencedContainer = "container:Nudge.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<CommandLineArguments>
<CommandLineArgument
argument = "-disable-random-delay"
isEnabled = "YES">
</CommandLineArgument>
</CommandLineArguments>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
Expand Down
4 changes: 2 additions & 2 deletions Nudge/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>2.0.7</string>
<string>2.0.8</string>
<key>CFBundleVersion</key>
<string>2.0.7</string>
<string>2.0.8</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key>
Expand Down
8 changes: 5 additions & 3 deletions Nudge/UI/StandardMode/LeftSide.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,20 +82,22 @@ struct InfoRow: View {
HStack {
Text(label.localized(desiredLanguage: getDesiredLanguage(locale: appState.locale)))
.fontWeight(boldText ? .bold : .regular)
.lineLimit(2)
Spacer()
if isHighlighted {
Text(value)
Text(value.localized(desiredLanguage: getDesiredLanguage(locale: appState.locale)))
.foregroundColor(appState.differentiateWithoutColor ? .accessibleRed : .red)
.fontWeight(.bold)
.minimumScaleFactor(0.01)
.lineLimit(1)
} else {
Text(value)
Text(value.localized(desiredLanguage: getDesiredLanguage(locale: appState.locale)))
.foregroundColor(colorScheme == .light ? .accessibleSecondaryLight : .accessibleSecondaryDark)
.fontWeight(boldText ? .bold : .regular)
.minimumScaleFactor(0.01)
.lineLimit(1)
}
}
.lineLimit(1)
}
}

Expand Down

0 comments on commit 787fea6

Please sign in to comment.