Currently it's hard coded to use the vocabulary name and description instead of the widget information.

CommentFileSizeAuthor
#1 hs-use-widget-tax-1198362-1.patch541 bytesfearlsgroove

Comments

fearlsgroove’s picture

Status: Active » Needs review
StatusFileSize
new541 bytes

... patch

wim leers’s picture

Status: Needs review » Fixed
tommychris’s picture

Status: Fixed » Active

I want to open the issue, because the field label appears, but not translated. So, I think, we NEED to implement 18n.

tommychris’s picture

Status: Needs review » Active

And I want to give a solution, which is maybe not the best:

hs_taxonomy.module

-    '#title'         => $instance['label'],
+    '#title'         => module_exists('i18n_taxonomy') ? i18n_field_translate_property($instance, 'label') : t($instance['label']),
    '#default_value' => $tids,
-    '#description'   => $instance['description'],
+    '#description'         => module_exists('i18n_taxonomy') ? i18n_field_translate_property($instance, 'description') : t($instance['description']),
tommychris’s picture

Status: Active » Needs review
wim leers’s picture

Status: Active » Needs review

Your solution looks pretty good, IMO :)

Are you certain this is the right way to do it though?

wim leers’s picture

Status: Needs review » Needs work

Setting to needs work because the work that needs to be done before this can go in, is verifying that this is the correct way to do it. You may want to the user "fietserwin".

wim leers’s picture

Title: Use widget label and description for HS Taxonomy field widget » Use widget label and description for HS Taxonomy field widget is not translated
Component: Code - Content Taxonomy » Code - Taxonomy
Issue tags: +i18n

Tagging as such.

wim leers’s picture

Status: Needs work » Closed (duplicate)