Skip to main content

All Questions

Filter by
Sorted by
Tagged with
29 votes
3 answers
32k views

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

I have a design package setup like so: design/frontend/package_name/theme_name/locale/ under which I have de_DE, en_GB etc, under which I have corresponding translate.csv files with the various ...
waffl's user avatar
  • 723
27 votes
2 answers
16k views

Magento2 translating Javascript (KO) template text

I am trying to add a translation for the text <!-- ko i18n: 'Store credit available' --><!-- /ko --> present in vendor/magento/module-customer-balance/view/frontend/web/template/payment/...
Atish Goswami's user avatar
24 votes
4 answers
57k views

How to add translations for new words in Magento?

I'm using English, Spanish and German as three store views for my site. What is the easiest way to add translations for new words? Even if I add new words with the translations it doesn't show in the ...
Sukeshini's user avatar
  • 9,975
12 votes
6 answers
48k views

Magento 2 Translations not working

I'm trying to translate some text in the checkout page: "Provided Zip/Postal Code seems to be invalid." However, when I add the following to frontend/..theme../Magento_Checkout/i18n/en_US.csv and ...
Cake's user avatar
  • 346
7 votes
2 answers
9k views

How does translation scope work in Magento 2?

In Magento 1 different modules could provide different translations for the same string and the various __() methods in helpers and blocks always passed a module scope to the translator model, to ...
Fabian Schmengler's user avatar
4 votes
3 answers
6k views

Magento - Rename Tax to GST

Throughout my Magento website, where there are products, I made it so that a customer can see the price of the products, with and without Tax. However, how can I rename the word 'Tax' to 'GST' ...
Sav's user avatar
  • 51
17 votes
4 answers
5k views

Magento2 localisation Javascript

A similar question was already asked here: Magento 2 javascript text translations, but Magento updated this translation technique in the beta version. How can I add or update translations used by ...
Silvan's user avatar
  • 1,357
2 votes
2 answers
4k views

Translation file magento 2 i18n

I'm trying to change "Excl. Tax:" to "Excl. Vat:" and have created a CSV file called en_GB.csv which contains the line - "Tax:", "Vat:". I've saved and uploaded this to app/design/frontend/Magento/...
Eddie's user avatar
  • 139
25 votes
4 answers
22k views

how to create multilingual static block

I need to create multilingual static block. So far I have created static block with id 'delivery_returns'. I'm calling it in catalog\product\view.phtml like this: $deliveryBlock = Mage::getModel('...
ruuter's user avatar
  • 1,079
8 votes
4 answers
6k views

How to know which translation csv file(s) are used in the current phtml file

Is there a method to know which translation CSV file(s) are used in the current phtml template file?
Bizboss's user avatar
  • 597
7 votes
5 answers
11k views

How to add a new language - Magento 2.0.1

I am trying to create a new store view for the Tamil Language, but the language does not get listed while choosing the language from admin. short description of what I have done 1) I have ...
Bilal Usean's user avatar
  • 10.1k
6 votes
4 answers
5k views

Update customer gender translations

I would like to translate the gender options for a customer. At first I thought that I could simply use a translation file for this, but looking into the template app/design/frontend/base/default/...
David Manners's user avatar
6 votes
2 answers
12k views

Magento 2: Change Text On Checkout Page

I'm using Magento 2 CE Version 2.1.2 I would like to change Shipping Address to Shipping/Billing Address. I have already below, but it's not working for me. Magento 2: Sorry, no quotes are ...
Jackson's user avatar
  • 9,969
4 votes
1 answer
888 views

is there a way to alter translate.csv for ADMIN without altering core file?

