Step 1: Open your back-end Magento Connect and install this plugin for DUTCH Translation
Step 2: Grate now you have set up Dutch language pack.Bow Time to configure in backend. As you told that you have set Netherlands
as default language then go to the System >> Configuration >> General tab
.
Step 3: Now you can see Current Configuration Scope:
in above left menu. just click on drop down and select Nederlands
store. It will redirect to store view.
Step 4: now you can open Local Options
Group Tab and select In Local Dutch (Netherlands)
.
Step 5: Just click on Save Config
.
Step 6: now at front-end you can see your whole site will be translated in Dutch Language
.
This are just simple steps when you can set the Language Local.
Best Answer
Magento does not have something to redirect users based on location or language to a specific store view.
The code in the link you mentioned should work, in case you have different urls for both languages and both of them are different from the base url.
Here is an example:
But if your en url is www.example.com/ and the NL url is www.example.com/nl it won't work. You will get an infinite loop when the user should see the EN language.
To make it work, remove this code:
and replace
with