2c2 < index 5b0e1de..0ac734c 100644 --- > index 5b0e1de..92d4a42 100644 5c5 < @@ -16,23 +16,54 @@ require_once(drupal_get_path('module', 'views_lang_switch') . '/theme/views_lang --- > @@ -16,23 +16,61 @@ require_once(drupal_get_path('module', 'views_lang_switch') . '/theme/views_lang 50a51,57 > + $form['caching']['vls_always_link'] = array( > + '#type' => 'checkbox', > + '#title' => t('Always link the selected filter languages'), > + '#description' => t('Always provide a link to the filter languages irrespective of total result count.'), > + '#default_value' => variable_get('vls_always_link', FALSE), > + ); > + 66c73 < @@ -89,7 +120,7 @@ function _views_lang_switch_fetch_counts($view, $display) { --- > @@ -89,7 +127,7 @@ function _views_lang_switch_fetch_counts($view, $display) { 74a82,93 > @@ -133,6 +171,11 @@ function _views_lang_switch_compute_counts($view, $display) { > * Given a view and language code, return the count of nodes for that language. > */ > function _views_lang_switch_compute_one_count($view, $langcode, $display) { > + // Return a count for any requested language. > + if (variable_get('vls_always_link', FALSE)) { > + return 1; > + } > + > if (isset($_GET['language'])) { > $prev_lang = $_GET['language']; > }