When the i18n module is enabled, the "Translator assigment" page only list node in the current user language. So to translate English content in Dutch, the user must be be using the English interface. This is because of query rewriting in i18n which automatically filter nodes by language. This filtering can be disabled by calling i18n_selection_mode('off') before query rewriting.

The fix would be to add a conditional invocation of i18n_selection_mode('off') at the beginning of translation_overview_assignment_page($language)

function translation_overview_assignment_page($language) {
  if(function_exists('i18n_selection_mode')) {
    i18n_selection_mode('off');
  }
  drupal_add_css(drupal_get_path('module', 'translation_overview') .'/translation_overview.css');

  ...

}

A workaround is to "fix" the page callback in another module, like this

function MODULE_menu_alter(&$items) {
  foreach (language_list() as $language) {
    if ($language->enabled) {
    	$items['admin/content/translation_overview_assignments/'. $language->language]['page callback'] = '_wMODULE_translation_overview_assignment_page';
    }
  }
}

function _MODULE_translation_overview_assignment_page($language) {
  i18n_selection_mode('off');
  return translation_overview_assignment_page($language);
}

Comments

pbuyle’s picture

Title: Translator assigments page when i18n is enabled » Translator assigments pages don't work when i18n is enabled
pbuyle’s picture

The same issue with the same fix and workaround apply to the Translation overview page.

nick.dap’s picture

Thanks for posting this. If you want the overview page to show all content as well:

REPLACE 'common' WITH NAME OF YOUR MODULE

<?php
function common_menu_alter(&$items) {

  $items['admin/content/translation_overview_manage']['page callback'] = '_common_translation_overview_manager_page';
  foreach( language_list() as $language ) {

    if ($language->enabled) {

        $items['admin/content/translation_overview_assignments/'. $language->language]['page callback'] = '_common_translation_overview_assignment_page';
    }
  }
}

function _common_translation_overview_manager_page() {

  i18n_selection_mode('off');
  return translation_overview_manager_page();
}

function _common_translation_overview_assignment_page($language) {

  i18n_selection_mode('off');
  return translation_overview_assignment_page($language);
}
?>
stefan.r’s picture

Status: Active » Closed (won't fix)

Marking as won't fix since 6.x is not longer supported.