V8: Allow localization of the backoffice using parent cultures to the editor culture #6090
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Prerequisites
If there's an existing issue for this PR then this fixes #5959
Description
This is a new take on the issue outlined in #4519. The PR reverts the changes from #4519 and handles dictionary based localization via region-less languages in a different way.
Setup for testing this PR
First and foremost make sure you have created both a region specific and a region-less language - e.g. add "da" if you still have the default "en-US":
Create a doctype that localizes both its name and a property label via the dictionary (using the "#" notation):
Add two dictionary entries, one for the name of the doctype and one for the name property label:
Testing this PR
Set your user language to match the region-less language you created above - e.g. use "da-DK" as your user language if you created "da".
Verify that the localization works by testing the following:
The doctype name in create dialog:
The property label in the doctype editor:
The doctype name in the "Info" section:
Now change your user language to match the region specific language you created above and redo the verification of localization for this language.