Questions tagged [translate]
The translate tag has no usage guidance.
81
questions with no upvoted or accepted answers
3
votes
0
answers
49
views
How to solve checkout translation issue magento 2.2.7?
I am unable to translate 2 stuff in checkout, its there in csv but not working.
When i am enabling "Translate Inline" from admin its showing like this
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.
2
votes
2
answers
48
views
translation not working when added new store in magento 2.3.2
I already had 2 stores, translation was working fine in them, then I created another 3 stores and translated them from csv file, but the translation is not working. Magento2.3.2
this is already had 2 ...
2
votes
0
answers
68
views
How add declension of nouns based on numeral argument value
I know that in Magenta version 2 and above, the option for declension of nouns based on the numerical value of the argument is added:
%1 [%1|cat|cats] -> 1 cat / 2 cats
But I don’t understand how ...
2
votes
0
answers
79
views
in custom module ajax-loading form translations not working magento 2.3
in ajax-loading form Change English it to italiano and it works but italiano to English not working proper.
once transalte to italiano then switch to english store not transalte to english ...
2
votes
1
answer
1k
views
How to translate shipping method titles
I need to change the text for a shipping method title.
Currently we have
Federal Express
Express Saver
I would like this to say Express Saver (3 Day Delivery) instead of Express Saver on the ...
2
votes
0
answers
210
views
Changing country name (Ireland to be Republic of Ireland) in Magento 2
I need to change Ireland to the Republic of Ireland. No matter what I change and clear the caches it does not update
I have tried editing
vendor/magento/zendframework1/library/Zend/Locale/Data/...
1
vote
0
answers
33
views
Magento 2 Shpping Address Summary section State name did not translate
I want to create my site on Arabic Language but on Shipping Address page State name did not translate I also enter word into i18n csv file but it doesn't work for me.
you can get references using the ...
1
vote
1
answer
104
views
how to translate magento2 Core APIs messages
I am creating mobile app using magento2 APIs. The problem is that I want to translate messages according to the store on frontend for example i want to translate the error messages and success ...
1
vote
0
answers
21
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-...
1
vote
0
answers
361
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.
&...
1
vote
1
answer
298
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 ...
1
vote
0
answers
117
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'). ...
1
vote
1
answer
31
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 /* @...
1
vote
2
answers
2k
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
36
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 ...
1
vote
0
answers
104
views
Magento 2: Translate Order Email template
How can I translate the attribute label?
I've already added to "Manage Label" but still not working.
Color is translated but not size?
Does anyone have an idea ? I tried all possible by placing ...
1
vote
0
answers
57
views
M2 - Weird translation window
We have Magento 2.3.0 and use the theme "Claue".
But with some of the translations, when I use the inline translations, I get a weird window with a lot of input field but no change to change the ...
1
vote
1
answer
199
views
M2 - Translate password requirements alert
In Magento 2 on the checkout page, you'll see a notification if you enter a password that not matches the requirements.
You see this: "Minimum of different classes of characters in password is 3. ...
1
vote
0
answers
124
views
Magento 2.3. changing form validation options loses validation messages translations
I am running Magento 2.3. In the customer create account form I changed the way validation form errors are shown in this way:
var dataForm = $('#form-validate');
dataForm.mage('validation', {
...
1
vote
0
answers
209
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
0
answers
29
views
How to translte some phrases M2
I want to translate this
I added in my fr_FR.csv those lines but with no results:
"You added %1 to your shopping cart.","Vous avez ajouté %1 à votre panier."
"You added %1 to your", "You ...
1
vote
1
answer
701
views
magento 2 change admin label
i want to change magento admin sidebar labels for eg "catalog" to "My products"
is there way to do it without changing core files i tried using translation by adding files in "app/design/adminhtml/...
1
vote
0
answers
29
views
Translating Error Messages on Address Form
When only entering a few Required Fields when logged in and Adding a new address.
And then submitting that form, the error messages come back in English and not the translated format that is required....
1
vote
0
answers
56
views
Translate minicart , captcha module and other module Magento2
I have a website with 3 differents language : arabic, french , english. i created the i18n under my
app/code/Maget/MyModule/i18n
but there is the minicart, captcha module, strength of password ...
1
vote
1
answer
244
views
Inconsistent translations populated in the js-translation.json
Can anyone please shed some light on the js-translation.json and where it pulls the phrases in from?
We have a Spanish store view and we have 934 phrases translated in our app/i18n/vendor/es_es/...
1
vote
2
answers
1k
views
Magento2 : How to translate attribute group Label?
In magento we can translate attribute label by store.
But how can we translate Attribute Group Label
By default label will be same for all store as there is no option for set label by Store.
1
vote
1
answer
229
views
Magento 2.1 Translate text to given locale
I have a situation where I need to save values in couple of languages, Arabic and English at a save form, So I have two fields with the name Product Name and اسم المنتج i.e Product Name in Arabic, So ...
1
vote
0
answers
92
views
M1.9 Translation string with link in csv
In my login.phtml I have a custom string containing a link and I do not succeed to translate it with the translate.csv of my custom theme.
'If you are private customer please visit our <a href="...
1
vote
0
answers
187
views
Translate reserved fields in admin Magento2
I'm trying to translate the label of each fields which is described in below screen shot. I'm using Magento 2.1.6.
I have created a language pack in this directory: app/i18n/xxx/yyy/magento2-pt_br/...
1
vote
0
answers
410
views
Undefined offset: 1 in /vendor/magento/framework/App/Language/Dictionary.php
i'm trying to extend a package language that already exists. My custom text override the texts of the package. When i try to access my site after run the follow commands:
php bin/magento setup:...
1
vote
3
answers
1k
views
How to translate admin panel?
I need to translate magento 2 admin panel to Persian language.
Can anyone suggest to me the best ways to achieve this?
I suppose I need to download some language pack and then install it.
Or I just ...
0
votes
0
answers
44
views
Magento 2 : how to remove Product Price getting Translated?
I have a multilanguage site (Arabic and English) which is upgraded from 2.4.3 to 2.4.6-p3. Now the product price is translated in Arabic store view (eg: if the price is 399.5 then it is like ٣٩٩٫٥٠ ...
0
votes
3
answers
42
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
0
answers
19
views
How to Skip Translation for specific input in magento2.4.3
I have added quantity increment and decrement button in minicart
<input data-bind="value: qty, attr: {
id: 'cart-item-'+item_id+'-qty',
'data-cart-...
0
votes
0
answers
31
views
Auto Switch Language when country changed
My question is how I can switch language when country code is changed.
I have use this extension https://magefan.com/magento-2-auto-language-switcher
But they have changed store using geo ip location ...
0
votes
2
answers
210
views
How to add translate in file master.html in pagebuilder in magento 2
Like in the title - I have a problem with adding translate to file master.html in PageBuilder.
I tried these solutions:
<h3 data-bind="i18n: 'text'"></h3>
<h3 translate=&...
0
votes
0
answers
113
views
How to add html tag inside trans directive?
I am trying to add html <a> tag inside {{trans''}} but, I am getting the wrong output.
Below is how I am trying to do it.
<div class="register-button">
{{trans'<a href=&...
0
votes
1
answer
78
views
How to access variable outside of trans directive in email template?
I am trying to use a variable called reset_password_url and I cannot make it work. Below is what I have.
<a href="%reset_password_url">{{trans 'link' reset_password_url=$...
0
votes
1
answer
83
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
2
answers
57
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 ...
0
votes
0
answers
32
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
453
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
40
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
1
answer
369
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
395
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
633
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
581
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
1
answer
203
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
687
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 ...