Not entirely related to this module, but could be possible to add a 'context fallback' option?

Some times strings have different contexts. In the cases that these strings are untranslated for some contexts, the original language is shown. In my opinion It would make sense to show an existing string from another context as a fallback.

I would be interested in implementing that feature.

Comments

attiks’s picture

This sounds like a great idea, feel free to upload a patch I'm more than happy to reviews.

Pere Orga’s picture

I looked at it and had some troubles understanding the code of the module.
And unfortunately, I cannot use PHP >= 5.3.4 in the project I'm facing this issue, so I went with a faster approach:
I created a script that inserts existing translations to the contexts that are missing. Not ideal, but I needed to solve that quick.

Globalbility’s picture

Assigned: Unassigned » Globalbility

@attiks: I can get a patch for it, do you want it as a submodule? Do you have any hint about how you want to implement it in the module?

chrlvclaudiu’s picture

any news upon this ?
Thanks.

attiks’s picture

#3, #4 I assume this will be a global option, where you can arrange all contexts. Best to move the logic into a separate submodule and use an if (module_exists(... in the main module.

attiks’s picture

Issue summary: View changes

typo