1) Are you sure Doctrine is the best choice?
2) Why not simply use PHP for templating?
3) Using YAML would be just as bad, if you want to use something use something standard for localization like gettext or XLiff.
2) Why not simply use PHP for templating?
3) Using YAML would be just as bad, if you want to use something use something standard for localization like gettext or XLiff.
2). See: http://twig.sensiolabs.org/ (Why yet another template engine?)
3). Personal preference I guess but I hate gettext. I much prefer the pattern of using labels in your template (e.g. menu.item1) and then looking up that label in the desired language file e.g. messages.en.yml. And I've never had a problem with translators working with YAML files (i.e. the syntax is easy for them to grok)
I'm agree that standardization would be just fine(c), and I like the Twig syntax, but I think the "YATL, we should use Twig" argument is not relevant.