Questions tagged [translate]
The translate tag has no usage guidance.
160
questions
6
votes
2
answers
734
views
Merge different language csv to determine which phrases missing a translation
Currently we have our shop only in English language and want to add an Italian one. So we have collected all phrases with bin/magento i18n:collect-phrases --magento --output="en_EN.csv".
We installed ...
5
votes
3
answers
7k
views
Magento 2: js-translation.json 404 (Not Found) on production mode
After switching to the production mode, an error appeared in the console :
pub/static/adminhtml/Magento/backend/en_US/js-translation.json 404 (Not Found)
pub/static/adminhtml/Magento/backend/en_US/js-...
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 ...
4
votes
1
answer
8k
views
Magento2: List translation strings from a module
In order to build this CSV app/code/Vendor/Module/i18n/en_US.csv, I want to get an array from my module with all the translation-ready strings from all files types (.php, .phtml, .js, .xml).
.php &...
4
votes
2
answers
2k
views
Translation of name prefix options
I'm setting up a Multi-store in English, French and German. I'd like to enable Name Prefix as an optional field but Customer Configuration > Name and Address Options is only editable at the website ...
4
votes
2
answers
3k
views
Magento 2 - extend core module translation i18n for a very specific area [duplicate]
Magento 2 translation problem (my locale is set to en_US):
I want to change the "Email" label on the Contact Us page to "Email Address:". However, I DO NOT WANT the "Email" label changed anywhere ...
3
votes
1
answer
2k
views
Magento2 having Issue in language installation "Duplicated translation is found, but it is not allowed"
I am trying to install German language pack and its showing me error
' Duplicated translation is found, but it is not allowed '
Commands:
wget https://github.com/mageplaza/magento-2-german-language-...
3
votes
1
answer
89
views
Magento translation of configurable product
I am using pickpack to print a PDF sheet of the purchase but it is using from Catalog/Attribute/Manage Attribute/"the name of the attribute"/Manage Label/Option and not from Admin but from the Default ...
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
1
answer
2k
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 ...
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)">...
2
votes
1
answer
368
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&...
2
votes
1
answer
6k
views
translation in html file
i have one legacy module with .html file, which contains label which i'd like to translate.
Originally it looks like this:
<label class="label" for="carrier_department"><span>text to be ...
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
222
views
How to translate string on mobile menu?
Simple question, how to translate string "settings" on mobile menu?
2
votes
1
answer
114
views
Translator not working on helper class
I try to translate a text in a function inside sales_helper_data with this code $this->__('TEXT') but it just returns the same input string.
I Also tried Mage::helper('sales')->__("TEXT"), Mage:...
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
2
answers
1k
views
Can't translate mini cart magento 2
I put this under i18n under my theme: "View and Edit Cart","Afficher et modifier le panier",module,Magento_Checkout
also i can't get the translation
"You added %1 to your shopping cart.","Vous avez ...
1
vote
1
answer
485
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('...
1
vote
1
answer
3k
views
Magento2-Translation not working in js files
I was trying to make translation in JS files.
I have tried
1
require([
'jquery',
'jquery/ui',
'mage/translate'
], function($){
$(window).load(function() {
alert($.mage.__('Your ...
1
vote
2
answers
36
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!
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 ...
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:
...
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 ...
1
vote
7
answers
2k
views
I want to translate "Buy" and "save" word in tier_price.phtml file. magento 2
I want to translate "Buy" and "Save" word in tier_price.phtml file.I have added the word in translation csv file but it is not working form me.
Refer screenshot
PATH :
vendor/magento/module-...
1
vote
1
answer
1k
views
get translated string Magento 2
In Magento1 we can get translated string by
_getTranslatedString() from app/code/core/Mage/Core/Model/Translate.php
but in Magento2 there is not such methods. Is there any alternative method ...
1
vote
1
answer
746
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
2
answers
539
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 ...
1
vote
1
answer
418
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"
...
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 ...
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 ...
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
1
answer
82
views
Change existing translation?
This is my translation file in a custom extension:
/html/xyz/app/code/FireGento/MageSetup/i18n/de_DE.csv
I changed one translation in that file and afterwards I executed this to gather the ...
1
vote
1
answer
911
views
How to translate escapehtml (Filter by)
Hello i cant to translate this one http://prntscr.com/kt3mrb
my code is
<div class="block-content filter-content">
<?= $block->getChildHtml('state') ?>
<?php if ($...
1
vote
2
answers
661
views
custom language package not working
Since the German translation of "Grid" within the german language pack is currently wrong (see here), I wanted to override it using a custom language pack (since you cannot override translations of ...
1
vote
2
answers
3k
views
Custom Translation in Magento 2
I cannot make translation for Magento 2. What I've been doing is:
Created a custom theme
Now I want to apply some german translations
Made a csv in vendor/theme/i18n/de_DE.csv
Tried to bin/magento ...
1
vote
1
answer
3k
views
translating a string with html elements in it
I'm having trouble translating this string in M2. It has '' element in it, I have tried all possible string splitting options but none of them seems to work. Is there some kind of a trick that I don't ...
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
1
answer
497
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
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
118
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 /* @...