Translation Improvements in Vanilla 2

< 1 minute read

March 31, 2010

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.


Share Your Thoughts

Your email address will not be published. Required fields are marked *

Mark O'Sullivan

Written by Mark O'Sullivan

Have an Article for Vanilla's Blog?

Send us an email to [email protected] with your topic idea and we'll circle back with our publishing guidelines.

Subscribe to the Community Corner Newsletter and get expert insight and analysis on how to get the most out of your online community every Friday.
[contact-form-7 id="5700" title="Newsletter Form"]

Request a Demo

Schedule a product demo now.

Contact Us