Questions tagged [translate]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
24 views

Magento2 text not getting translated when added in ar_SA.csv

vendor/magento/module-sales/Model/Reorder/Reorder.php Could not add the product with SKU "%1" to the shopping cart: %2 The above mentioned text si not getting translated when adding data ...
1
vote
1answer
35 views

How can we change placeholder of state dropdown field on checkout page in magento 2?

How can we change placeholder of state Dropdown field on checkout page in Magento2
0
votes
0answers
10 views

Street address fields translations issue

This is my method from the core of magento: \Magento\Checkout\Block\Checkout\AttributeMerger::getMultilineFieldConfig and this is the code: .... $line = [ 'label' => __("%1: ...
0
votes
0answers
19 views

csv didn't work on translate store language label in magento frontend

getStores()) > 1): ?> <?php $id = $block->getIdModifier() ? '-' . $block->getIdModifier() : '' ?> <div class="switcher language switcher-language" data-ui-id="language-...
0
votes
1answer
17 views

Magento 2.3.4: Translation with special charactors "\n"

I need to translate this question: "The requested qty is not available\nSome of the products are out of stock." This is a message from API payment information on the checkout page when I ...
0
votes
0answers
20 views

Sign In in Magento Checkout doesn't translate

Have tried all combination: "Sign In", "Inloggen" " Sign In ", "Inloggen" "sign in","Inloggen" " sign in ", "Inloggen" ...
0
votes
0answers
43 views

Magento 2 Translating a Single Phrase Multiple Ways Depending on Module/Context

I have a situation where I need to translate a phrase differently depending on the location it is being used. For example, the word "Email" that shows up in both the Magento_Catalog module ...
0
votes
3answers
23 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 ...
0
votes
1answer
45 views

Magento 2 : How to add Translate Code in JavaScript code in PHTML file?

