Postponed (maintainer needs more info)
Project:
Localizer
Version:
5.x-3.4
Component:
User interface
Priority:
Critical
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Feb 2008 at 14:12 UTC
Updated:
3 Jul 2008 at 14:28 UTC
Comments
Comment #1
Roberto Gerola commented> How can I prevent localizer to add those codes to paths?
You cannot.
They are necessary to make localzier working correctly, and it is the same
way the Drupal 6 follow.
>localizer paths cause error 404 in all pages
You didn't make the necessary changes in your settings.php file
as explained in the README
Comment #2
acdtrp commented...
Comment #3
acdtrp commentedI have the same problem and I cannot fix it. I receive a 404 page for every admin or whatsoever url. I have inserted the line in settings.php and at first it still wouldn't work because I'm on a multi-site setup and I had to change the path from /sites/all to ../all/ and then I had a different problem. I hit F5 and the URL was something like /en/en/en/en/en/en/en/en/en and Firefox displayed "incorrect redirection" error message. I had to delete the folder to be able to uninstall the module. Is anyone using Localizer 3.x on multi-site setup?
Comment #4
teagle commentedthis is not a solution for the admin problem described above, and may be off-topic, but it might help those of us who would like language codes not to be visible in paths, and therefore may help anyone ending up on this page because of the slightly general nature of the title.
We have a multisite set-up of drupal 5.7. The main site is multilingual, the subsites are monolingual, so the language code is superfluous on subsites. It seems that if you use clean urls and pathauto as well as localizer, you can switch most of the language codes in your paths like this:
1) when you create content, give it the URL alias you want (eg node/222 = hotels-in-amsterdam)
2) when you build a menu, DON'T point to your new alias, point to the original node number instead, drupal and the modules will manage the translation to the URL alias
It seems (though I wouldn't guarantee it to anyone) that this maintains and manages nice, clean, readable urls and eliminates the language code from paths, except (in our case) for the homepage.
(we're using: Drupal 5.7 for a multisite setup with Clean URLs activated / Localizer 5.x-3.4 with every option activated / Pathauto 5.x-2.0)
Hope this helps, sorry if it's distracting!