Hi,

I'm new to Symfony and began using Symfony 2 for my project a while
ago.

The application that I develope has a multi user enviroment where
every user belongs to a certain group. This groups must be able to
have there own translation for the same locale.

I have read the online documentation on symfony.com, but that mainly
referring to the Custom Translation Loaders and the Loader interface.
The first one that I can not find and the second is only the api
interface.

So there are two things I try to do:
* Make a custom loader to load the translations from the database
instead of a file, and has the Translator to use it.
  ( I have made the loader, but it is not used even when I have added
it with the addLoader and addResource methods)
* Extend or override the Translator class in the framework bundle. To
be able to manipulate the local and still be able to use the caching
system efficiently.

I have manage to get the desired behavior, but only by adding a hack
directly in the framework bundle Translator class.
That solution feels very ugly and I believe that upgrading the
framework will become an issue eventually.

I have tried to extend the framework bundle with the getParent()
returning "FrameworkBundle",

So, my question is, how is this done the "right" way with Symfony 2?

Best regards
Björn

-- 
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

Reply via email to