We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4f720c commit 51b637aCopy full SHA for 51b637a
wcfsetup/install/files/lib/system/gridView/admin/LanguageGridView.class.php
@@ -50,7 +50,25 @@ public function __construct()
50
->label('wcf.global.name')
51
->filter(new TextFilter())
52
->titleColumn()
53
- ->sortable(),
+ ->sortable()
54
+ ->renderer([
55
+ new class extends DefaultColumnRenderer {
56
+ #[\Override]
57
+ public function render(mixed $value, DatabaseObject $row): string
58
+ {
59
+ \assert($row instanceof Language);
60
+
61
+ if ($row->isDefault) {
62
+ $value .= \sprintf(
63
+ ' <span class="badge">%s</span>',
64
+ WCF::getLanguage()->get('wcf.global.defaultValue')
65
+ );
66
+ }
67
68
+ return $value;
69
70
+ },
71
+ ]),
72
GridViewColumn::for('languageCode')
73
->label('wcf.acp.language.code')
74
0 commit comments