schmittjoh/JMSTranslationBundle — Issue #14: Content of desc filter not dumped
Author: althaus
Created: 2011-12-06 13:09:53+00:00
State: open

Hi,

sorry to bother you again here, but I'm in a kind of a hurry. :|

I've implemented your bundle and after stumbling upon a minor issue [1], I've got a more severe one. I'm using Twig and added the desc filter to my templates. It's working as I'd expect it in the on-the-fly dev environment, but it's not using the value of the desc parameter at all when I extract the translation. O_O

My config:

```YAML
jms_translation:
configs:
app:
dirs: [%kernel.root_dir%, %kernel.root_dir%/../src]
output_dir: %kernel.root_dir%/Resources/translations
output_format: yml
excluded_names: [*TestCase.php, *Test.php]
excluded_dirs: [cache, data, logs]
```

Example from Twig:

```Twig
{{ 'button.delete'|trans|desc('Löschen') }}
```

The dumped YAML file just contains:

```YAML
button:
add: button.add # FIXME
cancel: button.cancel # FIXME
delete: button.delete # FIXME
```

I also tried a XLIFF dump and the source nodes are also not filled correctly. :(

I'll buy you a beer or two, if you ever come to Braunschweig. :D

Cheers
Matthias

[1] https://groups.google.com/forum/#!topic/symfony2/3a1WCZYK9Us