Skip to content

Translate the About box headings, keys, age, uptime and update date - #16560

Merged
dhh merged 3 commits into
quattrofrom
about-i18n
Oct 25, 2026
Merged

dhh merged 3 commits into
quattrofrom
about-i18n

Conversation

@dhh

@dhh dhh commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

The About screen (omarchy-launch-about, which runs fastfetch) was all English: the "Hardware", "Software" and "Age / Uptime / Update" headings, the "OS Age", "Uptime" and "Update" keys, "N days", fastfetch's own uptime text ("8 hours"), and the update date.

fastfetch has no i18n, so:

  • Rows (etc/fastfetch/config.jsonc): OS age prints about.days (a plural). Uptime is now a command module that reuses the existing short-duration keys (%1d %2h, %1h %2m, %1m). omarchy-version-pkgs writes the date with LC_TIME="$(omarchy-language locale)", following omarchy-notification-time, and joins it with about.updatedAt ("%1 at %2"). These also apply when someone runs plain fastfetch.
  • Headings and keys: omarchy-launch-about writes a copy of the config to $XDG_RUNTIME_DIR/omarchy/about-fastfetch.jsonc, with headings re-centred by display width (CJK titles keep the box 54 columns wide) and keys in the current language. It runs fastfetch with -c on that copy in all three places it calls fastfetch. A user's own fastfetch config still runs untouched. Rows the copy doesn't recognise stay as they are.
  • The i18n test's key-reference scan now reads etc/**/*.jsonc.

English output changes slightly: the date reads "Saturday 24 October 2026 at 22:18" (day before month, as in omarchy-notification-time) rather than "Saturday, October 24 2026 at 22:18".

Tests:

  • test/shell.d/i18n-test.sh and test/shell.d/launch-about-test.sh pass, and extract-scan --check is clean.
  • A harness with stand-in Danish and Japanese strings rendered translated headings, keys and rows, with every box line at 54 columns.
  • test/shell.d/config-test.sh fails on a PKGBUILD/timesyncd check, and fails the same way on quattro, so it's unrelated.

🤖 Generated with Claude Code

fastfetch has no translations, so omarchy-launch-about runs a copy of
the config with the headings (re-centred by display width) and keys in
the current language, and the OS age, uptime and update rows print
through omarchy-i18n, the date in the language's locale.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; the previous headless-test failure is fixed.

Summary

Translates the About box headings, labels, age, uptime, and update date.

  • The About screen shows its headings and system details in Omarchy’s selected language.

Reviews (3) · Last reviewed commit: "Run the untranslated About config when t..." · Reviewed by Greptile

Comment thread bin/omarchy-launch-about Resolved
Comment thread bin/omarchy-launch-about Resolved
dhh and others added 2 commits October 25, 2026 05:30
fastfetch accepts JSONC but jq does not, so a comment or trailing comma
left an empty copy that the About screen then ran. Publish the copy
only when the conversion succeeds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The launcher read XDG_RUNTIME_DIR at the top level, so sourcing it under
set -u without one, as launch-about-test.sh does on a bare runner,
stopped on an unbound variable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dhh
dhh merged commit 344116a into quattro Oct 25, 2026
2 checks passed
@dhh
dhh deleted the about-i18n branch October 25, 2026 10:57
@emirb emirb added this to the 4.5 milestone Nov 5, 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.

2 participants