elabx Posted March 7, 2019 Share Posted March 7, 2019 Is it possible to get output on another language the relative dates on lister fields (like modifed, creation date)? Link to comment Share on other sites More sharing options...
Robin S Posted March 7, 2019 Share Posted March 7, 2019 The relative dates will come via WireDateTime::relativeTimeStr(). Quote This method also supports multi-language and will output in the current user's language, so long as the phrases in /wire/core/WireDateTime.php are translated in the language pack. 1 1 Link to comment Share on other sites More sharing options...
Zeka Posted March 7, 2019 Share Posted March 7, 2019 @elabx https://github.com/processwire/processwire-issues/issues/793 3 Link to comment Share on other sites More sharing options...
elabx Posted March 7, 2019 Author Share Posted March 7, 2019 41 minutes ago, Zeka said: @elabx https://github.com/processwire/processwire-issues/issues/793 Interesting read, thanks! Great to know it's hookable. I was also gladly susprised that there was a way to specify the order of the words in the relative time output, that sealed the deal! 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now