Modification for i18n
rondev - January 26, 2009 - 17:47
| Project: | Taxonomy hide |
| Version: | 6.x-1.02 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | rondev |
| Status: | needs review |
Description
I introduce a modification to sort terms in the function function _taxonomy_hide_sort($a, $b) from taxonomy_hide.inc:
elseif ($string = strcasecmp(t($a->name), t($b->name))) {
return $string;
}With t(), that is the translated terms that are compared.
I'm not sure of my code because I'm not a i18n specialist but that works for me. I use the "Localize terms. Terms are common for all languages, but their name and description may be localized." option for my vocabularies when i18n module is enabled.
I noted the modification proposed here for the hook:
http://drupal.org/node/308133#comment-1111973
But as I don't understand how to implement it, I used the official published code.
It would be nice to display the vocabulary title too.
