Seems that general "entity_type" (ex: taxonomy term) can't be translated because is not correctly handled on "metatag_translate()" function.

Attached a patch trying to resolve this issue, working on "metatag_entity_view()" level, trying to detect the right instance.

Please review the patch, i'm not really sure if this is the right approach.

Comments

paolomainardi’s picture

StatusFileSize
new1.5 KB

Status: Needs review » Needs work

The last submitted patch, 1: metatag-i18n-string-bundle-2153977.patch, failed testing.

paolomainardi’s picture

StatusFileSize
new783 bytes

Please find attached the right patch.

paolomainardi’s picture

Status: Needs work » Needs review
paolomainardi’s picture

Title: I18N metatag string translation broken » [PATCH] I18N metatag string translation broken
paolomainardi’s picture

Issue summary: View changes
paolomainardi’s picture

Up

paolomainardi’s picture

up

damienmckenna’s picture

Title: [PATCH] I18N metatag string translation broken » I18N metatag string translation broken

FYI you don't need to bump issues, I will get to them.

damienmckenna’s picture

StatusFileSize
new926 bytes

Rerolled. I haven't tested it yet.

paolomainardi’s picture

Thanks Damien and sorry for bumping, but i was in a hurry.

damienmckenna’s picture

I wonder if all such definitions of $instance should be modified in the same way?

damienmckenna’s picture

damienmckenna’s picture

StatusFileSize
new810 bytes

Rerolled.

damienmckenna’s picture

Status: Needs review » Fixed

Committed. Thanks paolomainardi!

paolomainardi’s picture

Thanks a lot @DamienMcKenna :)

Status: Fixed » Closed (fixed)

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