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).
Solution:Jump to 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...
4 Replies
I think i did it by extending the activityaction class with my own because those strings are hard coded iirc
Can you explain to me how to do this?
I extend the classe and do what? Do I override the methods?
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...
Dude, thanks, I'll test it and then give feedback here.