Multi User - Translating to Other Languages and Changing Front-end labels
Translating to other Languages
In order to reach out to customers from all over the world, it's possible to localize your CreativeMinds Magento extension to as many languages as you want. To do this, follow the following steps:
Method 1 - Modifying the module terms CSV
1) Find the file which contains the plugin text
This file is named Cminds_ MultiUserAccounts.csv. It's located in this directory:
app/locale/en_US/Cminds_MultiUserAccounts.csv
2) Open the file as a table (optional)
Cminds_ MultiUserAccounts.csv is a CSV file, which stands for Comma Separated Values. This kind of format can be read by much common software, such as Notepad, Microsoft Excel and Numbers for iOS. You can open it as text, but, by using a spreadsheet editor you are able to modify the values in a more visually pleasing way. See below the difference of opening with a text editor (left) and a spreadsheet editor (right):
3) Edit the file
The table has two columns and several rows. The items in the left represent terms or phrases in the default language of the extension - this column should not be edited.
The column in the right has the information that should be translated to the new idiom - when you or the user changes the extension's language, the extension will fetch information from these lines. The following example shows a sample of a Portuguese edition:
4) Save the file in the right folder
Once the editing is complete, save the new Cminds_ MultiUserAccounts.CSV file in the following path:
app/locale/xx_YY/
You must replace "xx" with the code for the language and "YY" with the country code. Examples: en_US, en_UK, pt_BR, pt_PT, es_ES, fr_FR, it_IT. If that folder doesn't exist, you can create it. You can find a complete list of the language codes (standard ISO 639-1) here and the country codes (ISO 3166-1) here.
One thing to keep in mind: many software will, by default, save the file in a different format, such as .txt, .xls or .number. Be sure that a CSV was generated by using save as or export options.
5) Create a store view for the new language
Magento makes it easy to manage multiple language settings with the Store View feature. Different Store Views share most of the settings, such as the catalog of products and customer groups, but can have unique visuals, like the language that it's displayed for the user. Learn more about the different Store features by referring to the official guide.
To create a Store View with your new language, head to your dashboard and click System → Manage Stores. Then, click Create Store View.
Input values that will help you organizing the store.
6) Configure the new Store View to Display the Translated Language
Now, head over to System → Configuration and choose your new Store View in the box on the Current Configuration Scope field:
Now that you are editing the Store View, you can select its translations by heading to System → Configuration → General → Design → Themes and then writing the desired codes. If there are multiple translations, they should be separated by commas, as in "enUS, pt_BR".
Return to the Front-end to check the changes have come into effect, you will need to clear your cache first.
For additional tips, you can check the article Best Translation Practices by Magento.
Get more information about the Multi-User extension for Magento. Find other Magento products at the CreativeMinds Magento Store. |
|
Let us know how we can Improve this Product Documentation Page. To open a Support Ticket visit our support center. |