Maybe then the best solution will be to support additional template parameter
in helpers like:
{% trans 'topic.create_new', 'Create new topic' %}
OR
{% trans 'topic.create_new' or 'Create new topic' %}
Then in cases when we haven't got Translation enabled (core bundles) - we can
fallback flawlessly to default value by evaluating only template helper. Also,
it fixes problem with initial english catalog creation from templates (we have
both defaults and keys). And if user don't want to specify default value
everywhere - second parameter to `trans` is optional. If Translation not
enabled and there's no default parameter - "topic.create_new" OR exception will
be in place of `trans` helper call.
--------------------------------------------------Konstantin Kudryashov
(everzet)
http://about.me/everzet/bio
On вторник, 22 февраля 2011 г. at 22:39, Fabien Potencier wrote:
On 2/22/11 11:15 AM, Jordi Boggiano wrote:
> > Sooo.. it seems more or less everyone is on the message keys side.
> >
> > Fabien can you concede this one or is it really an issue for you?
>
> My only concern, and one that Bernhard mentionned, is that it adds the
> Translation component as a mandatory dependency to Validator. Moreover,
> it means that even if you website is not i18n, you must use the
> Translation component and the Twig extension in your templates.
>
> So, I would recommend to keep the validator messages as is and use keys
> for end-use applications.
>
> Fabien
>
> > Cheers
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/symfony-devs?hl=en
>
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en