yes.

userentered = request.env.http_host
if userentered=='www.mywebsite.com':
    T.force('en')
if userentered=='www.meinewebseite.de':
    T.force('de')
if userentered=='www.misitioweb.es':
    T.force('es')



On Tuesday, 9 April 2013 03:37:15 UTC-5, Dragan Matic wrote:
>
> Is it possible to present a language based on domain name? If I have a 
> multiple national domains registered for my web site - for example if I 
> have www.mywebsite.com, www.meinewebseite.de or www.misitioweb.es I would 
> like to do something like:
>
> if userentered=='www.mywebsite.com':
>     T.force('en')
> if userentered=='www.meinewebseite.de':
>     T.force('de')
> if userentered=='www.misitioweb.es':
>     T.force('es')
>
>
>
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to