widget description not translatable
chapo - November 12, 2008 - 22:38
| Project: | CCK Taxonomy Fields |
| Version: | 5.x-1.2 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
When submitting a new content type containing a cck_taxonomy field, it's possible like for every field to include a description in the form widget.
However, in my site, all field descriptions in the submit form are translatable EXCEPT cck_toxonomy field. I use the Locale module for translations. When exporting a .po file, the widget description is not available (the submit form being viewed both in english & french to force .po file update). Is there any t('...') missing somewhere ?

#1
I got It !!!
There is a missing t() in cck_taxonomy.module line 140 (function cck_taxonomy_widget()).
Replace
<?phpempty($field['widget']['description']) ? $vocabulary->help : $field['widget']['description'],
?>
with
<?phpempty($field['widget']['description']) ? $vocabulary->help : t($field['widget']['description']),
?>
The help field of the widget is then available through locale .po files.
Don't you think a patch should be added to address this issue ???
Hope this post will help desesperate translators trying to build up a multilingual site...
#2
+1 subscribing.