All Questions
68 questions
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 ...
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/...
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 ...
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 ...
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 ...
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' ...
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 ...
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/...
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('...
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?
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 ...
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/...
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 ...
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 ...
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.
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 ...
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. ...
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?
...
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?
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' ...
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 ...
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 ...
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 ...
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 &...
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 ...
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 ...
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 ...
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 ...
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 (...
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');
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 ...
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 ...
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 ...
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 ...
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 ...
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.
...
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 ....
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\...
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('...
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?
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 ...
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:
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 ...
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?
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 ...
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 ...
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 ...
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 ...
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:
"...
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/...