Skip to content

Add Ukrainian language support and conditional remaining time display#699

Open
girilovsky wants to merge 10 commits intomacadmins:mainfrom
girilovsky:claude/add-ukrainian-language-uAZbV
Open

Add Ukrainian language support and conditional remaining time display#699
girilovsky wants to merge 10 commits intomacadmins:mainfrom
girilovsky:claude/add-ukrainian-language-uAZbV

Conversation

@girilovsky
Copy link

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:

    • About update URL configuration
    • All UI strings including headers, buttons, and informational text
    • Fixed existing Ukrainian translation for "Important Notes" string in Localizable.xcstrings
  • UI Enhancement: Modified SimpleMode view to conditionally display the remaining time view based on the UserInterfaceVariables.showDaysRemainingToUpdate flag, allowing administrators to hide the countdown timer when desired

  • Configuration 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 showDaysRemainingToUpdate configuration variable. This provides more flexibility in UI customization while maintaining backward compatibility.

https://claude.ai/code/session_01Co99HifGEQoRQSwnTAatkJ

claude added 10 commits March 23, 2026 08:51
…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
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
Required OS Version is always shown unconditionally (same as LeftSide.swift).
Remove the non-existent UserInterfaceVariables.showRequiredOSVersion guard.

https://claude.ai/code/session_01Co99HifGEQoRQSwnTAatkJ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants