JMSTranslationBundle icon indicating copy to clipboard operation
JMSTranslationBundle copied to clipboard

Feature/extract concat strings

Open murhafh opened this issue 8 years ago • 3 comments

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #296
License Apache2

Description

Just added a small change so in case you have a long concatenated strings in your code, you can use the bundle to extract those strings into your translation files. It basically converts the concatenated strings into one string before passing it to extraction.

Todos

  • [x] Tests
  • [x] Documentation
  • [ ] Changelog

murhafh avatar Jul 29 '16 14:07 murhafh

This is replacing https://github.com/schmittjoh/JMSTranslationBundle/pull/336

I'm not sure about the part "It only adds the ability to handle concatenated strings to regular php files. Is it not possible to support this with other files like the form extractor?"

I haven't used that feature but I can add the fix there too, I would need some details though on where to add the fix, is it only affecting FormExtractor class? Or it should be added in other places too?

murhafh avatar Jul 29 '16 15:07 murhafh

I like this PR, I only had some questions

Nyholm avatar Aug 04 '16 15:08 Nyholm

ping @murhafh, you still looking to get this merged?

ABM-Dan avatar Aug 10 '16 15:08 ABM-Dan