Skip to content

Keep the calendar's day names in English - #6988

Merged
dhh merged 1 commit into
quattrofrom
fix-clock-english-daynames
Aug 15, 2026
Merged

dhh merged 1 commit into
quattrofrom
fix-clock-english-daynames

Conversation

@dhh

@dhh dhh commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

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():

  • the calendar grid's header row (weekdayLabel)
  • the label on the week-start toggle (nextWeekStartLabel)

On a German desktop those drew MO DI MI DO FR SA SO and "Montag" over an interface that is English everywhere else. They take their names from en_US now.

Where the week starts is deliberately left alone. firstDayOfWeek is a regional convention rather than a translation — and it is not interchangeable here: the system and C locales report Monday while en_US reports Sunday, so routing it through the same locale would have quietly moved every user's calendar to a Sunday start. It also remains overridable through weekStartDay.

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.formatDateTime render dddd/MMMM from the C locale regardless of Qt.locale(), so the bar clock, the calendar's month headings and the weather day names are already English.
  • agents/Panel.qml uses 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.
  • localeCompare appears 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-8 and fr_FR.UTF-8: identical English output in all three (MON TUE WED THU FRI SAT SUN, Sunday/Monday, DECEMBER 2026), with firstDayOfWeek still 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

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>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Keeps calendar weekday labels in English while preserving locale-based week-start behavior.

Changes:

  • Uses en_US for 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)
@dhh
dhh merged commit 25bee1d into quattro Aug 15, 2026
4 checks passed
@dhh
dhh deleted the fix-clock-english-daynames branch August 15, 2026 15:21
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)
@dhh dhh mentioned this pull request Aug 23, 2026
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>
@omarchybot omarchybot mentioned this pull request Sep 28, 2026
3 tasks done
@emirb emirb added this to the 4.5 milestone Oct 17, 2026
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.

3 participants