Questions tagged [translate]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
35 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
12 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
8 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
33 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
8 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
35 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
9 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
1answer
31 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
15 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
32 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
116 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('compare_list_url')), ...
0
votes
1answer
35 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
35 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
34 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
46 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
21 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
26 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
22 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
53 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 ...
0
votes
1answer
172 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
16 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
34 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
52 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
37 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
3answers
309 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
37 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
24 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
0answers
14 views

bulk for products translation

We have Magento 2.3.2 in 2 view (English and Arabic) & I have 1000 Products, so how to translate bulk for products from English to Arabic then Import it again if anyone have another solution for ...
0
votes
1answer
17 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
42 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
0answers
138 views

Magento2 : Product attribute label translated into wrong language

I am currently experiencing a weird issue, where Magento the product attribute translated into a wrong language. I am running a Magento with more than 10 websites and each website has 1 or 2 store ...
0
votes
2answers
133 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
79 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
0answers
111 views

Magento 2.3.2 how to delete or translate in cart “Enter your destination to get a shipping estimate.”

I have been translated my Magento store, but I don't know how to translate or delete part of summary in cart. In inline translation I can't translate it too. Do you have any ideas?
0
votes
1answer
72 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
27 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
41 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
300 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
550 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
47 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
131 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
355 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
1answer
66 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
1answer
51 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. ...
0
votes
1answer
23 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
1answer
57 views

How to translate string on mobile menu?

Simple question, how to translate string "settings" on mobile menu?