I have created a view to list taxonomy terms in a multilingual site (I am using Internationalization 7.x-1.0-beta6) and the terms names are displayed in the view (block, page and even in preview) only in the original language (EN) when I am switching languages.

Comments

Project:Views» Internationalization Views
Version:7.x-3.0-beta3» 7.x-3.x-dev
Component:Translations» Code

Views doesn't integrate with i18n out of the box, but there is a module for it.

Status:Active» Closed (works as designed)

Here is an example view.

<?php
$view
= new view;
$view->name = 'i18nviews_1171638';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'taxonomy_term_data';
$view->human_name = 'i18nviews--1171638';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options['title'] = 'i18nviews--1171638';
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['query']['options']['query_comment'] = FALSE;
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = '10';
$handler->display->display_options['style_plugin'] = 'table';
$handler->display->display_options['style_options']['columns'] = array(
 
'name' => 'name',
 
'name_i18n' => 'name_i18n',
);
$handler->display->display_options['style_options']['default'] = '-1';
$handler->display->display_options['style_options']['info'] = array(
 
'name' => array(
   
'sortable' => 0,
   
'default_sort_order' => 'asc',
   
'align' => '',
   
'separator' => '',
  ),
 
'name_i18n' => array(
   
'sortable' => 0,
   
'default_sort_order' => 'asc',
   
'align' => '',
   
'separator' => '',
  ),
);
$handler->display->display_options['style_options']['override'] = 1;
$handler->display->display_options['style_options']['sticky'] = 0;
$handler->display->display_options['style_options']['empty_table'] = 0;
/* Field: Taxonomy term: Name (translated) */
$handler->display->display_options['fields']['name_i18n']['id'] = 'name_i18n';
$handler->display->display_options['fields']['name_i18n']['table'] = 'taxonomy_term_data';
$handler->display->display_options['fields']['name_i18n']['field'] = 'name_i18n';
$handler->display->display_options['fields']['name_i18n']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['name_i18n']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['name_i18n']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['name_i18n']['alter']['external'] = 0;
$handler->display->display_options['fields']['name_i18n']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['name_i18n']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['name_i18n']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['name_i18n']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['name_i18n']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['name_i18n']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['name_i18n']['alter']['trim'] = 0;
$handler->display->display_options['fields']['name_i18n']['alter']['html'] = 0;
$handler->display->display_options['fields']['name_i18n']['element_label_colon'] = 1;
$handler->display->display_options['fields']['name_i18n']['element_default_classes'] = 1;
$handler->display->display_options['fields']['name_i18n']['hide_empty'] = 0;
$handler->display->display_options['fields']['name_i18n']['empty_zero'] = 0;
$handler->display->display_options['fields']['name_i18n']['hide_alter_empty'] = 0;
$handler->display->display_options['fields']['name_i18n']['link_to_taxonomy'] = 0;
/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page');
$handler->display->display_options['path'] = 'i18nviews--1171638';
?>