1

I've seen many examples like this one about how to do per-module translations. It looks like this:

"Product Name","Items in Your Cart"

becomes

"Mage_Checkout::Product Name","Items in Your Cart"

However, in all of the versions of Magento I've tried it on, (1.7.0.0, 1.9.1.0 and 1.14.0.0) this doesn't work.

Is this for an outdated version of Magento, or am I doing something wrong?

1 Answer 1

2

You should probably only ever use module prefixes whenever there are conflicts between translations, and only in translate.csv. Also, when developer mode is enabled and there is a conflict, the string is not translated at all.

For more information, see the excellent exposition on Magento translations by Vinai.

2
  • Nicely answered. Thanks for contributing!
    – philwinkle
    Commented May 8, 2015 at 16:50
  • You're welcome. Thank you for the entertaining podcast! Commented May 8, 2015 at 16:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.