Closed (fixed)
Project:
Taxonomy dhtml
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Feb 2004 at 05:49 UTC
Updated:
22 Mar 2004 at 20:20 UTC
In Drupal, it's pretty important that taxonomy modules (both core and contributed) always present vocabularies and terms as localized (i.e. can be translated with the locale.module).
In the Overview of taxonomy_dhtml, it's not the case.
It is in the block though.
I can't insert t() myself, because in the Overview, the function that adds a count of the total number of nodes in a taxonomy is too codes for me; I can't figure a way of translating the vocab or term before it get converted to name=".( $count)."
Can somebody do this ?
It would be most helpful to many people I think.
Cheers,
Mic
Comments
Comment #1
gábor hojtsyI have expressed my negative opinion on t()-ing site specific content (and not interface strings) before. Unfortunately, it seems like using the locale module will be inevitable, since taxonomy term and description translations will be really hacky with a custom solution inside taxonomy.module. In case we manage the site specific string translations via the locale.module, we need to have a mark for interface and other strings to differentiate them in .pot creation and other stuff IMHO.
Read also my ML post about this.
Comment #2
moshe weitzman commentedfixed using t(). once a new solution for site specific text comes along, we will immediately switch to it.
Comment #3
michael_lessard_micles.biz commentedSorry 'weitzman', but I just tested your modified version of taxonomy_dhtml.module and I really suggest you note that the 'non-localization' of the Overview is not fixed.
Terms in the blocks are localized, but do not render the same in the Overview.
Above all, if one tries to localize 'Democracy (3)' (which indicates that there are 3 nodes under the term Democracy), you'll get 'Démocratie (3)' no matter how many new nodes are added under that term.
This does not improve the Overview, so I suggest it's better not to localize the Overview at the moment until it can really be localized.
It seems clear to me (though I could be wrong) that the problem is this module's code...
transforms 'term' into 'term+count'
and therefore the locale.module sees the string 'term+count'
instead of string 'term' followed by string '(count)'.
Comment #4
moshe weitzman commentedwhat version are you using? ... the enhancement was committed to the cvs version of taxonomy_dhtml only.
Comment #5
moshe weitzman commentedComment #6
(not verified) commented