Questions tagged [translate]
The translate tag has no usage guidance.
160
questions
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 ...
0
votes
1
answer
502
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
538
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
603
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
484
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
441
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
120
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
416
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
1
answer
725
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 ...
0
votes
0
answers
94
views
Magento2: {"0":"Class argument is invalid:
we have issue with extension translate language MageCube on our magento version latest 2.3.4 and when we try open catalog with products then get issue:
{"0":"Class argument is invalid: MageCubeTeam\\...
0
votes
1
answer
385
views
How to translate string with link?
Magento 2.3
How would I translate this in a CSV file:
$message = __('You added <a href="'. $product->getProductUrl() .'">%1</a> to your shopping cart.',
$product-&...
0
votes
1
answer
602
views
Magento2 - Translate title property in knockout js html template
I have href html tag that looks like this in my knockout html template
<a data-fancybox data-src="#price_policy" href="javascript:void(0);" title="Shipping Cost" data-bind="i18n: 'Shipping will ...
2
votes
1
answer
8k
views
Magento2 Knockout js - translate variable text
I'm trying to translate text that comes from a variable in Knockout html file, but I can;t find the right way. Here's some things I tried:
<dt class="label" data-bind="html: i18n(option.label)">...
0
votes
1
answer
97
views
How can I know which country code should be used for translation file?
I want to translate store to Serbian language and in official Serbian translation there are 2 types Alphabet and Cirilic letters:
sr_SP.csv
sr_CS.csv
But there is only one Serbian in localisation ...
0
votes
1
answer
338
views
Magento 2 - How to translate JS form errors?
In Magento 2, I try to translate Javascript messages "This is a required field."
In create account form :
I selected Spanish language but javascript errors are not translated, they appears in ...
0
votes
1
answer
315
views
Magento2 Translate cross sell, up sell and related products
we have magento 2.1.16 ce
I can't get these three title translated:
cross sell, up sell and related products
Inline translation does not work for this ...
They are not editable.
And I also have an ...
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
1
vote
2
answers
1k
views
Translate in Araic language Magento 2.3.3
Product Name, Description and Layerd Navigation not Translate In Arabic Language.
Using Arabic Language Pack Install Language Pack.
1. Product Name
2. Product Description
3. Layerd ...
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 ...
1
vote
2
answers
92
views
magento 1.9 : anchor tag not working in language translation
I want to place anchor tag in given text>so i kept like this
<?php $var=Mage::getBaseUrl();
echo $this->__("Iam <a href='%s'>here</a> with link",$var) ?>
I wrote ...
0
votes
1
answer
66
views
M2 - Not creating nl_NL.csv in static files
I'm running Magento 2 in developer mode, but I need to translate the error message:
Provided Zip/Postal Code seems to be invalid. Example: 1234 AB/1234AB. If you believe it is the right one you can ...
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 ...
0
votes
2
answers
605
views
How to translate Magento 2 My account page
im trying to translate My Account page. I was looking for CSV file but did not find any. Could you help me with this please ?
0
votes
1
answer
483
views
Translate a label for checkout page "ZIP/POSTAL CODE" to just "POST CODE" : Magento2 [duplicate]
does anyone know if there is a way to create a label for the checkout on teh admin panel? we need to change the standard text "ZIP/POSTAL CODE" to just "POST CODE" at teh checkout.
I am new on this, ...
0
votes
1
answer
143
views
Magento 2.3.1 minicart.phtml translations
I'm trying to translate the string items from
app/design/frontend/<Vendor>/<theme>/Magento_Checkout/templates/cart/minicart.phtml without success.
I have a dictionary already created in ...
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 ...
0
votes
1
answer
106
views
M2 - Translate newsletter status message
I need to translate this message:
{"status":"OK","msg":"Thank you for your subscription."}
I've done a search in all the files but I cannot find this string to translate... I have a Ajax ...
0
votes
1
answer
1k
views
Can't translate text in cookie popup in magento 2
Can't translate text in cookie popup in magento 2
I tryed add this text to de_DE.csv, but it not translate
"We use cookies to make your experience better.","Wir verwenden Cookies, um Ihre ...
1
vote
2
answers
4k
views
Magento 2: Translation is not working in html template using data-bind
I have inserted the string to translate into the app/i18n/lg_lG.csv file.
I run the command to deploy static files, clean cache, but the string is not translated.
The string is located in this file:
...
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 ...
0
votes
0
answers
845
views
Magento 2 Get Translated String
Is there a way to get translated string in php code?
Something like this:
$string = __('something');
foreach ($stores as $store){
echo $store->getName().': '.$store->getTranslated($string)."\...
0
votes
1
answer
29
views
M2 - Search for translations
I need to translate some notification messages, but I can't find the correct string to translate... I've installed a extension for a dutch language pack, but where can I find the files where the ...
2
votes
3
answers
1k
views
Unable to translate message in magento 2
I want to translate quantity error message.
I changed in
app/design/frontend/Smartwave/porto/i18n/fi_FI.csv
"We don't have as many ""%1"" as you requested.","Meillä ei ole pyytämääsi määrää ...
2
votes
1
answer
367
views
Magento 2 Localization Adding Links in CSV
How to add text with link in csv file of a module. For example,
"An error occurred"
I want to add text with link like below for this message.
"An error occurred.Please contact our customer service&...
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
1
answer
81
views
M2 - Dutch date format
I'm using Magento 2.3.1 and I've installed the Dutch language pack. But the date stays in English like: 08 May 2019 instead of 8 Mei 2019. How can this be changed?
The code:
<?php echo date('d M ...
2
votes
1
answer
222
views
How to translate string on mobile menu?
Simple question, how to translate string "settings" on mobile menu?
0
votes
3
answers
920
views
Can anyone help me to get frontend translations only? Magento2
My site having two different languages, English and French. I have used MagePlaza's French language pack for the French translations. The translation CSV file contains more than 14k rows! So, it is ...
1
vote
2
answers
1k
views
M2 - Translate "We received too many requests for password resets. Please wait and try again later or contact"
Where can I find the location to know the exact translation string? I need to translate this sentence "We received too many requests for password resets. Please wait and try again later or contact" to ...
1
vote
1
answer
103
views
How to collect admin phrases?
I am using i18n:collect-phrases command but seems that it collects only frontend phrases.
I need to collect only admin panel phrases!
For example, I have downloaded some language pack, but it does ...
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
129
views
How to translate " This is a required field. " in magento 2
How to translate " This is a required field. " in magento 2. I was change in file csv but it not working, please help me!
1
vote
1
answer
241
views
Translate text from blocks in admin panel
I am translating text in the blocks with by putting text instead of categories word{{trans "Categories"}}, but I have some text with span element and I don't know how to translate them, If anyone can ...
0
votes
1
answer
2k
views
Magento 2 translate the .pdf invoice
I've set up a Magento 2.3.0 shop, and I have also translated it. Everything seems fine on the front-end, but one part that I can't get translated, are the .pdf invoices. I have tried to add those ...
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', {
...
5
votes
5
answers
7k
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 ...
1
vote
1
answer
70
views
Translation of a module
How can I translate an extension (module) ? I tried to create the i18n folder and create the it_IT.csv file. But it does not work, how can I do translation?
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 ...
0
votes
2
answers
313
views
Magento 2 Klarna checkout translate label
How to translate "Signup to our newsletter" label to norwegian? Tried using Inline translation tool, but this line can't be translated using it. Also tried translating it in my i18n theme folder in ...
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 ...