You can customize your web-to-print Magento store with additional language options. Users will be able to choose the language they prefer from a list of translations you provide.
This post explains how to create a localized version of our web-to-print Magento store and give customers the option of viewing it in their own language (ex. Macedonian). You need to perform the following steps:
- create a new store view
- create a new locale
- save the locale
- download the locale files
- translate the contents of the files
- re-index data
Create additional store view
Navigate to System/Manage store in your Magento administration panel and click on Create Store View button in the top right corner.
- Chose a store that you wish the additional store view applied to;
- Input the name (language) for the custom store view. This is what users will see in the list of languages.
- Input the code for the new language;
- Enable the store view;
- Click Save Store View in the top right corner.
In the General tab of the configuration page, set the new language in the Locale field and click Save Config.
You have now created a new, localized store view for your Magento web-to-print store.
Translate your store
The most important part of the localization is translating the text. This is a simple procedure that requires editing a CSV file with a simple text editor. You can edit existing CSV files found in our SVN repository.
Download the CSV file and open it with a text editing application (Notepad, Notepad++ etc.).
Built in locales
Our web-to-print extension for Magento comes built-in with the following locales:
- EN – English
- RU – Russian
- MK – Macedonian
- BG – Bulgarian (incomplete)
- DE – German (incomplete)
- ES – Spanish (incomplete)
Each button, link, text that appeared in your store after installing the Magento web-to-print extension is represented as a separate line inside the CSV file in the following format:
“In English”,”In other language”
Your job is to change the content inside the second set of “quotation marks” in your language for each line.
Translated strings cannot contain “double “quotes”".
Note. Save the file without changing its extension! The file name should be ZetaPrints_WebToPrint.csv
Upload the CSV file
Place the new CSV file in a folder named according to the short language code.
- Russian: ru_RU
- German: de_DE
- Macedonian: mk_MK
Magento store folder -> app -> locale
Web-to-print label translation
Label translation (titles of pages, titles of text and image fields, hints and predefined values in templates) is done separately from web-to-print extension interface translation that’s explained here.
Navigate to System/Index management in your Magento admin panel and run data re-index for all required indexes.