For Drupal 7, see the Variable Translation module documentation.
Some text and settings are stored in Drupal as variables, and some site-wide ones like 'site name' and 'site slogan,' along with module-specific ones, can be edited through the administration pages. The Internationalization package makes it so these variables can be translatable.
To enable these variables to be translatable we need to identify the low-level names Drupal uses for them. This can be done looking at the 'variable' table in the database or searching through the code. However, we'll show you how to translate the more common settings below.
Once you have identified the variables you want to be translated, they need to be added in the settings.php file for the site as follows:
/** * Multilingual settings * * This is a collection of variables that can be set up for each language when * internationalization (i18n) is enabled. These are the basic ones for Drupal * core, but you can add your own here. */ $conf['i18n_variables'] = array( // Site name, slogan, mission, etc.. 'site_name', 'site_slogan', 'site_mission', 'site_footer', 'anonymous', // Different front page for each language 'site_frontpage', // Primary and secondary links 'menu_primary_links_source', 'menu_secondary_links_source', // Contact form information 'contact_form_information', // For theme variables, read more below 'theme_settings', 'theme_garland_settings', );
About theme related settings, they're stored in a different variable for each theme, which is usually 'theme_THEMENAME_settings' and these are merged with the default theme settings in 'theme_settings'. Some themes may have other specific variables so you may need to take a look at the 'variable' table (or use devel module) to see how they're stored.
The configuration file is usually under
/sites/default/settings.php or another subfolder under
sites. Also, there may be more than one if you are using a multisite setup.
Once you have the correct settings added to your configuration file, they'll be marked as 'multilingual variable' when you go to the corresponding administration pages. You must switch the site language while in the administration pages to set the value for each language.
The values of the multilingual variables will be saved in the i18n_variable table.
Find the settings file in the attachment.