Posted by dasjo on November 1, 2010 at 4:38pm
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
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