Translation Improvements in Vanilla 2
Thanks to a ton of contributions we’ve been getting from the community developers, today we pushed a big set of changes around translations in Vanilla 2.
The first improvement is around date formatting. In order to allow multi-lingual date translations, we’ve moved the date definitions into the locale files, and now implemented php’s strftime function for date formats. You can check out these changes on our development branch of Vanilla 2.
The second improvement was to add a convenience function for performing translations. From now on you can use the T() function to perform translations. We’ve implemented this change across every single file in Vanilla 2. You do not need to worry about this change breaking your applications, plugins, or themes – as we’ve left the deprecated Translate() function in the core for the time being. Moving forward, however, you should switch it out with the T() convenience function.