The file I am looking at is app/design/adminhtml/default/default/locale/en_US/translate.csv I would like to change translations in the admin back-end without editing this file (in case there is an ...
Kender's user avatar
  • 373
3 votes
4 answers
5k views

Magento 2 How to display custom text instead of shipping method title and carrier title

How to display only "Shipping" text instead of "Shipping(Flat Rate - Fixed)" text in Cart, Checkout and Emails.
Mahendra Jella's user avatar
18 votes
7 answers
51k views

How to translate JS error message or text in Magento 2?

I have two views English and Arabic default js validation error message needs to translate in Arabic so how to do it? And also I have a few custom texts on how to do it. I created an i18n for Arabic ...
Pradeep Kumar's user avatar
15 votes
1 answer
7k views

Make magento core template use my module's translation file

In an extension I'm working on, I have a layout XML added via module's config.xml. This layout has some modifications to the frontend. Some of these blocks, however, belong to Magento core modules. ...
Mridul Aggarwal's user avatar
12 votes
3 answers
2k views

Translate Maintenance mode per website in multiwebsite-multidomain setup

Translate Maintenance mode per website in multi website-multi domain setup What is the proper way of translating (localisation) Maintenance page in a multi-website and multi-domain environment? ...
versedi's user avatar
  • 2,059
11 votes
2 answers
22k views

How to override translate csv files in magento2

Suppose, I want to translate Shop By to Shop in my custom theme using translation file en_US.csv What is the method or procedure to achieve it in Magento2?
Anshu Mishra's user avatar
  • 9,010
8 votes
2 answers
10k views

Change the scope of a attribute

A extension created a extra tab in my category menu. With this code: $setup->addAttribute('catalog_category', 'menutopdescription1', array( 'group' => 'General', 'input' ...
Ronny's user avatar
  • 443
7 votes
2 answers
4k views

Magento 2 javascript text translations

[EDIT] This is outdated. The translation is not done anymore as described below [/EDIT] In Magento 1 the translatable texts needed in javascript were added in the jstranslate.xml file in the etc ...
Marius's user avatar
  • 199k
5 votes
4 answers
389 views

What is the proper way to add theme-specific translations of new strings?

We are creating a new template and have some new text which are not yet defined anywhere. If they would be defined before we would add some "Mage_TheModule::Foo";"Fuh" to the translate.csv in the ...
Alex's user avatar
  • 14k
4 votes
6 answers
16k views

Magento 2 : How to install new language pack

I am working on a Magento-2 website which is based on German language. How to install and use new language package for German language in Magento2. Which package is best for German language? Any ...
Suresh Chikani's user avatar
4 votes
1 answer
8k views

Magento2: List translation strings from a module

In order to build this CSV app/code/Vendor/Module/i18n/en_US.csv, I want to get an array from my module with all the translation-ready strings from all files types (.php, .phtml, .js, .xml). .php &...
St3phan's user avatar
  • 2,927
3 votes
1 answer
10k views

Magento 2 - translating problem in JS templates

Is there a way to translate phrases defined in JS templates in Magento 2? I have checked official translation structure overview and searched the net but can't seem to find proper solution. For ...
g5wx's user avatar
  • 681
3 votes
2 answers
6k views

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

Can't use inline translation tool in front end of my webpage. Its working fine in backend. I checked on the frontend if System>Config>Advanced>Developer>Translate Inline>"Enabled for Frontend" is ...
Hillar Kapsta's user avatar
2 votes
2 answers
623 views

Translation: Multiple websites, multiple languages

I'm building a store for a client, and this is the first time I'm working with multiple websites AND multiple languages. I'm a bit uncertain how to handle the translation aspect. My store structure ...
user3115369's user avatar
1 vote
2 answers
2k views

Localized dutch date format

I'm using "AW blog" in Magento 1.9.3.2. On the homepage I've got the recently added blogs with the date, the date is now showing: 29 May 2017. How can I change that into Dutch like; 29 Mei 2017? I've ...
n00bly's user avatar
  • 623
0 votes
2 answers
3k views

Date format in advanced search

My locale is set to France but the advanced search only works in US format. I've made a custom attribute (date type) and add it to the advanced search. And there are 3 problems: The datepicker (...
bitWorking's user avatar
27 votes
4 answers
13k views

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

In core modules and sometimes templates, I see helper classes being used for translation: Mage::helper('someModule')->__('translate me'); Why is this preferable to: $this->__('translate me');
Brendan Falkowski's user avatar
23 votes
5 answers
13k views

Managing Magento csv Translation Files

As time has passed, the Magento core team has added more and more default language packs to the app/locale folder. Is there a canon way to manage your own translation files such that they don't ...
Alana Storm's user avatar
  • 44.4k
18 votes
5 answers
7k views

Magento Displaying appropriate localisation based on Location

I'd like to configure the Magento site to be able to recognize the default language and location of the user and display the site in that language and with appropriate localization. For example: A ...
Karlson's user avatar
  • 747
16 votes
5 answers
34k views

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

I'm trying out a new theme and it seems to not get the translations properly. If I search for the English phrase in my files, I can find: "You have no items to compare.","Sie haben keine Artikel ...
Chris's user avatar
  • 577
10 votes
1 answer
2k views

how can change magento calendar?

As you know Gregorian is default calendar in Magento, but in some countries like China, Japan, India, Iran and Arabian countries there are different calendars. I searched Magento backend and I didn’t ...
mir.moezi's user avatar
  • 319
7 votes
4 answers
8k views

Magento 2.3 translations (translate label) in the admin panel (backend)

In Magento 1 I just added a translate.csv for my admin area. How can I achieve this in Magento 2? I just want to change the translations of a few things and add some missing translations. Can't I put ...
Scotti's user avatar
  • 103
5 votes
1 answer
3k views

Magento 2:i18n folder to custom theme

I want to edit .csv file in module-wishlist to my custom theme. I have copied the the file from module-wishlist and copied to app/design/frontend/vendor/theme/Magento_Wishlist/i18n/en_US.csv. ...
Vindhuja's user avatar
  • 1,405
5 votes
3 answers
5k views

translation of Mr. and Mrs. prefix options

So I have to set a translation for the Mr. and Mrs. prefix options in the one-page checkout form, where a customer fills his name, address, etc. All the translations so far I have done through the ....
Syspect's user avatar
  • 1,283
4 votes
2 answers
4k views

Translate.csv Failed to Overwrite Module Translation

I got a problem with Magento translation in my translate.csv, because it does not work. It should be easy as all tutorials saying. I had download the package/module translation put into \app\locale\...
Leongelis's user avatar
  • 585
3 votes
4 answers
241 views

If statement for translatable product attribute values

I'm using this kind of statements on other places in the webshop (product detail page) but I want to use this one is on the category page: <?php if ($_product->getAttributeText('...
n00bly's user avatar
  • 623
3 votes
3 answers
2k views

Use Magento 2 translation (for example German) from CrowdIn

So people are translating Magento 2. How can I use the current translation from there in my project? I can download a source.csv - but won't I need one file per module?
Alex's user avatar
  • 14k
3 votes
1 answer
745 views

How to translate title attribute in acl.xml

I have this code in acl.xml: <resource id="Magento_Paypal::use" title="Place Order Using Billing Agreements" translate="title" sortOrder="15" /> and I already added this string in ar_SA.csv ...
Mazen Zan's user avatar
3 votes
1 answer
1k views

How to add custom translations

Can any one help me to, Where i have to include translated text for German in which csv file have to include ? Find the below screenshot:
shivashankar m's user avatar
3 votes
1 answer
266 views

EcomDev PHPUnit Translation not Working with Mocked Helper

I noticed that translations are not working with the EcomDev_PHPUnit Unit Test framework if you replace a helper with a mocked helper, using mockHelper() and replaceByMock(). Shouldn't any call to the ...
Fabian Schmengler's user avatar
3 votes
4 answers
7k views

Magento2 change Tax to VAT

I am trying to change Tax to say VAT across the site. I have tried to change the en_US.csv file located in i18n in my theme, but with no result. Is this changed on database level, and if so, where?
Ellinor's user avatar
  • 155
3 votes
4 answers
309 views

Translating an Extension

Are there any tools for generating a csv file for translations of a module? I.e. detecting calls to __() within a module and outputting the information into a csv ready to be used as a translation ...
Peter O'Callaghan's user avatar
3 votes
1 answer
122 views

Translations and hierachy of authority

We are having problems with translations on our store for our multi lingual sites. They used to work ok but when we add modules it seems that the translations are now lost. As an example "Add to ...
Gavin's user avatar
  • 123
3 votes
2 answers
791 views

Italian translation.csv for tax not working

We have a Italian website on our Magento installation. All the translations are working from our theme's locale/it_IT/translate.csv file with the exception of "Tax","IVA". On the italian site Tax is ...
Holly's user avatar
  • 4,923
3 votes
2 answers
7k views

How to: Translating language for multiple products/categories

My current setup is like this (new install). main website main website store store view English store view German Using Magmi, I know how to create my category structure (on the fly) - and how ...
egg's user avatar
  • 499
3 votes
2 answers
6k views

Magento 2 Translate Checkout

I've been encountering an issue where I am unable to translate fields in Magento 2 checkout. Steps I have take: Created app/design/frontend/Company/theme/i18n/en_US.csv Added strings to update: "...
Eirik's user avatar
  • 2,073
2 votes
1 answer
1k views

The "i18n:collect-phrases" command does not collect all translatable strings from JS

During module development I trying to collect all translations to the i18n/en_US.csv file using regular command: sudo -u www-data php bin/magento i18n:collect-phrases -o /var/www/html/app/code/Vendor/...
Siarhey Uchukhlebau's user avatar