Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
attiks CreditAttribution: attiks commentedThis sounds like a great idea, feel free to upload a patch I'm more than happy to reviews.
Comment #2
Pere OrgaI 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.
Comment #3
Globalbility CreditAttribution: Globalbility commented@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?
Comment #4
chrlvclaudiu CreditAttribution: chrlvclaudiu commentedany news upon this ?
Thanks.
Comment #5
attiks CreditAttribution: attiks commented#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.Comment #5.0
attiks CreditAttribution: attiks commentedtypo