Repository navigation
Localize clock bar weekday/month names - #7173
dr-moreira wants to merge 0 commit into
Conversation
|
Thanks for this, @dr-moreira. I reviewed it at 8741b90 and ran it on a disposable Omarchy worker. The change does what it says, but it reverses a decision that is already on What ran. I loaded the real clock Why it is waiting. #6988, merged on 15 August and already in this branch's base, made the shell English throughout on purpose. The comment at If localization is wanted after all, a few things need handling first:
Second opinion. Codex at medium effort reviewed the same diff and base history. It agreed that the English output is deliberate and not a bug, and that the description's claim about the panel does not hold at the base. It added the Polish case, and noted that Nothing was pushed to your branch. Whether the shell should follow the system locale is the maintainer's call, and this is waiting on them. |
8741b90 to
30f7a06
Compare
Summary
omarchy.clock's bar label formats dates withQt.formatDateTime(date, format), but that QML function always spells out day/month names (dddd,MMMM, ...) in English, regardless of the system locale — a known Qt quirk where format-string tokens ignoreQLocale.Qt.locale().toString(date, format), the locale-aware equivalent, so the bar clock shows day/month names in the user's configured locale (e.g. "domingo" instead of "Sunday" underpt_BR.UTF-8).Panel.qml) already does the right thing viaQt.locale().dayName(...); this brings the bar label in line with it.Test plan
bash test/shell.d/clock-test.shpassesqml6:Qt.formatDateTimeprintedSundaywhileQt.locale().toStringprinteddomingounderLANG=pt_BR.UTF-8omarchy.clockplugin) that the bar now shows the weekday name in Portuguese