I am trying to add translate code <?= __('This field is required') ?> in the Magento file using JavaScript but it is not working plz help me. if(response.length == 0) { document....
0
votes
1answer
25 views

How does Translate inline work

How does translate inline work? I'm trying to change a previous translation in the checkout "Proceed to checkout" button. ATM all our websites have the same translation of the button but I ...
0
votes
1answer
66 views

Magento 2 - How to export all messages for translation

In magento 2, I need to export in file all alert and error messages in order to translate them. I already try this : php bin/magento i18n:collect-phrases app/code/ -o translate.csv But this not ...
0
votes
1answer
53 views

How to translate variable string in js file?

Let's say I have the following code: define([ 'jquery', 'mage/translate', ], function ( $, $t ) { 'use strict'; return function (str) { //Rest of codes to determine ...
0
votes
0answers
81 views

Translations ""%fieldName" is required. Enter and try again."

In file (Magneto 2.4.2) vendor/magento/module-customer/Model/Address/Validator/General.php we have $errors[] = __('"%fieldName" is required. Enter and try again.', ['fieldName' => '...
0
votes
0answers
56 views

How to translate Customer dashboard "Account Information" Tab text in magneto 2.4

I'm trying to translate Magento 2.4 with Porto theme in Danish, all translations working fine but a few of them not work. Under Customer Dashboard > Account Information below text not translated. &...
0
votes
1answer
40 views

How to translate magento 2 customer login/registration url

How I can translate customer login url? "customer/account/login/" but example if I translate it to Estonian then it should look like this "klient/kasutaja/sisselogimine". So if ...
0
votes
1answer
119 views

How To Translate contact us Meta description in magento2?

vendor/magento/module-contact/view/frontend/layout/contact_index_index.xml <head> <title>Contact Us</title> <meta name="description" content="Have ...
0
votes
0answers
67 views

Magento 2.4.2 translation problem in cart

I try translate info about quantity in cart but after i add this translate in csv file it doesn't work. This info is in the core module vendor/magento/module-inventory-sales/Model/...
0
votes
0answers
33 views

Translate “custom option” in mini-cart for multistore

I have managed to successfully translate the custom options in the article (see previous question here. But the next step is to reproduce these options also in the "mini-cart". The minicart ...
0
votes
1answer
114 views

Magento2 language/locale not working

So I installed Magento 2.4 via docker/composer on my development machine. I am trying to use the German (Germany) language for my store front view. I tried with just the default setup, I also tried ...
0
votes
1answer
205 views

how to override translate from a vendor language package

hello everyone in my case i want to translate some sentences in magento 2.3 wich is already tanslated by a language package or in a module inside the vendor folder , for example i have already a ...
0
votes
1answer
51 views

Translate "custom option" for multistore

I have a website and for a product like "shirts" there is a way to get a discount. (This is implemented by a custom option). I'm importing all the products and the options programmatically. ...
0
votes
1answer
29 views

How to translate static content within CMS

I have a language pack installed and its working but it does not work for my own static content I have created within the CMS. For example I created a page within the CMS. <div> <p>Hello ...
0
votes
1answer
27 views

translate a content: 'Price'; in a scss file

I have a file called _catalog-extend.scss. When I open this file I see in de the code a hardcoded 'Price'. // // Price box // _____________________________________________ .product-info-main ....
0
votes
0answers
36 views

Magento 2 Translate message im adminhtml auth login

i want to translate two messages in the logging panel to CMS (The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again later. and Incorrect CAPTCHA.). ...
0
votes
1answer
81 views

Magento 2: Translate knockout html where "mailto:info@sitename.com" is used

In Magento_Checkout/web/template/minicart/content.html there is a "mailto:info@website.com" used. Now I can translate the last piece by -- ko text: $t('info@website.com') --> <-- /ko --...
0
votes
1answer
145 views

How to translate validation error message in checkout page Magento 2.3

Please any Ideas on how to translate the validation message on phone field on view/frontend/layout/checkout_index_index.xml: <item name="telephone" xsi:type="array"> <...
1
vote
0answers
24 views

Magento 2 Translations not working on plugins

I have a translation file in app/design/frontend/vendor/theme/i18n/en_US.csv "sample_trans","Sample Trans" my problem is when i try to call it in a plugin via __('sample_trans'). ...
0
votes
0answers
34 views

Magento 2 translation file not working in app/code

im using magento 2.4.0 and I currently have an app/design/frontend/vendor/theme/i18n/en_US.csv "sample_trans","Sample Trans" my problem is when i try to call this inside the app/...
0
votes
1answer
69 views

When Select France Language in Google Translate Price Formatting Different in cart page in Magento 1.9

i set the google translate for translate language in magento 1.9 but in cart page in some product the currency symbol was not chnage Select Language France Select Language English any one can help ...
0
votes
1answer
29 views

Magento 2 - Conflict in localisation csv file

I understand the general structure of i18n csv files that is like <key_hook>,<translation_of_that_key> but according to the documentation there is the possibility to add a module ...
1
vote
2answers
32 views

Translate problem about

How to Translate about this code please? ->addSuccessMessage(__('Your #' . $incrementId . ' has been submited.')); I tried Your #%1 xxxx but not working? anyone can help, thank you!
0
votes
0answers
28 views

Translation in arabic store for You added {Product name } to your shopping cart

I want to translate "You added {Product name } to you shopping cart in arabic. I tried this, "You added %1 to your <a href=""""%2"""">shopping ...
1
vote
1answer
21 views

Magento2: Issue with translate

I add to list.pthml: <tr> <th style="width:10%"><?php /* @escapeNotVerified */ echo __('SKU') ?></th> <th style="width:10%"><?php /* @...
0
votes
1answer
118 views

Magento 2.3 - How set custom options title by store view programmatically?

I would like to be able to translate the title of the customizable options. The following code works correctly and adds the options in all store views. How to adapt it to have a translated title in ...
0
votes
2answers
40 views

Transalation problems checkout

I have translated "You can create an account after checkout." text and "Place order" button and the translation is displayed correct when Magento is set to developer mode, but when ...
0
votes
1answer
104 views

Translate *Required Fields - Magento 2.3

We have an issue that we are not able to translate "*Required Field" and "This is a Required field" I also notice that the previous developer have put the Norwegian Language pack ...
0
votes
2answers
16 views

Filters on the dashboard don't work with the Spanish dashboard

When I put the panel in Spanish the filters stop working: Why can this be? And how can I fix it? Thank you so much!!
0
votes
1answer
151 views

How to Translate "Ship here" button

I'm trying to translate a button when you are in checkout and you click "Add new address", a popup comes up where you can add a new address. At the bottom on that popup there is 2 buttons, ...
1
vote
1answer
264 views

Translate html magento 2

I am developing my custom module. I have the html template look like this <p> This is a <strong>text that I need to translate</strong> </p> <p>Read more: <a href=&...
0
votes
1answer
466 views

Magento 2: Convert Magento\Framework\Phrase into string

How can i convert this variable into string: $var = __("Welcome"); because when i put in strpos function it will return an error: strpos($var, 'om'); Uncaught TypeError: strpos() expects ...
1
vote
1answer
786 views

How to change default search placeholder text in Magento 2.3.5

I want to change the default search box placeholder text by using a translation file - it's the text that says "Search entire store here...". I want to change it to "Search website"...
1
vote
0answers
14 views

File js-translation.json is loaded slower or later than other javascript

File js-translation.json is loaded slower or later than other javascript file which contains some texts need to translate so at this time translated texts still not push to storage. When the a.js is ...
0
votes
1answer
288 views

Can't run my validation translated csv

I'm having some issues with translating the validation csv file. I did go to public_html/lib/web/i18n - downloaded the existing en_US.csv file and translated it. I cleared all the empty lines, as it ...
1
vote
2answers
284 views

How to translate "Filter by" in magento 2

I want to translate Filter by text: I have translated it in app/i18n/es_ES.csv and in app/design/frontend/.../Theme/i18n/es_ES.csv but this doesn´t work. I have tried all the possibilities: What can ...
0
votes
1answer
202 views

How to translate API response

I'm adding product to cart using {baseUrl}/rest/{store_code}//V1/carts/mine/items If requested qty not available in stock then in response you'll get The requested qty is not available I want to ...
1
vote
1answer
220 views

Add to Cart Success Message Translation issue?

<?= $block->escapeHtml(__( 'You added product %1 to the <a href="%2">shopping cart</a>.', $block->getData('product_name'), $block->getData('...
0
votes
1answer
161 views

Magento 2 : Product attributes color and size Translate issue

It is a Configurable product and the default store view is Swedish store and this text Color and size need to be translated in Swedish but These words are not translated in Swedish ?? I have tried ...
0
votes
1answer
48 views

Add to cart success message

<?= $block->escapeHtml(__( 'You added product %1 to the <a href="%2">comparison list</a>.', $block->getData('product_name'), $block->getData('compare_list_url')), ...
1
vote
1answer
227 views

Magento2: How to translate search box input field

How can I translate text in i18n Enter keywords to search...shows in this way? I add to file translate: "Enter keywords to search...","Szukaj produktu" but no result. <input id="search" ...
0
votes
1answer
232 views

Magento2: How to translate text from html file

We have file: web/template/checkout/order-comment-block.html in this file I see code: <span class="chars-label"> <!-- ko i18n: 'remaining ...