Contents
Where are the translation dictionaries located in Magento?
The Magento code base has the necessary translation dictionaries for a language. This language is configured by the store administrator to be used in specified scope (that is, storefront). The Magento application automatically assembles translation dictionaries located in the modules’ i18n directory into a dictionary per language.
What does a language package do in Magento?
When localizing Magento, you replace these strings with translation dictionary content. A language package is basically a collection of translation dictionaries for a particular language together with meta-information.
How to translate from English to German in Magento?
Sample translation from English ( en_US) to German ( de_DE ): UI text strings are the text elements in the Magento Admin, including field names, instructions, notifications, and table and grid labels. When localizing Magento, you replace these strings with translation dictionary content.
Can You inline translate a word in Magento?
Only one variant of translation can be used for a word or phrase in a package. Otherwise, Magento returns an error. Anyone can submit inline translations on the storefront using the Text Editor. These inline translations overwrite a dictionary and save to your database (not in an instance’s dictionary).
How does Google Translate translate words to English?
Google’s free service instantly translates words, phrases, and web pages between English and over 100 other languages.
How to install Arabic language pack for Magento 2?
If you want to install manually, just download .zip or tar.gz version to your computer, then install it on your Magento store. You can check the process status on Crowdin . Help the Magento Community by contributing translation to this project. It’s time to activate the language pack for your Magento 2 store.
How to translate theme strings in Magento 2?
Then when a new language package is created and used to translate a store view, all theme strings are also translated. To ensure that your new string is added to the dictionary and translated, use the __ (‘ ‘) method when outputting a string in a .phtml template.
How to check for multiple languages in Magento?
Magento auto-discovers packages included in the i18n directory of a module or theme. When installing themes and extensions, consider checking for multiple language versions to download and use. An entire dictionary in one directory.
How to create a language pack from a translation dictionary?
To create a language pack from a translation dictionary, you must use the -m|–magento option. Use the following guidelines when translating words and phrases: Change the contents of the second column only. Translate the phrases from English ( US) to the desired language. When creating dictionaries for locales, use the default Magento strings.
What’s the difference between dictionaries and language packages?
Translation dictionaries, which are a convenient way to customize or translate some words and phrases, such as those for a custom module or theme. Language packages, which enable you to translate any or all words and phrases in the Magento application. See Translations overview.