Add Ukrainian language support and conditional remaining time display#699
Open
girilovsky wants to merge 10 commits intomacadmins:mainfrom
Open
Add Ukrainian language support and conditional remaining time display#699girilovsky wants to merge 10 commits intomacadmins:mainfrom
girilovsky wants to merge 10 commits intomacadmins:mainfrom
Conversation
…tion - Add Ukrainian updateElements entries to example JSON and mobileconfig files - Add Ukrainian aboutUpdateURL entries pointing to Apple's Ukrainian support page - Fix missing Ukrainian translation for "Important Notes" (was left as English) https://claude.ai/code/session_01Co99HifGEQoRQSwnTAatkJ
- Add sevenDayTimeInterval and fourteenDayTimeInterval to Intervals - Add allow7DayDeferral() and allow14DayDeferral() to AppStateManager (visible when >7 or >14 days remain until required update) - Add sevenDayDeferralButtonText and fourteenDayDeferralButtonText to PreferencesStructure and DefaultPreferencesNudge - Wire up new buttons in QuitButtons.swift deferralOptions menu - Add full translations for "Seven Days" and "Fourteen Days" in all 17 supported languages including Ukrainian https://claude.ai/code/session_01Co99HifGEQoRQSwnTAatkJ
This reverts commit 28b3fc3.
SimpleMode was rendering the remaining time row unconditionally, ignoring the showDaysRemainingToUpdate setting. Wrap it with the same guard used in StandardMode's LeftSide.swift. https://claude.ai/code/session_01Co99HifGEQoRQSwnTAatkJ
…gToUpdate - Add requiredOSVersionView and requiredDateView from macadmins:main - Keep showDaysRemainingToUpdate guard on remainingTimeView (bug fix) https://claude.ai/code/session_01Co99HifGEQoRQSwnTAatkJ
- Ukrainian (uk) localization support - Fix showDaysRemainingToUpdate in SimpleMode - SimpleMode now renders requiredOSVersionView and requiredDateView https://claude.ai/code/session_01Co99HifGEQoRQSwnTAatkJ
platform=macos → platform=macOS,name=Any Mac https://claude.ai/code/session_01Co99HifGEQoRQSwnTAatkJ
Required OS Version is always shown unconditionally (same as LeftSide.swift). Remove the non-existent UserInterfaceVariables.showRequiredOSVersion guard. https://claude.ai/code/session_01Co99HifGEQoRQSwnTAatkJ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds Ukrainian (uk) language localization support to Nudge and implements a conditional display for the remaining time to update view in Simple Mode.
Key Changes
Language Support: Added complete Ukrainian translations for:
UI Enhancement: Modified SimpleMode view to conditionally display the remaining time view based on the
UserInterfaceVariables.showDaysRemainingToUpdateflag, allowing administrators to hide the countdown timer when desiredConfiguration Files: Updated both JSON and mobileconfig example asset files with Ukrainian language entries for consistency
Implementation Details
The remaining time view is now wrapped in a conditional check, respecting the
showDaysRemainingToUpdateconfiguration variable. This provides more flexibility in UI customization while maintaining backward compatibility.https://claude.ai/code/session_01Co99HifGEQoRQSwnTAatkJ