All Questions
493 questions
2
votes
1
answer
2k
views
How to translate Magento validate.js error
I have a website with 2 stores (English and Spanish). Now I need to translate validation messages in Spanish. Like for example:
Please enter a valid email address.
Please suggest how I can ...
3
votes
2
answers
2k
views
Magento 2 : How to override translation file module wise?
I need to update translation file only for checkout page , so how can I do that . I don't want to use translation file which is use in theme folder.
3
votes
1
answer
2k
views
Translations not working, Magento_Checkout
I'm facing the problems with Finnish translations (Magento ver. 2.1.7). The main pages are translated but all the Magento_Checkout translations are in English.
It seems that this is bug in the ...
0
votes
1
answer
3k
views
Magento 2.3.3 - Programmatically shipment email sent in the wrong language
I am trying to programmatically create the shipment and I succeeded in this operation.
To do this I create a new CLI Command which I obviously run by command line.
I have only 1 storeview and 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 ...
8
votes
1
answer
2k
views
"Interface Locale" admin language problem
In my admin page, the "Interface Locale" dropdown is not working. I already switched the default language to German, but is still shows English. The same with Chinese. How can I solve this problem?
1
vote
1
answer
1k
views
Magento 2: Validate error from review form on product page does not translate
The message 'Please select one of each of the ratings above.' is not translating, when you try to add a review without choosing the stars.
The form is located in the file form.phtml
vendor/magento/...
0
votes
0
answers
25
views
How to translate Language switcher?
I can't seem to translate the language switcher component.
in my csv it_IT i added this:
"Language","Lingua",module,Magento_Store
"English","EN",module,...
1
vote
2
answers
28
views
magento 2.4 login page meta title does not get localized
I have a multi store view magento where each store view has its own language but I have an issue with translating some pages.
For regular pages (aka pages that I create via backend in Content > ...
0
votes
0
answers
11
views
Customize tier module traductions
Magento documentation says
How the application applies locales
When the locale is changed for a store, the application searches and applies translations in the corresponding dictionaries in the ...
0
votes
0
answers
27
views
Translation not working for StripeIntegration_Payments
I tried to translate Card •••• %1 has been deleted. from StripeIntegration_Payments, but it's not working. I assume it's because of those bullets that should be escaped maybe, but I'm not sure.
My ...
0
votes
0
answers
25
views
Magento 2 Multiple translations
Is it possible to implement multiple translations in a "Magento 2" way?
I have a form on my website where I should have the same language text as a user browser language. How to achieve it?
...
1
vote
2
answers
338
views
Can't send sitemap for my Multistore to Google
I have a rare error. I have translated my website in to multiple languages, using Magento, like www.example.com/de
Now, I have added www.example.com/de in Search console and I want to send the sitemap,...
0
votes
3
answers
97
views
Magento 2 + default url needs to traslate
Need to translate some default URLs like customer/account/login/ & customer/account/create/ is there any way to translate these URLs with/without using URL rewrite?
2
votes
4
answers
2k
views
Change 'Sort by Position' text to 'Sort by New' Magento 2.2.6
This must/should be easily achieved...I am simply hoping to change the 'Sort By Position' text to 'Sort by New' in the Magento category list toolbar.
I have attempted to do this by creating the ...
0
votes
1
answer
50
views
Translating Child Product Names in Magento
I would like to discuss a scenario regarding the translation of child product names in Magento according to their respective store languages.
Currently, we have a Configurable Product with the name &...
0
votes
1
answer
98
views
magento 2.4 get item options default label
On my magento I have different store views and some simple products with customizable options. I also have some custom code that checks the label of these options:
$myvalue = 0;
$options = $item->...
0
votes
2
answers
490
views
What is the purpose of the i18n/en_US.csv?
What is the purpose of the i18n/en_US.csv files within modules? As in... how are they specifically used?
I realize it's for the purposes of translations, but I have tested adding translations for ...
0
votes
1
answer
35
views
Magento 2.4.3 - Translation Issue
I'm trying to translate "Availability %1" to "På lager: %1" and this happens.
Does anyone know why this happens?
1
vote
2
answers
860
views
Translate priority
Magento has 4-5 ways to translate and haven't good explanation of translation priority.
Translates can be
in themes
in modules
in translate package
in sub folders of themes/modules
...
0
votes
1
answer
381
views
How to get the locale of the order's store?
I have an order model. How can I get the locale from the store view where the order was created in?
Edit
On some tutorials I found something like
/** @var \Magento\Sales\Model\Order $order */
$order-&...
0
votes
1
answer
673
views
Translate html tag in magento 2
I have a html template with a string that's translated.
The translation contains a html a tag. but the tag is printed as text when rendered.
.html file content:
<p>{{trans "...
1
vote
1
answer
3k
views
How to translate knockout string variables in Magento 2
I'm extending and translating a third party module which has the following in a template:
<!--ko foreach: options-->
<div class="option">
<label data-bind="i18n: label"></...
0
votes
1
answer
1k
views
translate "Please enter the same value again"
I am trying to change the validation message Please enter the same value again for password field using translate csv.but it's not translate on the frontend.
Can any one please guide here what's wrong ...
2
votes
1
answer
243
views
Can you add translation for all modules in 1 file
Is it possible to translate every lines from any modules in one file?
I pulled bin/magento i18n:collect-phrases -o directly in root and got all the lines with their locations ex: ,module,...
0
votes
1
answer
438
views
Magento 2 - javascript translations not working
I got a shop with 4 different languages en/de/fr/it. Now I installed translation modules which have their files under app/i18n additionally I have a custom theme under with language files under app/...
2
votes
2
answers
433
views
Magento2 i18n not working Magento_Ui custom theme
I tried to add a translation on :
app/design/frontend/Theme/theme/Magento_Ui/web/templates/form/field.html
I added a translation like this :
<div class="gotcompany" data-bind="i18n: ...
3
votes
1
answer
143
views
Magento2 : How to translate input value in html template
I try to translate the value attribute of an input
<input type="checkbox" id="html" name="fav_language" data-bind="i18n: {value:'Check here'}">
I tried ...
0
votes
1
answer
1k
views
Magento 2.2.4 Change Country Names
I am wanting to change the names in English for countries in Magento 2.2.4. I tried looking through the database but it appears their full name is not listed there, just country codes. For my use of ...
2
votes
2
answers
4k
views
Custom Translation of Backend in Magento 2 - path of the translate.csv?
I am familiar with translations in Magento 1 and found out also how translations in M2 work for the frontend. My questions is where to do my translation for my own custom module for the backend. Is ...
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
2
answers
150
views
Include en_US translation file in extension
When developing an extension is there an reason other than simply "Best Practice" to include a en_US or extension base language translation file?
Example
I write an extension with some text where ...
5
votes
2
answers
4k
views
Correct usage of jstranslator.xml
I'm attempting to translate the error messages returned by the Postcode Anywhere module. They're displayed in browser alerts, so are created in JavaScript.
I managed to translate one using the inline ...
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 ...
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 ...
1
vote
2
answers
1k
views
Magento 2: How can we prevent HTML from being shown in the text that comes from en_US.csv file?
In en-US.csv file in our custom theme, I got a translation as below.
"We'll email you an order confirmation with details and tracking info.","Within 10 minutes we'll send an email to ...
0
votes
1
answer
183
views
Overriding a .phtml file in custom theme doesn't work
I've been trying to override D:\Projects\PMM-M2\public_html\vendor\magento\module-checkout\view\frontend\templates\success.phtml by placing the file in my custom theme at location D:\Projects\PMM-M2\...
0
votes
2
answers
488
views
Magento 2: How to translate knockout html file for word that contains hyperlink?
I have a text like this:
To contact us please email us at [email protected], will be waiting!
when the user clicked on the email it will redirect the user to mail link, using phtml i can easily achieve it ...
1
vote
0
answers
28
views
How to create non-modularized language packs
What are the structural differences and how do you create the non-modularized language pack? Per https://devdocs.magento.com/guides/v2.4/frontend-dev-guide/translations/xlate.html#m2devgde-xlate-...
0
votes
1
answer
235
views
Magento 2: Translation doesn't works in JS files. Can anyone help on this please?
define(
[
"jquery",
"Magento_Ui/js/modal/modal",
"mage/calendar",
"mage/translate",
], function($, modal){
// also ...
1
vote
2
answers
1k
views
Cannot translate popup message when adding a product to the cart
If you add a product to the shopping cart, a message pops up on top saying "Cannot add the item to shopping cart."
The problem is that you need to log in first, but this is not clear to the customer. ...
1
vote
0
answers
157
views
French translations are not working in email templates in Magento2
My email content is not translating to french, when admin user perform an action. We have admin form when user saved data we are triggering an email to the user. That respected email should be ...
0
votes
1
answer
81
views
Get order data in different language?
I'm trying to fetch the order and/or the product data, but translated to a specific language/store view from an observer. This will send out an internal email so the order will be handled. Im calling ...
1
vote
2
answers
2k
views
Display date in different languages
On our store we have a blog where we show the "created_at" date of the entity.
But we show the same post to 5 different languages. Of course the content is translated but we don't know how we should ...
1
vote
1
answer
265
views
How to translate Maintenance mode page for multiwebsites
I want to translate Magento 2 maintenance page as per country code
Like :-
magento2/it (In the Italian language)
magento2/de (In German)
I tried using csv but it doesn't work even using __('echo the ...
0
votes
1
answer
334
views
Module translation made update safe
What is the correct way to add frontend translation for modules that are installed with composer? The solution should be updated safely. Some extension providers instruct to save the translation file ...
2
votes
6
answers
1k
views
How to translate coupon title "Discount"
I tried to translate with the translate.csv file, but in this case it doesn't work.
I also tried to find the file in "checkout" folder (every file in the folder) but it doesn't contain the word "...
3
votes
2
answers
2k
views
Magento 2.1.1- i18n:collect-phrases not working
I tried to create a translation dictionary for my whole magento site by using the following command:
php magento i18n:collect-phrases -o '/var/www/html/kikinben2/app/i18n/alothemes/bn_bd/bn_BD.csv' -...
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 ...
0
votes
3
answers
225
views
Translate "Sorry, no quotes are available for this order at this time"
Since we use table rates and require a city/state/zip, a customer will always see "Sorry, no quotes are available for this order at this time" before choosing their shipping criteria. We ...