Suppose I build a complex content profile with many address fields, bio fields, past jobs, friends and images ...

Now I have different webites like www.site.de, www.site.co.uk, www.site.net ... some in English, some in German. I run all these sites on a Drupal multisite installation with a single codebase and different SQL data bases. In order for my user to access all sites I use a shared data base for users, user profiles (+ profiles fields), ...

Now here is my question: will I have to install the profile fields seperatly on all servers (in the appropiate language for each server) Or can I run the fields from the shared data base to all servers in the correct language? And I don't mean the later content that the user will enter, I mean the labeling of the fields ... can I translate the fields I build with content profile?

English

- First name
- Last name
- Address
- Zip code
-...

German

- Vorname
- Nachname
- Adresse
- PLZ
-...

Regards, Paul.

Comments

baff’s picture

Same situation!

For drop down lists I have found, that a php code asking the $language variable does it: e.g. for choosing one's sex:

global $language;

if ($language->name == "English")
{
$sex= array (1 => male, 2 => female);
return $sex;
}
if ($language->name == "German")
{
$sex= array (1 => männlich, 2 => weiblich);
return $sex;
}

this code is in the php part of allowd values.
This code will override the allowed values list.

As allowd values I have set
m
f

but how to translate help text and field titles?

Regards

David