Kdyby / Translation

Integration of Symfony/Translation into Nette Framework
https://packagist.org/packages/kdyby/translation
Other
88 stars 84 forks source link

Macro translator and included block #75

Open martinsifra opened 9 years ago

martinsifra commented 9 years ago

So if I use this

<h1 n:block="title">{_sign.template.signIn.h1}</h1>

and somewhere I want to include block „title“, I get translated sentence corectly.

But if I use macto translate like this:

{translator sign.template}
<h1 n:block="title">{_signIn.h1}</h1>

In incuded block appears just text „h1“ and in a place of block definition appears translated message.

martinsifra commented 9 years ago

I know what's is the problem. When I include the block somewhere out, where isn't used translate macro with correct path, the translator doesn't know where to look for the message and correctly looks only for „h1“ without any path.