1

I'm currently studying for the MFC and I've downloaded the guide from Demac Media.

One of the question to ask yourself (from the official Magento study guide) is which methods are available for translation ?

And according to the Demac Media guide it is the following:

  • Inline translation
  • Locale translation files (translation.csv)
  • core_translate package
  • JavaScript translate.js

But to me this list does not make sense because I don't know what is the difference between inline translation and core_translate package ?

AFAIK, when you use the inline translation system in Magento 1, the translations are stored in the core_translate table.

  • I think core_translate package stand for theme translate , if we change theme it will change the translate on the other side db translate bases on the store – Murtuza Zabuawala Dec 6 '16 at 9:29
  • @MurtuzaZabuawala I don't think so. Theme translates are CSV files so it is number 2 in the list: Locale translation files – Raphael at Digital Pianism Dec 6 '16 at 9:30
  • You're missing the app/locale/[iso]/[Company_Module].csv files. – Julien Lachal Dec 6 '16 at 9:32
  • Then It would be module translation because that's the only thing left – Murtuza Zabuawala Dec 6 '16 at 9:32
  • 2
    Tbh I think you're not. Or if you are, we're all missing something ;) – Julien Lachal Dec 6 '16 at 10:10
2

After digging around, to me this is clearly a mistake. Here are the several types of translations available:

  • Inline translation : can be enabled via the backend. The translations are stored in the core_translate database table.
  • JavaScript translation: can be done via code such as Translator.add('Text to Translate', <?php echo $this->__('Text to Translate'));
  • Global translation : can be done via CSV files stored under the app/locale folder.
  • Theme translation : can be dona via CSV files similar to the global method but stored in app/design/frontend/<your_package>/<your_theme>/locale/<lg_LG>/translate.csv
0

This Article explain very well: https://belvg.com/blog/magento-certified-developer-exam-internationalization.html

  1. Module translation

Module translations are stored in app/locale/languagecode_COUNTRYCODE/ folder in form of csv files, named as Namespace_Modulename.csv All string in extensions that are inside __() method can be translated this way

  1. Theme translation

Strings can be translated inside your theme, for that you just need to set locale via Magento admin area, then create translate.csv in app/design/frontend///locale/ languagecode_COUNTRYCODE and put your translated strings inside this CSV

“My Cart”,”My Basket”

“My Account”,”Account”

There are a lot of tips&tricks that can be described on this subject (module and theme translations), so I feel like they deserve an individual article. Stay tuned!

  1. Inline translation

To enable inline translation you need to log into Admin panel and go to System -> Configuration -> Developer.

You need to select Store view from scope select and enable inline translation for this desired store view there.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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