Patch allows one to filter terms by their language.
This should be for i18n views module.
And there it needs some work at lesat
+++ b/i18n_taxonomy/views/i18n_taxonomy_handler_filter_language.incundefined @@ -0,0 +1,18 @@ +class i18n_taxonomy_handler_filter_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"), + LANGUAGE_NONE => t('No language') + ); + $languages = array_merge($languages, locale_language_list()); + $this->value_options = $languages;
Couldn't you use views_handler_filter_locale_language here?
You don't even need locale module or translation module to have one of this handlers because they are included via the drupal registry.
And there you already see
$data['taxonomy_term_data']['language'] = array(
Sorry for your effort :(
Oh, wasn't subscribed to this. Thanks guys.
Comments
Comment #1
jose reyero commentedThis should be for i18n views module.
Comment #2
dawehnerAnd there it needs some work at lesat
Couldn't you use views_handler_filter_locale_language here?
Comment #3
dawehnerYou don't even need locale module or translation module to have one of this handlers because they are included via the drupal registry.
Comment #4
dawehnerAnd there you already see
Sorry for your effort :(
Comment #5
amitaibuOh, wasn't subscribed to this. Thanks guys.