We are working on a website (symfony 1.2 and doctrne) that need to be
in 2 language: french and english.  We needto have route translate in
each language  so :

route_a:
  url :  /my/route/in/english
  { module: abc ,  actions:  xyz }

route_a:
  url :  /ma/route/en/francais
  { module: abc ,  actions:  xyz }


We would like to keep it simple as possible,  so  just one routing
file  and if it possible don't duplicate our file or route if its not
possible we can live with it but we would prefer to have something
really simple.

The best solution would be something that work with i18n  or with
something similar to i18n.


So far we have found a few possible solution but my boss believe there
something simple than those.

Solution A:  duplicate our routing   so for each route something like
that :
 route_a_fr
 route_b_fr


Solution B:   Create our own routing handler and modify routing file
to look like something like this:

route_a:
  fr_url :  /ma/route/en/francais
  en_url :  /ma/route/en/francais
  { module: abc ,  actions:  xyz }

Solution C:  modify routing handler  to handle multi routing.yml file
one for each language and based on culture load to right routing.yml
file ... so if the culture is set english,  routing_en.yml would be
used and in french routing_fr.yml


Solution D: ...


The solution we are looking for is something like ysDimention that
work with 1.2 and dont use any external cache system or if there any
build in system for translating our route that would be awesome,


I need to know if anyone had to do something like that on their
project and what was your solution or what would be your solution if
you never had  ?  Anyway we are open to any suggestion, so if you have
any idea how we could do it  dont be shy :)


Thank in advance, Yannick

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to