Repository navigation
Keep the calendar's day names in English - #6988
Merged
Merged
Conversation
The calendar grid's header row and the week-start toggle label were the only text in the shell that followed the system locale, so a German desktop drew MO DI MI over an interface that is English everywhere else. Nothing chose that; they were the only two places reading day names off Qt.locale(). Take them from en_US instead. Where the week starts still follows the locale: that is a regional convention rather than a translation, and it stays overridable through weekStartDay. Dropping the trailing-period strip with it, since that existed only for the locales this no longer renders. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This was referenced Aug 15, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Keeps calendar weekday labels in English while preserving locale-based week-start behavior.
Changes:
- Uses
en_USfor displayed day names. - Removes locale-specific trailing-period handling.
Tip
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+70
to
+71
| readonly property var labelLocale: Qt.locale("en_US") | ||
| readonly property string nextWeekStartLabel: labelLocale.dayName(Model.toggledWeekStart(weekStart), Locale.LongFormat) |
3 tasks done
dhh
added a commit
that referenced
this pull request
Aug 23, 2026
The calendar grid's header row and the week-start toggle label were the only text in the shell that followed the system locale, so a German desktop drew MO DI MI over an interface that is English everywhere else. Nothing chose that; they were the only two places reading day names off Qt.locale(). Take them from en_US instead. Where the week starts still follows the locale: that is a regional convention rather than a translation, and it stays overridable through weekStartDay. Dropping the trailing-period strip with it, since that existed only for the locales this no longer renders. Co-authored-by: Claude Opus 5 <noreply@anthropic.com> (cherry picked from commit 25bee1d)
Closed
nick1udwig
pushed a commit
to nick1udwig/omarchy
that referenced
this pull request
Sep 9, 2026
The calendar grid's header row and the week-start toggle label were the only text in the shell that followed the system locale, so a German desktop drew MO DI MI over an interface that is English everywhere else. Nothing chose that; they were the only two places reading day names off Qt.locale(). Take them from en_US instead. Where the week starts still follows the locale: that is a regional convention rather than a translation, and it stays overridable through weekStartDay. Dropping the trailing-period strip with it, since that existed only for the locales this no longer renders. Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
3 tasks done
This was referenced Oct 7, 2026
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.
The shell is English throughout, so anything currently following the system locale is doing it by accident. I went looking for what that covers.
Two places, both in the clock panel, were reading day names off
Qt.locale():weekdayLabel)nextWeekStartLabel)On a German desktop those drew
MO DI MI DO FR SA SOand "Montag" over an interface that is English everywhere else. They take their names fromen_USnow.Where the week starts is deliberately left alone.
firstDayOfWeekis a regional convention rather than a translation — and it is not interchangeable here: the system and C locales report Monday whileen_USreports Sunday, so routing it through the same locale would have quietly moved every user's calendar to a Sunday start. It also remains overridable throughweekStartDay.The trailing-period strip goes with the change; it existed only for locales like
man.that this no longer renders.What else was checked
Everything else in
shell/is already consistent, mostly by accident rather than design:Qt.formatDate/Qt.formatDateTimerenderdddd/MMMMfrom the C locale regardless ofQt.locale(), so the bar clock, the calendar's month headings and the weather day names are already English.agents/Panel.qmluses a hardcoded English array.Qt.locale()survives in two more spots, both regional conventions with an explicit user setting rather than translated text: the week start above, and the weather panel's imperial/metric default.localeCompareappears in a few sort comparators. That is ordering, not displayed text, so I left it.Verified
Rendered the header row, the toggle label and the month headings under
C,de_DE.UTF-8andfr_FR.UTF-8: identical English output in all three (MON TUE WED THU FRI SAT SUN,Sunday/Monday,DECEMBER 2026), withfirstDayOfWeekstill reporting the locale's own value.Supersedes #6941, which went the other way and localized the bar clock to match the calendar. Closing that one — this is the direction that matches the rest of the OS, and a real system-wide translation is a separate future project.
— 🤖 Claude, posting on behalf of @dhh