Language dependent variables
There are a number of variables through all Drupal that hold texts which need to be translated and also many other things -like logos, primary links, etc..- that you may want to have different for every language.
This module supports language dependent variables, which are normal variables that will be set up to have a different vale for each language.
To enable this feature, the list of variables to be made language dependent must be defined in the configuration file settings.php. You need to open a text editor and add something like this to that file:
$conf['i18n_variables'] = array(
// Site configuration
'site_name',
'site_slogan',
'site_mission',
'site_footer',
'anonymous',
// Node help
'blog_help',
'story_help',
// User configuration
'user_registration_help',
'user_mail_welcome_subject',
'user_mail_welcome_body',
'user_mail_approval_subject',
'user_mail_approval_body',
'user_mail_pass_subject',
'user_mail_pass_body',
// Theme settings: you may want to use different logos for each language
'theme_settings',
// These are for primary and secondary links
'menu_primary_menu',
'menu_secondary_menu',
);These are only the suggested and more common ones, but you can add as many Drupal variables as you want to the array. If you dont know the variable name, you'll need to look at the code or at the 'variable' table in the database and guess which one it is, then add it to the list in your settings file.
You need to redefine these variables for the first time for every language, as previous values are lost and they return to defaults -they will be back if you disable i18n-. To define this values, you have to switch to every language when you are in the administration page where you set that variable.
Note about theme settings: If you want to have language-specific settings for an individual theme, add to your array something like:
'theme_themename_settings' (Obviously replacing themename with the name of the theme you're working with)

These are all necessary
These are all necessary variables for user configuration:
...// User configuration
'user_registration_help',
'user_mail_welcome_subject',
'user_mail_welcome_body',
'user_mail_approval_subject',
'user_mail_approval_body',
'user_mail_admin_subject', //this must be also
'user_mail_admin_body', //this must be also
'user_mail_pass_subject',
'user_mail_pass_body',
...
------
Florian
Dr.Radut | Puzzle IT | EU Copyright Office | STReight
Suggested for contact form
The lines I added for the contact form:
// These are for the contact form'contact_form_information',
When browsing through the source look for
name=and the under scores_in the field name e.g.name="contact_form_information".To edit the multilingual fields for the different languages you can change the
../en/..in the URL to your language of choice, e.g.../nl/... This functionality also works fine in 5.7.Re: Language dependent variables
For D6, this is the correct configuration:
$conf['i18n_variables'] = array(
// Site configuration
'site_name',
'site_slogan',
'site_mission',
'site_footer',
'anonymous',
// Node help
'blog_help',
'story_help',
// User configuration
'user_mail_password_reset_body',
'user_mail_password_reset_subject',
'user_mail_register_admin_created_body',
'user_mail_register_admin_created_subject',
'user_mail_register_no_approval_required_body',
'user_mail_register_no_approval_required_subject',
'user_mail_register_pending_approval_body',
'user_mail_register_pending_approval_subject',
'user_mail_status_activated_body',
'user_mail_status_activated_subject',
'user_mail_status_blocked_body',
'user_mail_status_blocked_subject',
'user_mail_status_deleted_body',
'user_mail_status_deleted_subject',
// Theme settings: you may want to use different logos for each language
'theme_settings',
// These are for primary and secondary links
'menu_primary_links_source',
'menu_secondary_links_source',
// These are for the contact form
'contact_form_information',
);
Not working for site_frontpage
This doesn't seem to work for 'site_frontpage'. You can save a different value for each language but when going to the front page in different languages it doesn't show the correct one.