Questions tagged [translate]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
14 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
0answers
12 views

How To Remove Select From Select Language from google translate in magento 2?

i used google translate for change the web site language in that how can remove the select text from select language full text
0
votes
1answer
22 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
17 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
35 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
10 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
44 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
59 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
0answers
19 views

Magento 2 weard translation bug

Recently encountered the weirdest bug i have ever seen. Here's a screenshot. I have tried to clearing cache, removing static files, redeploying static files, disabling language pack module, ...
0
votes
1answer
73 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 ...
0
votes
0answers
14 views

Magento 2: Can't translate New Shipping Address Popup Form label in checkout page

I'm using Magento 2.3.4 and i tried to translate the City input label inside the new address popup form in checkout page (when we already have an address). I tried using the en_US.csv inside the theme,...
1
vote
1answer
100 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
9 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
58 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 ...
0
votes
0answers
11 views

Localize untranslated strings

new to Magento so if i just ask something silly please be soft with me. I'm trying to create a website using Magento 2.3. I already have translated the strings of the theme located in /app/design/...
1
vote
2answers
80 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
0answers
21 views

Change translated strings from language file

first time I'm using Magento2 and I had to change the default language of frontend to Greek. I followed the guide from Mageplaza Installing via composer and after I deployed, it worked like a charm. ...
0
votes
1answer
40 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
132 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
60 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
37 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
86 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
65 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
0answers
11 views

How to apply changes made on translation file in translation package?

I created a translatin package some time ago. But now I needed to update some lines, but I cant figure out how to update the package whe I replace .csv with new file.
0
votes
0answers
23 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
1answer
36 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
0answers
23 views

Validation message not translated

I noticed that in some occasions, "This is a required field." message is not translated. (I have added translation in csv files and translation database table.) So I tried to change message, editing ...
0
votes
1answer
103 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 ...
1
vote
1answer
486 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
1answer
17 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
1answer
38 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
1answer
73 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
0answers
39 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
0
votes
0answers
13 views

How to I add URL in this translate code?

How do I add URL in this code? Thanks from this <div class="no-quotes-block" ifnot="rates().length > 0" translate="'Sorry, no quotes are available for this order at ...
1
vote
2answers
402 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 ...
1
vote
0answers
40 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
2answers
32 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
1answer
20 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
0answers
45 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
2answers
175 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
1answer
118 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
1answer
77 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
0answers
36 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
1answer
49 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
1answer
427 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 ...
0
votes
2answers
824 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
0answers
50 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
0answers
175 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
1answer
22 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
3answers
487 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ää ...