Questions tagged [translate]
The translate tag has no usage guidance.
152
questions
1
vote
0
answers
15
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
0
answers
22
views
Magento 2: Translation file doesn't work at admin panel. Can any one help on this?
I am creating i18n file for en_US in code folder
file path
code///i18n/en_US.csv
after creating file(en_US.csv ) I have added this code -
"All Customers","Users"
It changes ...
0
votes
0
answers
31
views
Translate : The requested qty is not available in checkout
I'm really struggling to get this translation working and i would like some help.
Use case :
Add one unit of a product in your cart
Go in the cart
update the product quantity in order that it's ...
0
votes
1
answer
27
views
Order confirmation email is in english for custom payment method in Magento 2
I have an m2 website in the Norwegian language when an order is placed with COD then the order confirmation email is Norwegian but when I use my custom payment method the order confirmation email is ...
0
votes
1
answer
62
views
Magento 2.4.3p1 Translate "Show Password" text on Registration page
Magento 2.4.3 introduces a show password feature :
How can I translate the "Show Password" text?
An entry in the i18n\XX_XX.csv file does not work.
0
votes
2
answers
30
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
1
answer
154
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
0
answers
43
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
0
answers
28
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
1
answer
79
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
0
answers
22
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
0
answers
54
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
3
answers
42
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
1
answer
117
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
1
answer
29
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
1
answer
183
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
1
answer
164
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
0
answers
152
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
0
answers
125
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
1
answer
59
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
1
answer
168
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
1
answer
253
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
1
answer
350
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
1
answer
62
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
1
answer
64
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
1
answer
50
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
1
answer
100
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
1
answer
320
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
0
answers
43
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
1
answer
86
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
1
answer
32
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
2
answers
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
0
answers
40
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
1
answer
23
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
1
answer
162
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
2
answers
53
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
1
answer
133
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
2
answers
30
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
1
answer
191
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
1
answer
399
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=&...
1
vote
1
answer
730
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
1
answer
1k
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
0
answers
21
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
1
answer
371
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
2
answers
357
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
1
answer
314
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
1
answer
296
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
1
answer
216
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
1
answer
59
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
1
answer
264
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"
...