In my company, we use the Language fallback module a lot on recent projects. During work on the i18n support, we have found that it is quite useful for the end users to see the fallback information on the translation overview pages. Example for the menu link translations overview page:

Currently, there is no such information on the entity overview page:

In this particular example, the German (CH) fallback is actually used for the German (AT) language, however it is not reflected on the overview.

Can we implement this as a setting?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Leksat’s picture

Attached patch provides the described functionality.
Also attached an example of the entity translations overview page with the patch applied.

dasjo’s picture

Also see leksat's blog post for background info & explanations:
http://www.amazeelabs.com/en/blog/total-language-fallback

badrange’s picture

Status: Needs review » Needs work
FileSize
98.87 KB

I tried this patch in a project where the language fallback is handled by language_hierarchy, and the translate tab doesn't show correct information; all non-translated pages show fallback to the default language.

This patch should be fallback-module-agnostic.

I like the idea a lot, and hope it can get into entity translation!

badrange’s picture

Status: Needs work » Needs review

I have now looked at the issue more closely, and I see that the issue might be in language_hierarchy, or at least assumptions made by that module.

If I force the if at line line 416 in language_hierarchy/language_hierarchy.module to always be false the translate tab looks correct. It also works if I log in as another user than user 1, that doesn't have the "Always fallback to default language" permission (part of language_hierarchy).

I wonder what the correct status for this issue is now, I'll set it back to 'Needs review' even though I could also say 'RTBC'.

attiks’s picture

Status: Needs review » Reviewed & tested by the community

Works like a charm

plach’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed, thanks.

  • Leksat authored 99f7b6b on 7.x-1.x
    Issue #2444203 by Leksat, badrange, attiks: Show fallback information on...

Status: Fixed » Closed (fixed)

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