Log Translation (ActivityLog Rômulo Ramos)

How can I translate and humanize this screen? I tried using the php artisan vendor:publish And it didn't translate, even though it supports the pt-BR language. And how can I display variable labels instead of showing, for example, user.name (showing user).
No description
Solution:
Actually i copied this guys code https://github.com/rmsramos/activitylog/pull/71 he has changed the hardcoded strings to translate files among other features
GitHub
NEW FEATURES ( a lot of good stuff ) : added restore + a lot of cus...
updated lang files and timeline strings added restore event + made event name translatable being able to inject different calendar type, by passing closure in panelprovider being able to pass custo...
Jump to solution
4 Replies
Antea
Antea2w ago
I think i did it by extending the activityaction class with my own because those strings are hard coded iirc
Myster
MysterOP2w ago
Can you explain to me how to do this? I extend the classe and do what? Do I override the methods?
Solution
Antea
Antea2w ago
Actually i copied this guys code https://github.com/rmsramos/activitylog/pull/71 he has changed the hardcoded strings to translate files among other features
GitHub
NEW FEATURES ( a lot of good stuff ) : added restore + a lot of cus...
updated lang files and timeline strings added restore event + made event name translatable being able to inject different calendar type, by passing closure in panelprovider being able to pass custo...
Myster
MysterOP2w ago
Dude, thanks, I'll test it and then give feedback here.

Did you find this page helpful?