Magento 1.9: Basic Ways to Provide a Translation

Magento 1.9: Basic Ways to Provide a Translation

The article is about the basic ways to translate text as well as components in Magento 1.9. Additionally, it includes locale settings configuration and currencies for specific stores. Hope you’ll able to apply the knowledge as it’s written in a clear manner and verified by pictures.

Translation priority

1. The database table core_translate
The method is considered to be a top priority, as the translation is provided in the admin panel and stored in the table core_translate:

Magento 1.9 Basic Ways to Provide a Translation_1_1

Here is the same inline translation via the admin panel:

Magento 1.9 Basic Ways to Provide a Translation_2_1

As for the advantages of the method, there’s no need to use additional tools (e.x. FTP clients) and website directory structure. All you need is to go to the admin panel and enable inline-translation: System->Configuration->Developer->Translate inline . Then you should get the necessary phrase edited on front end.

2. Theme locate translate.csv file
The method is the second preferred one. The point is that translation is provided via CSV files which are placed:

How to apply a module scope to translation

In order to apply a module scope to translation, you need to go the module configuration. As an example, you can see our module Promotional Banner

The code structure is much the same:

area is frontend or adminhtml.

We’re considering the translation for adminhtml:

This is the pathname where csv is to be added:

Then add the following lines:

Clear cache:

System->Cache management

Magento 1.9 Basic Ways to Provide a Translation_3

As a result, your translation is displayed in the admin panel. In fact, you can do it with any module. More information you can find in the article: Internationalization (Magento Certified Developer Exam).

The inline translation feature

In order to enable inline translation, you need to go to System->configuration->advanced->developer and fill in the fields as it’s shown in the picture:

Magento 1.9 Basic Ways to Provide a Translation_4

Here you can choose the appropriate language:

Magento 1.9 Basic Ways to Provide a Translation_5

In order to enable inline translation for a specific language, you should head over to front page. Here you can see the text encircled by a dotted line. When mousing over, there’s a dictionary appeared, click on it and see the following:

Magento 1.9 Basic Ways to Provide a Translation_6

Tick off the point “Store View Specific” and enter translation into input.text. Press the button “Save” and refresh the page to see the translation:

Magento 1.9 Basic Ways to Provide a Translation_7

Configure time zones and locale settings using the admin panel

In order to configure time zones, you need to go to System->configuration->general->Locale Options, choose the time zone and save it. In case you want to change locale setting for a specific store, you need to select the option leftward

Magento 1.9 Basic Ways to Provide a Translation_7_1

and change locale settings:

Magento 1.9 Basic Ways to Provide a Translation_8

Configure currencies

In order to configure currencies, you need to go to System->configuration->Currency Setup and there select the necessary currency (default currency and allowed currencies) as it is shown in the picture. If you want to choose several currencies in allowed currencies field, you need to press Ctrl and select the necessary ones.

Magento 1.9 Basic Ways to Provide a Translation_9

Then go to the left panel with default settings. Go to Catalog and look for the section Price. It looks like that:

Magento 1.9 Basic Ways to Provide a Translation_10

Then apply the currency for a specific store.



Post a new comment

top
BelVG Newsletter
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.
Email *