Book Image

Learning Magento Theme Development

By : Richard Carter
Book Image

Learning Magento Theme Development

By: Richard Carter

Overview of this book

Table of Contents (15 chapters)
Learning Magento Theme Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Using locales to translate phrases in your store


Magento supports multilingual stores, and offers locale files to allow content in the interface to be translated. Page and product content is translated through Magento's administration panel (for example, you will have an English "terms and conditions" page and a separate "terms and conditions" page for the French version of your store). Interface labels—such as the text in buttons and the user bar—can be translated by adding a locale file to your Magento theme.

At the moment, our Magento theme displays the text as Add to Cart on the product screen:

By using Magento locale files, you can change the wording to something more appropriate for your store; in the following example, Add to Cart will be changed to Add to basket.

Creating a Magento locale file

A Magento locale file is a Comma Separate Values (CSV) file, which contains alternate translations for specified labels in your store's interface. The default text for this phrase is in the left...