Simpletest with multilingual sites

Events happening in the community are now at Drupal community events on www.drupal.org.
dasjo's picture

i am using simpletest with a multilingual drupal 6 site. whenever simpletest executes a link, by using clickLink or drupalLogin for example, the url gets corrupted.

this is because the language code always appears twice in the url. for example: http://example.com/de/de/node.

i was wondering if someone else ran into this issue when testing a multilingual site with simpletest? do you know of any workarrounds / fixes to this issue? (http://drupal.org/node/944066)

thanks a lot,
josef

Comments

Language prefixes

GerdC's picture

Hi Josef,

I've seen this.
But in cases where I didn't need Unit Tests to see a bug like that. I also saw it in the browser.

It started that I, as a beginner, did not notice that /admin/settings/language was configured asymmetric (de prefix for german, no prefix for English).

I "fixed" this for the english part by introducing a language prefix in several places (pathauto and manually), which leads to links as you describe in the language widget. The simple and only way (with many side effects - so it's much work) around this was to make /admin/settings/language symmetric including English and German prefix.

Hope this helps.

Gerd

Testing and Quality Assurance

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: