On Sun, Jul 6, 2014 at 12:52 PM, Ariel Constenla-Haile
<[email protected]> wrote:
> Hello Aivaras Stepukonis,
>
> On Sun, Jul 06, 2014 at 04:41:21PM +0300, Aivaras Stepukonis wrote:
>> The part that still needs addressing is how to redirect AOO website visitors
>> to their native subsites based on their locale.
>>
>> Here's a quick example: if I type <http://www.mozilla.org> in the browser's
>> address bar I am automatically referred to <http://www.mozilla.org/lt> as my
>> locale is Lithuania. This is very convenient from a native speaker's point
>> of view. Now, if I do the same thing with <http://www.openoffice.org> I am
>> not automatically referred to <http://www.openoffice.org/lt>, I can reach
>> the latter destination only by manually appending the suffix "lt."
>>
>> Can the Mozilla scenario be replicated at <http://www.openoffice.org>?
>
> Mozilla uses Python[1] on its server; AFAIK the ASF does not use/allow
> server-side scripting, so the solution needs to be implemented on the
> client-side.
>

Though we should be able to do redirects via Apache HTTP Server and
mod_rewrite.  That can look at request headers and pick out the
Accept-Language header, right?  This assumes the user's browser is
configured properly.

-Rob

> [1] https://github.com/mozilla/funfactory
> https://github.com/mozilla/funfactory/blob/master/funfactory/urlresolvers.py#L69
>
>
> Regards
> --
> Ariel Constenla-Haile
> La Plata, Argentina

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to