Hello there,
I was playing with Drupal 6 internationalization module today, and I found really ugly problem.
I am on Drupal 6.4, languages are detected based on domain name. I have www.timurova.cz for czech and www.timurova.com for english version. Original web is on Drupal 5, and before I will start migrate from 5 to 6, I want to set everything up, migrate all contents, etc., so my Drupal 6 instalation is located for the time of beeing in "nove" folder (so Drupal 6 is accessible at www.timurova.com/nove in english, www.timurova.cz/nove in czech language).
Czech is selected as default language. When I browse the czech version,
bug 1) any link created by internationalization module to English versions of content is pointing to www.timurova.com instead of www.timurova.com/nove . It is not so horrible and I may live with this.
When I go to www.timurova.com/nove, there are two issues:
bug 2) links created by internationalization module are broken as well, for example link to Czech version of node promoted to front page is pointing to www.timurova.com/nove/vítejte instead of www.timurova.cz/nove/vítejte
bug 3) any form I submit on site is trying to take me to right page, but without suffix. For example if I try to search for something from front page, it is redirecting me to www.timurova.com/search/node/search-string instead of www.timurova.com/nove/search/node/search-string . Similiar situation is in administration module, the "nove" folder, where is Drupal 6 located in, is ignored.
I am pretty sure that these troubles will be gone when I will move Drupal 6 to the web root, but I can't do it yet, I have to be prepared first, and have all content migrated, and these bugs, specially the bug 3) are really complicating whole migration. Bug 3) makes almost impossible to setup anything on non-default language domain.
I think that these issues shall be solved, because Drupal with Internationalization module with domain-based language selection not to work in any subfolder, or a workaround should be found.
Comments
Comment #1
riccardoR commentedIn settings.php there is a variable named
$base_urland alsothere is a parameter named
RewriteBasein .htaccessThose parameters are useful when Drupal is installed in a subfolder.
I never tried to use them with Drupal 6/Internationalization, but IMO you could try to assign some values to those variables to see if it helps.
For example:
and in .htaccess :
RewriteBase /noveComment #2
timurek commentedThanks for reply, I am afraid this won't be usefull in my case - I have two domains, so I can't set one $base_url.
Setting
RewriteBase /novedoes not work, no change.Comment #3
jose reyero commentedI think:
- Yours is a specific trouble caused by non standard set up, so I wouldn't call it a bug.
- This path creation is done by Drupal core now, so I don't think it is i18n module.
Reassigning
Comment #4
ainigma32 commented@timurek: If I understand correctly you only have the nove sub folder because of your migration. You also mention a workaround.
I suggest you create two subdomains: test.timurova.cz and test.timurova.com and host your temporary sites in there.
That way you won't be troubled by the sub folder.
Will that work for you?
- Arie
Comment #5
ainigma32 commentedLooks like timurek won't be posting any feedback so I'm setting this to fixed.
Feel free to reopen if you think that is wrong.
- Arie