Skip to content
Advertisement

Tag: translation

Is there way to pass Symfony variables to translation without keys

we are now using custom translations for our project in PHP and I want to migrate them to Symfony ones. Everything looks great, but my only concern is that variable placeholders needs key to bind successfully, can I somehow change the code to accept translation variables in sequence (without keys)? Let me show an example: Our code now: But this

Gettext or database translation

Which is better: gettext custom MySQL+cache based functionality Gettext is a sort of builtin feature, so I assume it’s tweaked for performance. Using poedit is a pain and impossible to show to any client. A custom functionality allows for simple translation interface. But might be heavy on php/db usage. I suppose, which one would you use when? Answer Localization is

Advertisement