You are here

i18nviews_handler_filter_term_language.inc in Internationalization Views 6.2

Same filename and directory in other branches
  1. 6.3 includes/i18nviews_handler_filter_term_language.inc

File

includes/i18nviews_handler_filter_term_language.inc
View source
<?php

/**
 * Filter by language
 */
class i18nviews_handler_filter_term_language extends views_handler_filter_in_operator {
  function get_value_options() {
    if (!isset($this->value_options)) {
      $this->value_title = t('Language');
      $languages = array(
        '***CURRENT_LANGUAGE***' => t("Current user's language"),
        '***DEFAULT_LANGUAGE***' => t("Default site language"),
        '***NO_LANGUAGE***' => t('No language'),
      );
      $languages = array_merge($languages, locale_language_list());
      $this->value_options = $languages;
    }
  }

}

Classes

Namesort descending Description
i18nviews_handler_filter_term_language Filter by language