Skip to content

feat(calagopus): add translation support (en, de) - #6

Merged
0x7d8 merged 5 commits into
calagopus:mainfrom
Partymann2000:language-sys
Nov 20, 2026
Merged

0x7d8 merged 5 commits into
calagopus:mainfrom
Partymann2000:language-sys

Conversation

@Partymann2000

Copy link
Copy Markdown
Contributor

Summary

Adds translation support to the Calagopus server extension. The client service view
(status, address, location, uptime, includes, resources) was hardcoded in English
and is now translatable.

Changes

  • Add lang/en/server.php and lang/de/server.php next to Calagopus.php
  • Register the calagopus lang namespace in Calagopus::boot()
  • ServerSummary: state labels, "Includes" labels and "Unlimited" now use
    translation keys. The state constants map to a tone only and the label is
    resolved via calagopus::server.states.<key>
  • server.blade.php: replace hardcoded strings (address, location, uptime,
    includes, memory, disk, cpu, copy/copied, notices) with __() calls

@0x7d8

0x7d8 commented Nov 13, 2026

Copy link
Copy Markdown
Member

please fix the lint CI check failure

@Partymann2000

Copy link
Copy Markdown
Contributor Author

now lint is fixed

@0x7d8
0x7d8 merged commit a4cf4a6 into calagopus:main Nov 20, 2026
3 checks passed
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