04.07.2019 Views

frontend-developer-1

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Implement Internationalization of Frontend Pages<br />

Understand the pros and cons of applying translations via the<br />

translate.csv file versus the core_translate table. In what priority<br />

are translations applied?<br />

Any translations found in the translate.csv are easily replicated to other<br />

instances where this file is utilized. However updating a file is usually less<br />

convenient than using the translate inline feature for the Magento <strong>frontend</strong>.<br />

Translations are applied in this order:<br />

1. Module translations<br />

2. Theme translations<br />

3. Translation package<br />

4. Database translations<br />

As a result, database translation is good for overriding other translations where<br />

necessary.<br />

9.2 TRANSLATE THEME STRINGS FOR<br />

.PHTML, EMAILS, UI COMPONENTS, .JS FILES<br />

PHTML:<br />

<br />

<br />

Copyright © 2018, SwiftOtter, Inc.<br />

146

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!