i18n(calendar-board): translate mechanic specialization tokens in matrix + legend

Both the row-meta on the master matrix rows and the legend list at
the bottom split specialization by '/' and translate each token via
__(), matching the pattern already used on Reports.php.

'Suspensie / Frâne' → «Подвеска / Тормоза», 'Motor / Cutie viteze' →
«Двигатель / КПП» etc. (all tokens already in the dict).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-26 10:37:58 +00:00
parent 8228689580
commit 8b77d8ae7e
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -169,7 +169,9 @@ class CalendarBoard extends Page
'id' => $u->id,
'name' => $u->name,
'color' => $u->color ?: '#3b82f6',
'meta' => $u->specialization ?: ('8' . __('h/zi')),
'meta' => $u->specialization
? implode(' / ', array_map(fn ($p) => __(trim($p)), explode('/', $u->specialization)))
: ('8' . __('h/zi')),
'capacity_hours' => 8.0,
])->all();
// Always include "Fără maistru" row at the bottom