I've combed all the documentation I could find on multilingual variables and either I'm doing this wrong or there is something missing in how to implement a multilingual logo. I have added the variables to my settings file as follows. The site configuration variables are working however I am not able to load more than one logo. Is there more documentation on theme-specific variables or can someone point me in the right direction?

$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',
'theme_a3_atlantis_settings',
// These are for the contact form
'contact_form_information',
);

Comments

moshub’s picture

Version: 6.x-1.0-beta3 » 5.x-3.x-dev
Priority: Normal » Critical

I confirm this error with versions 5.x-3.x-dev , 5.x-2.3 and 5.x-2.4

meruthecat’s picture

Moshub,

I don't know if this will help you but I found the following blog entry describing additional changes that need to be made to the template.php and page.tpl.php files: http://openconcept.ca/blog/mgifford/passing_langage_values_to_drupal_themes. This didn't work for me so either the process is different for Drupal 6 or I'm doing something wrong or perhaps there is an error in the blog. If the blog is correct I'm surprised these steps aren't mentioned in any of the Drupal documentation.

seutje’s picture

if everything else fails, u can just set ur page.tpl.php to print t($logo) instead of just print $logo

that way u'll be able to edit it in the strings list

jose reyero’s picture

Priority: Critical » Minor

The logo variable depends on the theme you are using so check your theme's code for it or ask in the theme support forum which variable it is in.

And yes, there may be lots of theme specific variables, will depend on the specific theme, not all of them use the standard variables for log.

jose reyero’s picture

Status: Active » Closed (fixed)

No follow up

jmlavarenne’s picture

Version: 5.x-3.x-dev » 6.x-1.0
Status: Closed (fixed) » Active

I have a copy of Bluemarine, called 'MY' in this example.

I've found this serialized variable which I added to the setting file:
theme_MY_settings

a:16:{s:11:"toggle_logo";i:1;s:11:"toggle_name";i:0;s:13:"toggle_slogan";i:0;s:14:"toggle_mission";i:0;s:24:
"toggle_node_user_picture";i:0;s:27:"toggle_comment_user_picture";i:0;s:13:"toggle_search";i:0;s:14:
"toggle_favicon";i:0;s:20:"toggle_primary_links";i:0;s:22:"toggle_secondary_links";i:0;s:12:"default_logo";i:0;s:9:
"logo_path";s:20:"files/MY_logo.jpg";s:11:"logo_upload";s:0:"";s:15:"default_favicon";i:0;s:12:"favicon_path";s:0:"";s:
14:"favicon_upload";s:0:"";}

so that I now have

$conf['i18n_variables'] = array(
  'theme_settings',
  'theme_MY_settings',
);

But that does not make the logo variable multilingual. Any hints?

jmlavarenne’s picture

Priority: Minor » Normal

I've looked at the i18n_variable table and I can see a pair
theme_settings - en
theme_settings - MY_LANG

but I only see
theme_MY_settings - en
in other words there is no variable set for
theme_MY_settings - MY_LANG.

I tried forcing one by copying the theme_MY_theme and putting MY_LANG in the language field, but that does not work.

hass’s picture

Status: Active » Fixed

Alter your logo variable/filename in theme preprocess_page hook... this should always work.

jmlavarenne’s picture

Try adding 'logo_path' to your list of multilingual variables and try adding the theme specific settings as described here : http://drupal.org/node/333796

$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',
'theme_a3_atlantis_settings',
// These are for the contact form
'contact_form_information',
'logo_path',
'theme_XXXXXX_settings',
);

hass’s picture

Status: Fixed » Closed (fixed)

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