You can use short lang code with DoctrineExtensions On 25 Тра, 14:44, Conrad <conrad.barthel...@googlemail.com> wrote: > I'm using the > DoctrineExtensions<https://github.com/l3pp4rd/DoctrineExtensions>to translate > some of my Database contents using the IETF language code > en_US, fr_FR and so on. > Everything is working very nice so far and I can switch the languages > instantly. > > Now my customer would like to have some urls with a locale string in it, but > he likes the short ones: > /en/soccer > /fr/football > > instead of > /en_US/soccer > /fr_FR/football > > Now my question is, can I somehow mix these short language codes for the > routing *only* and translate them internally back to the long one for the > rest of my code? > I know that some languages will then be missed out like british english, > canadian french or what ever.. but thats ok.. > > Cheers, > Conrad
-- 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 users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en