How to replace I18nVariableLanguageRealm controller?
In the Drupal world 'replace' in your context is usually synonymous with 'alter'.

Try this:

function mymodule_i18n_variable_variable_realm_info_alter(&amp;$realm) {
  $realm['language']['controller class'] = 'MyModuleI18nVariableLanguageRealm';
}