When having language negotiation for the administration interface is turned on it seems like it's breaking the variable admin. I need to change the path prefix to access and save the different forms:

http://granny.dev.rhizom.nl/en/admin/config/system/variable/edit/user_ma... -> saves the english variables
http://granny.dev.rhizom.nl/fr/admin/config/system/variable/edit/user_ma... -> saves the french variables

etc, etc...

Comments

Johann Wagner’s picture

Version: 7.x-2.3 » 7.x-2.5

Still there in 7.x-2.5.

Anyone has a hint?

Johann Wagner’s picture

After some research, the used role must have the permission "administer site configuration" to have the language switcher to work. You can also hack the code and add an OR statement followed by another permission.

File variable_realm.module :

/**
 * Implements hook_init()
 *
 * Let realms be overriden by query string parameters, but only for:
 * - Admin paths (not variable realm admin pages)
 */
function variable_realm_init() {
  if (arg(0) == 'admin' && (arg(3) != 'variable' || arg(4) != 'realm') && ($params = variable_realm_params()) && (user_access('administer site configuration') || user_access('ADD YOU CUSTOM PERMISSION'))) {
    foreach ($params as $realm_name => $realm_key) {
      variable_realm_switch($realm_name, $realm_key, FALSE);
    }
    variable_realm_rebuild();
  }
}