[Neos] How to build a multi-language site

Lorenz Ulrich lorenz-typo3 at visol.ch
Sat Sep 21 16:09:28 CEST 2013


Hi Aske

Thanks for this suggestion. I tried using HTTP_ACCEPT_LANGUAGE in the 
.htaccess file but somehow Flow seems to ignore the RewriteCondition or 
rather do it's own redirects later on. This is my RewriteCondition:

RewriteCond %{HTTP:Accept-Language} (^de) [NC]
RewriteRule http://www.mysite.com/de/ [R=301,L]

I thought that this would redirect to /de/ and not execute any further 
rules. But it doesn't work.

Thanks for any hint.

Best regards,

Lorenz

Am 10.09.2013 08:55, schrieb Aske Ertmann:
> Hi Lorenz
>
> I think you can do this in many ways. It could be done with htaccess rewrite rules using the HTTP_ACCEPT_LANGUAGE header, or in JavaScript. If you don't want to do it in htaccess you could register a custom request handler or use AOP or some interface overwriting, this might break at some point though and probably not the best solution.
>
> /Aske
>
> On 08/09/2013, at 23.05, Lorenz Ulrich wrote:
>
>> Hi Christian
>>
>>> You will want to use one site package and just create two pages "en" and
>>> "de" and underneath the respective structures. Additionally you probably
>>> need to adjust the lang attributes depending on the tree you are in, but
>>> that should be pretty easy with CASE statement in TypoScript.
>>
>> Thanks for your advice. I built my structure as suggested.
>>
>> Now I'm wondering how I could load the English or German version depending on browser languages.
>>
>> I guess there is no configuration for that. Do I need to write a plugin? Use some AOP the hook into the request?
>>
>> Thanks and best regards,
>>
>> Lorez
>>
>> Am 29.08.2013 11:36, schrieb Christian Müller:
>>
>> _______________________________________________
>> Neos mailing list
>> Neos at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/neos
>



More information about the Neos mailing list