39 votes
Accepted

How to add translations for new words in Magento?

For this: <?php echo Mage::helper('catalog')->__('Text here');?> Add like: app/locale/{lang_ISO}/Mage_Catalog.csv "Text here","Translation here" For this: <?php echo $this->__('...
user avatar
  • 4,780
30 votes
Accepted

Why does my translate.csv and the translation files not work?

In some instances, Magento has multiple modules trying to translate the same item. Take Add to Cart for example. In Magento the modules Mage_Catalog, Mage_Checkout, Mage_Reports, Mage_Sales, Mage_Tag, ...
user avatar
  • 11.7k
25 votes
Accepted

Why do classes use a helper for translation instead of $this?

Just theorizing, but when you call $this->__('Foo') in a template, which module's CSV translation file will Magento use to translate Foo? It's not always clear which module's translation ...
user avatar
  • 43.8k
24 votes
Accepted

Magento 2: what does i18n mean?

Wikipedia answered my question: Internationalization and localization The terms are frequently abbreviated to the numeronyms i18n (where 18 stands for the number of letters between the first ...
user avatar
23 votes
Accepted

Magento 2 Translations not working

Create a directory app/i18n/Vendorname/en_US Issue command: bin/magento i18n:collect-phrases --output "app/i18n/Vendorname/en_US/en_US.csv" --magento This will collect all the translatable phrases ...
user avatar
  • 2,938
20 votes

Why do classes use a helper for translation instead of $this?

Because you want to use an explicit module. If you use $this->__() in a block context, the module of the block is used for translation. So if you want to use a special module, then you have to use ...
user avatar
19 votes
Accepted

"Special Price" is not translated

The definitive answer to this question is that Special Price is an attribute. You can simply translate the Special Price price-label from your Magento Admin Panel, just go to Catalog > Attributes ...
user avatar
  • 3,602
17 votes
Accepted

Managing Magento csv Translation Files

Try this. To sum, specify an additional translation file under the core module's translation XPath and place your overriding CSV pairs in there. <frontend> <translate> <...
user avatar
  • 16.6k
17 votes
Accepted

Magento2: List translation strings from a module

Magento 2 already has a command that can collect all the texts from a certain folder that are translatable. Since one module can mean 1 folder, let's say your module name is app/code/Vendor/Module you ...
user avatar
  • 196k
16 votes

Managing Magento csv Translation Files

Beside the translate.csv and the non-portable inline translate there is an other way. I do it like this. Each module supports more than one translation file. If you add this in config.xml: ...
user avatar
  • 196k
16 votes
Accepted

How to override translate csv files in magento2

You have to just override the en_US.csv file into your theme i18n folder. app/design/frontend/{Vendorname}/{themename}/i18n/en_US.csv
user avatar
14 votes

How to implement translations in design template package CSV's? How does echo $this->__('Text') work?

Translation Sources Translations are merged from different sources: Module translations from the respective XML files, theme translations from the translate.csv of the current theme, and inline ...
user avatar
14 votes
Accepted

Translation doesn't work on breadcrumbs added by xml

To translate a crumb without using a helper, you can use the translate attribute for your action node by using crumbInfo.label and crumbInfo.title. Exemple: <reference name="breadcrumbs"> &...
user avatar
13 votes

How do you add translation for extensions in Magento2?

I assume you mean IWD OPC? If not you can ignore this answer. The checkout extension ships without translations. It should be fairly easy to generate those. First, you need to create i18n directory ...
user avatar
  • 910
12 votes

How to override translate csv files in magento2

Create a en_US.csv file in this path. app/design/frontend/Vendor/Theme/i18n/en_US.csv Put your changes in this file. Clear cache (bin/magento cache:clean) and check your changes.
user avatar
10 votes
Accepted

Translate Maintenance mode per website in multiwebsite-multidomain setup

By default Magento doesn't support translation out-of-box for error pages, and requires some customizations to allow for such features. So technically there is no proper way to do such. Since the ...
user avatar
  • 8,287
10 votes
Accepted

Magento2 localisation Javascript

Not sure if you figured it out already, but I thought I'd answer anyway.. I guess the other answers are heading in the right direction. Assuming you already have the translations installed, if not ...
user avatar
9 votes

Managing Magento csv Translation Files

CSV files located in app/locale should be regarded as core files and not modified. I find that the best way to add custom translation is to put them into app/design/frontend/{package}/{theme}/locale/{...
user avatar
  • 3,405
9 votes

Why do classes use a helper for translation instead of $this?

Basically I'm going to say the same thing as the other guys said. If you use Mage::helper(...) you make sure that a specific helper is used for translation. For example let's take the ...
user avatar
  • 196k
9 votes
Accepted

Update customer gender translations

The gender attribute is a dropdown attribute like any other one. Its labels are stored in the table eav_attribute_option_value. But since there is no (out of the box) way to manage from the backend ...
user avatar
  • 196k
9 votes

Inline translation tool is not working and i can't enable it

Make sure, that you have nothing entered in System > Configuration > developer > Developer Restriction > Allowed IPs or if you have, that your ip is part of it.
user avatar
9 votes
Accepted

Magento 2 : How to install new language pack

I have done by just using below command for it composer require splendidinternet/mage2-locale-de-de php bin/magento setup:upgrade php bin/magento setup:static-content:deploy de_DE Note : commands ...
user avatar
8 votes

Why does my translate.csv and the translation files not work?

There could be any reason below, or a combination of many. So I write down all of them: There must be a store view for German language (System > Manage Stores); Go to System > Configuration > General ...
user avatar
  • 3,405
8 votes
Accepted

Translation function with multiple variables doesn't work

Magento uses PHPs vsprintf method. So instead of %1$s you'll have to use %1\$s
user avatar
  • 37.4k
8 votes

Current Store View configurable products option label translation

Question is a little bit older, but i had the same problem! And maybe there are some others :-) So, my solution: Go to Catalog -> Manage Products and edit your super product. Goto Tab Associated ...
user avatar
  • 181
8 votes
Accepted

How does translation scope work in Magento 2?

Does this mean there is no such thing as a module scope anymore? Yes If so, what happens if two different modules define different translations for one string? Magento 2 load translation from ...
user avatar
  • 20.3k
8 votes

How to translate module with i18n

Translation file path should be app/code/My_vendor/My_module/i18n/jp_JP.csv You should write a translate text code in your controller app/code/<My_vendor>/<My_module>/Controller/...
user avatar
7 votes
Accepted

How to translate within observer

Instead of using $this->__('something to translate'), use Mage::helper('modulename')->__('something to translate') I searched the Magento codebase further and there are examples of this being ...
user avatar
  • 406
7 votes
Accepted

Magento 1: Use of <![CDATA in the system configuration XML

You should use CDATA to ensure the text inside it is not interpreted as XML/HTML. But nobody restricts you to use it for every text tag. The fact there is one or more uses of CDATA without having ...
user avatar
  • 196k
7 votes

Magento 2: Change Text On Checkout Page

To Change label, You need to copy following file to your theme folder. <magento root>/vendor/magento/module-checkout/view/frontend/web/js/view/shipping.js Now copy this file to following. &...
user avatar
  • 1,164

Only top scored, non community-wiki answers of a minimum length are eligible