I am not sure if I post this here or in post-installation.

Goal:
The reason I set this up is because I want the doctype language to change when somebody hits a page in English (Accessibility).

Problem:
The added language overrides the native language in the url path.

According to what I understand this is the way to do it, but maybe I am understanding this completely wrong.
(And change maybe to definitely because it is not working ;) )
I have searched through the search engines and the language handbook.

Default language install is English. The second language is Dutch. In the language module I added this Dutch language with the nl prefix, and chose 'Path prefix only' in the configuration (Language negotiation). Now every url shows with the prefix /nl/ including the English pages when they are set to English. When I turn the language module off it goes to the /en/ path.

-I turned off Clean URLs but this doesn't make a difference in the url path (nl will still be shown).
-'Content type' 'Multilingual support' is set to 'Enabled'
-Pages are set to the language they are in.

Comments

Anonymous’s picture

Edit: When I turn the Dutch language off it does show the /en/ in the url path for the English pages.

Anonymous’s picture

Aha.

Cleared the browser cache, restarted server.

Now here is the weird part:

If I click on a link it will add the /en/ code, and if I do a search from the /en/ page then it will keep showing the /en/ code. But if I click on a /nl/ link and then do a search it will attach a /nl/ to the search and all the search results.

So far the only thing I have been able to find, but I can't figure out if this is related or is talking purely about double search results:

http://drupal.org/node/237696

Has anyone experienced the same problem?

Anonymous’s picture

If I remove the /nl/ manually from the search path after I hit the search button from the /nl/ side. (I hope that makes sense) then it will show the assigned /en/ on the English pages. If you follow the link then it will also keep the /en/.

But (I am not sure about this part, because I had to reassign the Dutch pages) if I remove the /en/ manually from the search then it will show the /en/. This is not confirmed though.

Edit: Is there anyone that does have this working without problems? Thank you, it would help me find out what is going wrong.

Edit2: The install language is English. Changed the default language in the language menu from English to Dutch . This caused the search page when click from a /nl/ link to load without the language code on the Dutch side. All url's in the search results then show as /node/123 without pathauto alias. Using the search from /en/ it will replace /nl/ with /en/.