I have VAT Number field translated using i18n_field module, but the translations doesn't get applied to the formatter.

Usually i18n_field module takes care of providing translated formatters for fields provided by core and maybe popular contrib modules, but since this module isn't that popular, it could be handled by this module itself.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

iMiksu’s picture

FileSize
1.34 KB

Here you have a patch which uses value instead vat_number array index in the element which therefore gets handled by i18n_field nicely when translating its label and description.

Maybe we could consider changing the whole vat_number to be in the schema as value?

iMiksu’s picture

Status: Active » Needs review
attiks’s picture

Status: Needs review » Reviewed & tested by the community

Thank you!

dwkitchen’s picture

Status: Reviewed & tested by the community » Needs work

Agreed. Originally there was going to be two values one for the number and a second for the country.

I am working on updating all uses including db to use value instead of vat_number.

dwkitchen’s picture

Status: Needs work » Needs review
FileSize
2.96 KB

New patch with DB change as well.

attiks’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me

dwkitchen’s picture

Did your test included upgrading a site with existing data?

attiks’s picture

Status: Reviewed & tested by the community » Needs review
FileSize
2.85 KB

Update didn't work

dwkitchen’s picture

Status: Needs review » Fixed

Now commted

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.