How to set translated variables' values from settings.php (or similar) When using the Variable translation module (part of the Internationalization suite), how can I set the value of a translated variable from the  site's settings.php file ?

Using the $conf in the settings.php works, but off course it can only be used when the value of the variable is the same in all languages.

I'm looking for a solution that could be used to achieve the same goal of the $conf in the settings.php file: defining the values of variable at execution without the need store the values anywhere else. One use case is to assign different values to variables depending on the execution environment (as set in an environment variable).
In settings.php

$conf['MODULE_i18n_variables'] = array('my_variable');
$conf['my_variable'] = 'default value';
$conf['my_variable__fr'] = 'french value';


And in a custom module

/**
 * Implements hook_init().
 */
function MODULE_init() {
  global $conf, $language;
  if (is_array($conf['MODULE_i18n_variables'])) {
    foreach ($conf['MODULE_i18n_variables'] as $variable) {
      if (isset($conf["{$variable}__{$language-&gt;language}"])) {
        $conf[$variable] = $conf["{$variable}__{$language-&gt;language}"];
      }
    }
  }
}


This work as long as other languages values are not used. For instance, a multi-language aware edit form for the variable will not reflect the enforced per language values.