i18nviews_handler_argument_term_language.inc in Internationalization Views 6.2
File
includes/i18nviews_handler_argument_term_language.inc
View source
<?php
class i18nviews_handler_argument_term_language extends views_handler_argument {
function construct() {
parent::construct('language');
}
function summary_name($data) {
return $this
->term_language($data->{$this->name_alias});
}
function title() {
return $this
->term_language($this->argument);
}
function term_language($langcode) {
$languages = locale_language_list();
return isset($languages[$langcode]) ? $languages[$langcode] : t('Unknown language');
}
}