-
-
Notifications
You must be signed in to change notification settings - Fork 141
Open
Labels
Description
While adding translations in my templates, it would be great if that could speed up by generating the stub code for a translation. Currently no generators are there, except the XML tag while pressing ALT + Insert
.
Would be great a stub for a Twig translation filter could be added from that menu. Especially because the filter has to be added after the quote characters, so now that takes lot of presses on the arrow keys.
Metadata
Metadata
Assignees
Labels
Projects
Milestone
Relationships
Development
Select code repository
Activity
rvanlaak commentedon Jun 19, 2015
@Haehnchen what do you think about adding extra stubs speed up things?
Now
ALT + ins
only shows "Generate > XML tag", but it could always result in generators for the following tags and place the cursor at the place of the ‡ sign.We could also think of other tags where the filter is located after quotes, and require intensive navigating with the keyboard arrows.
[-]Twig generator for trans[/-][+][Twig] Generator for trans[/+]Haehnchen commentedon Jun 28, 2015
it only make sense with a dialog to select a translation and the "trans style" to insert. all other are more like "code templates"
rvanlaak commentedon Jun 28, 2015
Would the plugin be able to add code templates then?
migrate Twig translation annotator to inspection; drop possible memor…
add a persistent Twig translation annotator to create keys in all kno…
[Twig] add generator for translation #506
Haehnchen commentedon Sep 19, 2017
poc is ready, sweet stuff ;) same logic as translation extraction to detection domains and provide a preselected list
[Twig] add generator for translation #506
[Twig] add generator for translation #506
[Twig] add generator for translation #506
[Twig] add generator for translation #506