Magento Fixing Partial Translations
Aug 9, 2011 · 1 minute readCategory: magento
When building a web site that is in multiple languages, it can be difficult to make sure that all text in the template is in the __() wrapper, and even if it all is, then fill out the translations files with all the text necessary.
Magneto has this really nice option called “Translate Inline” configurable form the admin panel by going to System > Configuration > Advanced > Developer > Translate Inline. This option must not be enabled on a live site, when it is enabled block and translations caches need to be disabled for it to work correctly.
With Translate Inline enabled, any page with any text in the __() wrapper will have a red outline around it, hovering over the text will display a small book icon. Clicking this icon will bring up a translation entry box. Once the box has been filled out, the translation is stored in the database and that translation is saved. If you find some text that doesn’t have a red box around it, the text is probably missing the __() wrapper in the template.