Hi all

I dont know if this is a bug or another task but i try to explain my problem:

I want a block that list the categories of a vocabulary. I am using a module called taxonomy_dhtml that make this and works fine. This module uses two taxonomy functions and they are taxonomy_get_tree($vocabulary_id) and taxonomy_term_count_nodes($term->tid). And now my two problems:

1 - When i go to an administration page, the taxonomy_get_tree($vocabulary_id) returns me an array with the vocabulary and the terms in both languages (spanish and english). I was debugging and i saw that the sql query dont made sql_rewrite_sql with internazionalization. Its said, when i go to my account page (for examplo) the query its like:

SELECT t.tid, t.*, parent FROM {term_data} t INNER JOIN {term_hierarchy} h ON t.tid = h.tid WHERE (t.language ='en' OR t.language ='' OR t.language IS NULL) AND ( t.vid = %d ) ORDER BY weight, name

and at administration pages the quert its like:

SELECT t.tid, t.*, parent FROM {term_data} t INNER JOIN {term_hierarchy} h ON t.tid = h.tid WHERE t.vid = %d ORDER BY weight, name

Why didnt add the "(t.language ='en' OR t.language ='' OR t.language IS NULL)"? I dont know if this is problem o internationalization or taxonomy_dhtml module.

2 - When i go to the node page in spanish language (for example) the node and category menu of taxonomy_dhtml are showed in spanish. If i change language with language switcher, all page chage the language except the category menu. I was debugging and saw that the sql query in taxonomy module get this value:

At the first time, with spanish language:

SELECT t.tid, t.*, parent FROM {term_data} t INNER JOIN {term_hierarchy} h ON t.tid = h.tid WHERE (t.language ='en' OR t.language ='' OR t.language IS NULL) AND ( t.vid = %d ) ORDER BY weight, name

When i change language with switcher:

SELECT t.tid, t.*, parent FROM {term_data} t INNER JOIN {term_hierarchy} h ON t.tid = h.tid WHERE (t.language ='en' OR t.language ='' OR t.language IS NULL) AND ( t.vid = %d ) ORDER BY weight, name

Exactly the same, the language seems that didnt change. Again i dont know if the problem is internationalization or taxonomy_dhtml.

Sorry for write too much :P

Thanks all for your help.

Best regards.

Comments

jose reyero’s picture

Status: Active » Closed (fixed)

Cleaning issue queue for old versions. If you want to get any support consider using the forum or updating to 6.x.

See #626858: Internationalization 5.x Maintenance Policy. Approaching end of support.