Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to translate page layout head titles #6337

Closed
basselalaraaj opened this issue Aug 25, 2016 · 18 comments
Closed

Not able to translate page layout head titles #6337

basselalaraaj opened this issue Aug 25, 2016 · 18 comments
Assignees
Labels
bug report Component: Translation Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Progress: needs update

Comments

@basselalaraaj
Copy link

  1. Magento 2.1.0
  2. Php 7.0 and mysql 5.6

Steps to reproduce

  1. open file vendor/magento/module-contact/view/frontend/layout/contact_index_index.xml
  2. there is a tag <title>Contact Us</title>
  3. try to translate Contact Us, by adding the translation to a translation file.

Expected result

  1. Contact Us title on the contact page will become a different translated string.

Actual result

  1. Contact Us title on the contact page stays Contact Us.
@sevos1984
Copy link
Contributor

Hi! I can't reproduce it. Did you added your translation to app\code\Magento\Contact\i18n\en_US.csv and cleared cache after it?

@basselalaraaj
Copy link
Author

@sevos1984 yes!
i copied the key from vendor/magento/module-contact/view/frontend/layout/contact_index_index.xml

<head> <title>Contact Us</title> </head>

@sevos1984
Copy link
Contributor

What locale do you use? Can you give me your app\code\Magento\Contact\i18n%your_locale%.csv file?

@basselalaraaj
Copy link
Author

basselalaraaj commented Aug 30, 2016

@sevos1984 nl_NL this local is also defined in the store that i am using in the config.

@sevos1984
Copy link
Contributor

You should have '"Contact Us", "%translation%"' in app\code\Magento\Contact\i18n\nl_NL.csv and Dutch (Netherlands) set in Configuration>General>Locale. Do you have these settings?

@basselalaraaj
Copy link
Author

@sevos1984 yes!

@sevos1984
Copy link
Contributor

Try clearing cache and check your magento logs for errors.

@OwenRay
Copy link

OwenRay commented Sep 15, 2016

Same problem here, All titles set in xml under page->head->title are not translated.

@basselalaraaj
Copy link
Author

@sevos1984 i cleared my cache and checked magento logs for error, i still can reproduce it.

@sevos1984
Copy link
Contributor

Have you generated you static files?

@basselalaraaj
Copy link
Author

yes, in production mode static deployment. @sevos1984

@sevos1984
Copy link
Contributor

I mean regenerating static files after applying translation. And before that have you used bin/magento i18n:pack to add translations?

@pitangaweb
Copy link

I can confirm that I'm not able to translate contact page and checkout success page titles. I put the translations in app\code\Magento\Contact\i18n\fr_FR.csv and app\code\Magento\Checkout\i18n\fr_FR.csv, regenerated static files, but it does not help.

@basselalaraaj
Copy link
Author

@sevos1984 i did that, still not translatable.

@sevos1984
Copy link
Contributor

This should be fixed in latest develop branch commit 14028aa. Patch will be soon delivered into 2.1 branch. If that doesn't help please create a new ticket.

@miguelbalparda
Copy link
Contributor

#9992 is in the process of being merged, any chance you could test the patch? Thanks!

@magento-team magento-team added 2.1.x Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development bug report Component: Translation labels Jul 31, 2017
@magento-team
Copy link
Contributor

Internal ticket to track issue progress: MAGETWO-70010

@shankar2004nag
Copy link

Unable to translate Contact us page via app/i18n/vendorname/en_US/en_US.csv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Component: Translation Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Progress: needs update
Projects
None yet
Development

No branches or pull requests

8 participants