> From: Tirta K. Untario
> Subject: Language code prefix in url
>
> /en/my_app/something_here/1/2/3/4/
> /de/my_app/something_here/1/2/3/4/
> /fr/my_app/something_here/1/2/3/4/
My suggestion would be to look at e.g. Apache's URL rewriting rules.
Take those URLs and produce
/my_app/something_here/1/2/3/4/?lang={en,de,fr}, then pick that up in
your environment. Maybe make some middleware that picks that out of the
GET parameters automatically and gives you it in some useful way. I'm
guessing what you want to use it for is to select which directory you
pick your templates from.
Just a thought,
--
Paul Wayper
SYSTEMS ENGINEER
TransACT
Telephone: 02 6229 8026
Mobile: 0422 392 081
PO Box 1006, Civic Square ACT 2608
www.transact.com.au
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django 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/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---