Today the WordPress authority Otto (a.k.a. Samuel Wood), came with an article titled Internationalization: You’re probably doing it wrong.
In it he lays out the 3 laws of internationalization.
In short – do read the details with coding examples on Ottopress – the 3 laws are:
- don’t use PHP variables inside a translation function’s strings
- translate phrases, not words
- disambiguate when needed
In the comments Otto even suggests that number_format_i18n() could be added as the 4th law.
I must say that I am very happy that people are becoming more i18n aware – it’s about time – and if people like Otto start writing about it, then you can count on it that this is not something that is going away!top