Hi everyone,

I have the following code in two settings.php files (each for a different site) to share the translation tables:


$db_prefix = array(
    'users'          => 'drupal_common.',
    'sessions'       => 'drupal_common.',
    'role'           => 'drupal_common.',
    'authmap'        => 'drupal_common.',
    'sequences'      => 'drupal_common.',
    'locales_source' => 'drupal_common.',
    'locales_target' => 'drupal_common.',
    'profile_fields' => 'drupal_common.',
    'profile_values' => 'drupal_common.',
);

It works for the first site, but when it comes to the second one, the only things I see translated are the help texts (i.e. the explanation texts you can read below the heading and tabs on admin pages.) The titles, menus, error and confirmation messages, and all other captions stay in English.

Is there something I'm missing?

Thanks in advance.

Comments

remi’s picture

Or am I the only one who ever encountered that problem?

Rémi
remino.net

remi’s picture

I went in the MySQL database manually and emptied both locales_target and locales_source. I've re-imported all the languages I have again, and I'm still having that problem.

Edit: I've cleared the cache table. After that, everything works properly. I didn't know the translations were cached! Good thing I checked the API documentation... Hopefully, this post will be useful to other people who may encounter the same problem.

juanjo_vlc’s picture

I'm going to deploy a multisite installation and want to share traslations to have consistency between sites, and it's a good hint.