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

[Yaml] Automatic translation from Twig to YAML generates full path #708

Closed
setlord opened this issue Mar 30, 2016 · 2 comments
Closed

[Yaml] Automatic translation from Twig to YAML generates full path #708

setlord opened this issue Mar 30, 2016 · 2 comments
Labels

Comments

@setlord
Copy link

setlord commented Mar 30, 2016

When I use "Create translation key" from a Twig template and select an existing YAML file (messages.es.yml for example), it creates the whole path to the key.

messages.es.yml before

acme:
  index:
    main:
      title: 'Administración'

then I write in a Twig template

{{ 'acme.index.main.description' | trans }}

The plugin shows 'missing translation' and offers me to 'create translation key', I accept that, select the messages.es.yml file and it creates the whole path:

acme:
  index:
    main:
      title: 'Administración'
acme:
  index:
    main:
      description: 'acme.index.main.description'

The expected behaviour (as before PHPStorm 2016.1) would be to create only the missing key:

acme:
  index:
    main:
      title: 'Administración'
      description: 'acme.index.main.description'

Sorry about my poor english.

@Haehnchen
Copy link
Owner

related #626

@Haehnchen Haehnchen changed the title Automatic translation from Twig to YAML generates full path [Yaml] Automatic translation from Twig to YAML generates full path Apr 7, 2016
@Haehnchen Haehnchen added the todo label Apr 7, 2016
@Haehnchen Haehnchen added fixed and removed todo labels Apr 12, 2016
@Haehnchen
Copy link
Owner

readded feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants