src/Ui/ControlPanel/Component/Button/Guesser/TextGuesser.php 1 location
|
@@ 117-122 (lines=6) @@
|
114 |
|
$button['text'] = $text; |
115 |
|
} |
116 |
|
|
117 |
|
if ( |
118 |
|
(!isset($button['text']) || !$this->translator->has($button['text'])) |
119 |
|
&& $this->config->get('streams::locales.lazy') |
120 |
|
) { |
121 |
|
$button['text'] = $this->string->humanize(array_get($button, 'slug', $button['button'])); |
122 |
|
} |
123 |
|
} |
124 |
|
|
125 |
|
$builder->setButtons($buttons); |
src/Ui/Table/Component/Header/Guesser/HeadingsGuesser.php 1 location
|
@@ 192-199 (lines=8) @@
|
189 |
|
* the heading does not have a translation |
190 |
|
* then humanize the heading value. |
191 |
|
*/ |
192 |
|
if ( |
193 |
|
isset($column['heading']) && |
194 |
|
str_is('*.*.*::*', $column['heading']) && |
195 |
|
!$this->translator->has($column['heading']) && |
196 |
|
$this->config->get('streams::locales.lazy') |
197 |
|
) { |
198 |
|
$column['heading'] = $this->string->humanize($column['field']); |
199 |
|
} |
200 |
|
|
201 |
|
/** |
202 |
|
* Last resort. |