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

Use entry's locale when auto generating it's title #2722

Closed
nilsenpaul opened this issue Apr 11, 2018 · 1 comment
Closed

Use entry's locale when auto generating it's title #2722

nilsenpaul opened this issue Apr 11, 2018 · 1 comment
Labels
bug severity:minor Cosmetic issues or bugs with simple workarounds

Comments

@nilsenpaul
Copy link
Contributor

nilsenpaul commented Apr 11, 2018

Description

If I let Craft auto-generate a title for an entry, like this:

{product.one.productCategory.level(0).one.verb|capitalize} "{product.one.title}" {{'in'|t}} {location.one.title} {{'on'|t}} {date|date('j F Y')}

... it uses the Dutch translations file for the two translations, while the entry is in German. I assume that not the entry's locale, but MY locale is used.

Steps to reproduce

  1. Create two sites with different locales (one of which is your own account's locale), and two translation files with corresponding translations
  2. Create a section with an auto generated title like {{'translate me'|t}} {slug}
  3. Create and save a new entry in 'the other' locale and see the title being generated using the locale of your account, not the locale of the entry

Additional info

  • Craft version: 3.0.2
@nilsenpaul nilsenpaul changed the title Respect entry's locale when auto generating it's title Use entry's locale when auto generating it's title Apr 11, 2018
@brandonkelly brandonkelly added bug severity:minor Cosmetic issues or bugs with simple workarounds labels Apr 11, 2018
@brandonkelly
Copy link
Member

Fixed for the next release, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug severity:minor Cosmetic issues or bugs with simple workarounds
Projects
None yet
Development

No branches or pull requests

2 participants