Translate RelationManager Title
Hello there
I can't transalte the title of a RelationManager
in "CategoriesRelationManager" I tried :
1. public static function getPluralModelLabel(): string { return ('fields.categories'); }
2. public static ?string $pluralModelLabel = "Categorias"; 3. $table->recordTitle(fn (): string => "Categorias") 4. $table->recordTitle(fn (): string => ('fields.categories')) But " public static function getModelLabel(): string { return __('fields.category'); } " is working correctly. thanks for your help
2. public static ?string $pluralModelLabel = "Categorias"; 3. $table->recordTitle(fn (): string => "Categorias") 4. $table->recordTitle(fn (): string => ('fields.categories')) But " public static function getModelLabel(): string { return __('fields.category'); } " is working correctly. thanks for your help
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1172105397516107826/ksnip_20231109-102602.png)
5 Replies
Solution
As simple as that!
Great!
muito obrigado, Leandro!
thanks that also solved a problem I was having! Do you know by any change how you change the names of the relationships? (translate it)?
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1172119671982522448/image.png)
thanks that worked!