Project:Consistent Language Interface
Version:6.x-2.1
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

I need this to work across domains. Do any module maintainers know what the technical problem was to do this? I'm going to try figure this out.

Comments

#1

Well I figured it out.

In function languagepath($lang), add sth like:

$domain = db_result(db_query("SELECT domain FROM {languages} WHERE language = '".$lang."'"));

Change $path to sth. like this, for nodes:
$path = $domain . '/' . drupal_get_path_alias('node/'.$destination_nid, $lang) . $remaining;

For other pages:
$path = $domain . '/' . $remaining;

Fancy stuff. Maybe mod maintainer can turn that into an "optional feature" or config setting.

#2

I second that!

#3

Status:active» fixed

#4

Status:fixed» closed (fixed)

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

nobody click here