Scenario 1:
- Activate 2 languages: De(default), En
- Create a node in German
- Add translation in English, change title.
- Install administration_language_negotiation
- Visit "/admin/config/regional/language/detection"
- Activate "Administration language", "URL"
- Make sure "Administration language" is above "URL"
- Visit the created node, try to translate it.
- See that node form content is always in German.
Scenario 2:
- After all the steps in Scenario 1
- Create a new node in German
- Add translation in English, change title
- Visit the new node page in English.
- See "Symfony\Component\Routing\Exception\ResourceNotFoundException"
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | translation_is_broken_3013406_7.patch | 698 bytes | Oscaner |
Comments
Comment #2
a.milkovskyMajor, as the module breaks core functionality (if not critical).
Comment #3
anybodyI can confirm this problem. Even when visiting the translated node form, the language select is always overridden with the selected administration language and the content is shown in that language in the form.
Other admin language modules like https://www.drupal.org/project/admin_language_negotiation and admin_language have exactly the same problem.
Comment #4
nielsaers commentedAny news on this bug?
Comment #5
fox mulder commentedI can confirm the problem too.
Comment #6
fox mulder commentedlikely core problem:
https://www.drupal.org/project/drupal/issues/2801397
Comment #7
Oscaner commentedSo interesting.
This issue from here, at
src/Plugin/LanguageNegotiation/LanguageNegotiationAdministrationLanguage.phpThe
getPreferredAdminLangcodehave one param calledfallback_to_default, default isTRUE.So if not have preferred admin langcode, this function always return default langcode for us.
This is why the Scenario 1 was happened.
Change this code to
Comment #8
mastap commentedWe're also encountering this problem.
Was this fixed?
In fact without this fix the module is unusable!
PS: Will this patch #7 work with Paragraph?
Comment #10
polComment #11
anybodyThank you very much @Pol for fixing this! :)
Comment #12
mastap commentedI did apply the patch: translation_is_broken_3013406_7.patch
This was committed to Branch 1.x or 1.10 !? confused
How come I still see the problem on the Scenario 1
Comment #14
gaurav_manerkar commentedFacing another issue after updating module to v1.11