0

Where can I change the text "email" to "email to friend"

enter image description here

1

To translate new text you can add text and its translation in module language csv file like this :

'Email','Email To Friend'

File Path

app/design/frontend/[vendor]/[theme]/i18n/en_US.csv

Then run CLI command

php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
php bin/magento cache:clean
php bin/magento cache:flush
  • Is there any translate interface available in Magento Admin to translate each "text" to "another langauge text"? e.g. Drupal Translate Interface (Built-in) – AshwinP Jul 26 '18 at 6:35
  • 1
  • translate-inline only available for Enterprise Edition? – AshwinP Jul 26 '18 at 7:22
  • 1
    nop that is support for all version. – Sanju Jul 26 '18 at 11:07
1

You can find the Email under below file:

vendor/magento/module-catalog/view/frontend/templates/product/view/mailto.phtml

Copy the mailto.phtml to below location:

app/design/frontend/[vendor]/[theme]/Magento_Catalog/templates/product/view/mailto.phtml

And then change the text from "Email" to "Email to Friend".

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.