When using metatags on a standard taxonomy/term/% site (same goes also for a views overwrite) with i18n and taxonomy translation enabled - the following tokens do not work:
[term:i18n-name]
[term:i18n-description]
Reproduce:
1.) In "Metatags by path" enter for the PATH: taxonomy/term/*
2.) In "Title" [term:i18n-name]
3.) in "Description" enter [term:i18n-description]
Error: The Description is using the following invalid tokens: [term:i18n-description] [term:i18n-name].
If you enter these values as an overwrite for the Standard Taxonomy pages in for example en/admin/config/search/metatags - it outputs the english description on all languages (en/taxonomy/term/% and also de/taxonomy/term/%). Go back to en/admin/config/search/metatags/config/taxonomy_term - switch to another language (for example: de/admin/config/search/metatags/config/taxonomy_term) and save. Now the german metatags show on both languages.
Same goes for the urls Tags like canonical, og:url etc...
Is this normal behavior? I think taxonomy term pages often use "[term:i18n-name]" and "[term:i18n-description]" for creating the metatags dynamically for all taxonomy term listings?
Comments
Comment #1
DamienMcKennaThe language usage is based upon the results of entity_language(), and it the language doesn't support multiple languages it defaults to LANGUAGE_NONE; taxonomy terms don't support multiple languages so these pages are always displayed as LANGUAGE_NONE.
I'll have to dig into how i18n_taxonomy works and specifically support it.
Comment #2
DamienMcKenna(we probably need another issue for other i18n submodules too..)
Comment #3
DamienMcKennaRelated: #1986032: i18n support for Metatag submodules (Views, Context, Panels)
Comment #4
le72Any update?
Comment #5
DamienMcKenna@le72: Nothing yet, I'm afraid. Any help you could provide would be greatly appreciated.
Comment #6
stmh CreditAttribution: stmh commentedJust a heads up: the latest dev-version fixes this problem (at least for me) as it uses the content-language together with the entity-language for the cache-id.
Comment #7
DamienMcKennaFYI I"m working on the i18n integration in #2564483: Cannot translate metatags after last update anymore.
Comment #8
PieterDC