Index: includes/i18nviews.views.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/i18nviews/includes/i18nviews.views.inc,v
retrieving revision 1.1.2.1
diff -r1.1.2.1 i18nviews.views.inc
45a46,48
> 'i18nviews_handler_argument_string' => array(
> 'parent' => 'views_handler_argument_string',
> ),
55a59
> $data['term_data']['name']['argument']['handler'] = 'i18nviews_handler_argument_string';
Index: includes/i18nviews_handler_argument_string.inc
===================================================================
RCS file: includes/i18nviews_handler_argument_string.inc
diff -N includes/i18nviews_handler_argument_string.inc
0a1,49
> // $Id:
>
> /**
> * Allow taxonomy name as argument
> */
> class i18nviews_handler_argument_string extends views_handler_argument_string {
> //TODO: Alter argument form
> //Ensure that only specific view gets edited.
> function query() {
> if ($this->view->name=="theviewiwanttochangefornow"){
> //dpm($this);
> $argument = $this->argument;
> global $language;
> $currentlang = $language->language;
> $thequery = 'SELECT source FROM {locales_source} ls INNER JOIN {locales_target} lt ON ( ls.lid = lt.lid AND lt.translation = "%s" AND lt.language= "%s" AND ls.textgroup="taxonomy" )';
> $result = db_query ($thequery, $argument, $currentlang);
> $ids = db_fetch_array($result);
> $argument = $ids['source'];
> }
> else {$argument = $this->argument;}
>
> if (!empty($this->options['transform_dash'])) {
> $argument = strtr($argument, '-', ' ');
> }
>
> if (!empty($this->definition['many to one'])) {
> if (!empty($this->options['glossary'])) {
> $this->helper->formula = TRUE;
> }
> $this->value = array($argument);
> $this->helper->ensure_my_table();
> $this->helper->add_filter();
> return;
> }
>
> $this->ensure_my_table();
> if (empty($this->options['glossary'])) {
> $field = "$this->table_alias.$this->real_field";
> }
> else {
> $field = $this->get_formula();
> }
>
> $this->query->add_where(0, "$field = '%s'", $argument);
> }
>
> }
>
Index: .buildpath
===================================================================
RCS file: .buildpath
diff -N .buildpath
0a1,5
>
>
>
>
>
Index: .project
===================================================================
RCS file: .project
diff -N .project
0a1,22
>
>
> il18views
>
>
>
>
>
> org.eclipse.wst.validation.validationbuilder
>
>
>
>
> org.eclipse.dltk.core.scriptbuilder
>
>
>
>
>
> org.eclipse.php.core.PHPNature
>
>