snippets

Translate JavaScript strings in Magento [1.7+]

Magento is very good in managing translations on multi language shops, out of the box you get very easy translation using CSV files, but that works great only in PHP. Translating JavaScript strings like validation messages or alert boxes was little tricky and required adding inline JavaScript code which is not very good idea because it can be lost later with editing/upgrading template files or changing template.

Subscribe to RSS - snippets