You've already forked Atomcms-edit
feat: add full i18n support to Commandocentrum
- Replace all hardcoded Dutch/English strings with __() translation calls - Update 13 Blade components to use translation keys - Update Commandocentrum.php controller with translation calls - Add comprehensive Dutch (nl.json) and English (en.json) translations - 150+ translation keys for UI labels, messages, and notifications - Supports all 21 languages available in the lang/ directory
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
<div style="background:#6366f115;padding:10px;border-radius:12px;">
|
||||
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#6366f1" stroke-width="2"><path d="M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z"/></svg>
|
||||
</div>
|
||||
<span style="font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#94a3b8;">PHP & Laravel</span>
|
||||
<span style="font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#94a3b8;">{{ __('commandocentrum.php_laravel') }}</span>
|
||||
</div>
|
||||
<div style="display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #f1f5f9;">
|
||||
<span style="color:#64748b;">PHP</span>
|
||||
@@ -32,14 +32,14 @@
|
||||
<div style="background:#ec489915;padding:10px;border-radius:12px;">
|
||||
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#ec4899" stroke-width="2"><path d="M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4"/></svg>
|
||||
</div>
|
||||
<span style="font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#94a3b8;">Memory & Disk</span>
|
||||
<span style="font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#94a3b8;">{{ __('commandocentrum.memory_disk') }}</span>
|
||||
</div>
|
||||
<div style="display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #f1f5f9;">
|
||||
<span style="color:#64748b;">Memory</span>
|
||||
<span style="color:#64748b;">{{ __('commandocentrum.memory') }}</span>
|
||||
<span style="font-weight:600;color:#ec4899;">{{ $memoryUsage }}MB / {{ $memoryLimit }}</span>
|
||||
</div>
|
||||
<div style="display:flex;justify-content:space-between;padding:8px 0;">
|
||||
<span style="color:#64748b;">Disk</span>
|
||||
<span style="color:#64748b;">{{ __('commandocentrum.disk') }}</span>
|
||||
<span style="font-weight:600;color:#ec4899;">{{ $diskUsage }}</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -48,7 +48,7 @@
|
||||
<div style="background:#22c55e15;padding:10px;border-radius:12px;">
|
||||
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#22c55e" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="M12 6v6l4 2"/></svg>
|
||||
</div>
|
||||
<span style="font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#94a3b8;">Uptime</span>
|
||||
<span style="font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#94a3b8;">{{ __('commandocentrum.uptime') }}</span>
|
||||
</div>
|
||||
<div style="font-size:16px;font-weight:700;color:#22c55e;">{{ $uptime }}</div>
|
||||
</div>
|
||||
@@ -57,7 +57,7 @@
|
||||
<div style="background:#f59e0b15;padding:10px;border-radius:12px;">
|
||||
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#f59e0b" stroke-width="2"><path d="M13 10V3L4 14h7v7l9-11h-7z"/></svg>
|
||||
</div>
|
||||
<span style="font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#94a3b8;">Load</span>
|
||||
<span style="font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#94a3b8;">{{ __('commandocentrum.load') }}</span>
|
||||
</div>
|
||||
<div style="display:flex;gap:8px;">
|
||||
<div style="flex:1;text-align:center;padding:8px;background:#f8fafc;border-radius:8px;">
|
||||
|
||||
Reference in New Issue
Block a user