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 ...
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 ...
- 2,968
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 ...
- 3,602
18
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 ...
- 197k
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
- 41.7k
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">
&...
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 ...
- 65.3k
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 ...
- 930
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.
- 15.5k
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 ...
- 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 ...
- 1,009
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.
- 35.4k
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 ...
- 15.5k
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 ...
- 181
8
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 ...
- 197k
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/...
- 15.5k
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 ...
- 468
7
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 ...
- 20.5k
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.
&...
- 1,184
7
votes
Accepted
Magento 2: Translate input placeholder attribute string in Knockout html template
You can write like this
<input type="text" data-bind="attr:{placeholder: $t('Email')} " />
Run below commands
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
php ...
- 15.5k
6
votes
Accepted
How do I translate dynamic content, e.g "Only X left"
How is this being printed in your template? For a string to be translatable it needs to be passed through the translate function which is $this->__() within a block. This way you can use your ...
- 3,478
6
votes
Accepted
How to debug vsprintf() "Too few arguments" error in my log files?
As the other answer already stated, this is probably caused by too few arguments in a call to a translator method.
You have more %d or %s placeholders in the translations string then arguments passed ...
- 7,422
6
votes
Accepted
magento 2: 'i18n:collect-phrases' command creates different csv files
The CSV with 4 columns is the global CSV for all modules. That's why it contains 3rd column as module and 4th column as Module_Name.This file should be placed in i18n folder parallel to app.
The CSV ...
- 569
6
votes
Accepted
Magento 2 : Priority of translation, proper way
Currently, language pack translations have priority over theme translations.
This is going to be fixed in Magento 2.2, see https://github.com/magento/magento2/pull/7142
- 65.3k
5
votes
Magento - Rename Tax to GST
You have two options (modifying core files does not count)
Database based approach, using admin panel:
Use inline translations. In System > Configuration > Advanced > Developer you can ...
- 65.3k
5
votes
Remove var Translator = new Translate from <head> section
I have to agree with you that this is minimally not 'good' for SEO.
Magento has to make sure that inline JS is made to a bare minimun. That this is inline JS is just lazy programming.
We put this JS ...
5
votes
Accepted
Magento 2 - translating problem in JS templates
Ok, so finally got this resolved by creating a new language pack, modified certain template files and cleared all caches:
Created a new language pack:
created new folder inside app/i18n/< vendor >...
- 681
5
votes
Accepted
Translating the custom text in form.phtml file
You did not show, how you added the paragraph, but this is what it should look like so that it gets translated by Mage_Contacts.csv:
Mage::helper('contacts')->__('here is your paragraph');
- 65.3k
5
votes
Title tag in layout is not translated
It still does not seem possible to set a title in the head section and translate it, but you could create a custom customer_account_forgotpassword.xml to fix the issue with this code
<...
- 2,303
5
votes
How to add a new language - Magento 2.0.1
Step 1: collect the phrases
First, you need to find out the phrases that you need to translate.
You can do so by running:
php bin/magento i18n:collect-phrases -o "/path/to/magento2/app/i18n/vendor/...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
localisation × 460magento2 × 171
magento-1.9 × 89
translate × 36
magento-1 × 35
language × 35
inline-translations × 24
multistore × 20
magento-2.1 × 19
module × 19
i18n × 18
javascript × 16
magento-1.7 × 15
template × 14
csv × 14
magento-1.8 × 12
language-package × 12
store-view × 11
magento2.3 × 10
admin × 10
extensions × 10
locale × 10
js-translation × 10
magento2.2 × 9
theme × 9