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

riccardoR’s picture

In settings.php there is a variable named $base_url and also
there is a parameter named RewriteBase in .htaccess

Those 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:

  // in settings.php
  $base_url = 'http://www.timurova.com/nove';  // NO trailing slash

and in .htaccess :
RewriteBase /nove

timurek’s picture

Thanks 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 /nove does not work, no change.

jose reyero’s picture

Project: Internationalization » Drupal core
Version: 6.x-1.0-beta3 » 6.4
Component: Code » language system
Category: bug » support

I 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

ainigma32’s picture

Status: Active » Postponed (maintainer needs more info)

@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

ainigma32’s picture

Status: Postponed (maintainer needs more info) » Fixed

Looks 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

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.