Skip to main content

Questions tagged [localisation]

Questions related to localisation in Magento. This covers translations, currency and number formatting and in parts implementing local laws and standards.

Filter by
Sorted by
Tagged with
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
2 answers
24 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
9 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 ...
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/...
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
0 answers
23 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
17 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
326 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
61 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?
0 votes
1 answer
48 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
60 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
436 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
30 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
735 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
261 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
630 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"></...
4 votes
4 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 ...
0 votes
1 answer
866 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
221 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
283 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/...
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
308 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
147 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
387 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
832 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
162 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\...
1 vote
0 answers
24 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
210 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
154 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 ...
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
228 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
288 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
47k 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
209 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 ...
1 vote
0 answers
220 views

English to english translation problem magento2

I am translating the text("You canceled the coupon code.") with "Thank you for canceling the coupon code" (This is just english to english translation) from Magento\Checkout\Controller\Cart\CouponPost ...
1 vote
1 answer
582 views

Multiple translate file in a theme

Is it possible if I use multiple translate files in locale directory in my themes instead of only one file translate.csv ? Manage a huge file with 100k+ lines is a nightmare to me.
2 votes
1 answer
2k views

Category name (title) translation issue in Magento 2

I have 2 store views (english and another language) in one of my Magento 2 projects. The problem I'm facing is that one of the categories has the name "Role", which is also an English word. So when ...
2 votes
1 answer
542 views

On mobile submenu 'All %categoryname' is not translated - Magento 2

I can't translate the string 'All' from the subcategory on mobile menu. The file where the string appears is menu.js located on public/lib/web/mage/ And it looks like this: .text($.mage.__('All ') + ...
6 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 ...
0 votes
2 answers
113 views

couldn't start dockergento and pull images

I am trying to setup new project locally but can't pull any docker images, tried on old project and still same issue. tried restarting everything, re logging in docker etc. pulled docker-hello ...
4 votes
1 answer
965 views

Multi Store view - product name for each store

I'm using Magento 1.9.0.1 I have a store in English, I want to have the same store (same categories and products) just translated to Spanish. I used this tutorial to achive this: Ref. I created ...

1
2 3 4 5
10