Nico Knoll Posted May 24, 2014 Share Posted May 24, 2014 Hey, I used the ToolsTimeFormat module some time ago. Now I saw wireRelativeTimeStr() for the first time - and it seems like doing the same thing. Is there any difference? When was this function added? And how about multilanguage support in this function? -- Nico Link to comment Share on other sites More sharing options...
ryan Posted May 24, 2014 Share Posted May 24, 2014 wireRelativeTimeStr() has been there since PW 2.3 if I recall correctly. All the words in it are translatable via the translation tool pointed at /wire/core/Functions.php. 2 Link to comment Share on other sites More sharing options...
Pete Posted May 24, 2014 Share Posted May 24, 2014 Relative time was introduced in 2.3: http://processwire.com/about/news/introducing-processwire-2.3/ Not sure about the differences as I've not checked out the other module. EDIT: Oooh he beat me to it by seconds 1 Link to comment Share on other sites More sharing options...
Adam Kiss Posted June 18, 2014 Share Posted June 18, 2014 Hm, another abandonware by me ^^ D'oh! It was 2.3, I've just finished this module and like few days later Ryan introduced in the core. Darn! Link to comment Share on other sites More sharing options...
Can Posted July 25, 2015 Share Posted July 25, 2015 May I use this thread because Nico asked about translatability for wireRelativeTimeStr Just wanted to "complain" about the translation of this function, but after rechecking the translation file in back end, wondering about "Q P T", checking code again, try to reorder Q P T in german to "T Q P" et voilà it's exactly like it should be in german, at least for my thinking ;-) Never stumbled upon such a way, but I really like it. Ryan you genious! Link to comment Share on other sites More sharing options...
Recommended Posts