Troubles changing title name of a RelationshipManager to a __('lang') tag

I'm trying to put a ('lang.string') to a title in a RelationshipManager. When passing it by modelLabel or pluralModelLabel (now in $table builder), It doesn't translate. The thing is that title is static so putting the ('lang.sting') won't work. ¿Any ideas?
Solution:
```php public static function getTitle(Model $ownerRecord, string $pageClass): string { return __('abc'); }...
Jump to solution
2 Replies
Solution
Alvaro Leon
Alvaro Leon15mo ago
public static function getTitle(Model $ownerRecord, string $pageClass): string
{
return __('abc');
}
public static function getTitle(Model $ownerRecord, string $pageClass): string
{
return __('abc');
}
Thank you @Vp

Did you find this page helpful?