Localization#7596
Conversation
I brought the updates to the localization module done in 1.10.x that fixed issues with the MasterContentItem and the Synchronization of CultureNeutral parts/fields
Brought the extension feature for Blogs' localization.
I brought in the code for Taxonomies, Terms, TaxonomyFields
|
Thanks. Again we'll need someone else to try it. |
|
Has anyone had the chance to test this? |
|
It's in my pipeline! |
|
Ok. Cool. |
|
Is there anyone else we could ask to try this branch? |
|
Ok, the scenario that should be tested is: |
|
Yes, the scenario you described cover functionality quite well, so you could start testing that one. Other combinations are possible but are less concrete. |
|
@sebastienros Yep, I'll test it over the next two days |
|
@MatteoPiovanelli-Laser great job!
Publishing sync as ti supposed to sync (terms, neutral ci and neutral fields),remove specific lang contents and add, when possible, the correct lang ones. @sebastienros by far, the best localization implementation across all cms I have used (wordpress, drupal, dnn). |
|
Good job @MatteoPiovanelli-Laser ! Still giving some time for @Xceno and @jersiovic to give their opinion if they want as they participated to the meetings. |
|
Yeap it looks amazing what you implemented. Sorry for not answering before I was not sure I could find time for testing it. Along next week I think I could give it a try. |
|
Hi folks!
I also appreciate the comments throughout the code! So, I'm happy with it and didn't find anything breaking apart. And since it'll be merged into |
|
Thanks everyone for testing this, and for the compliments. @Xceno the MasterContentItem stuff actually got fixed in 1.10.x by a PR I did. Sometimes the MasterContentItem would not carry over correctly when chaining translations, and in fixing that everything slotted nicely into place. I'll give a look at the small bug you guys mentioned. |
d13632d to
d2bd4d0
Compare
|
Hello. @LorenzoFrediani-Laser and I have been checking the issue you guys mentioned. My latest commit here fixes that. |
Fix LocalizationService for fallback implementation of localized taxonomy
… (as TryToLocalizeItems in ContentPickerField settings).
|
Default settings in TaxonomyField changed according to default settings in ContentPickerField as discussed in #7632 . |
|
Hi, I tried the fix (not the latest one) and it works. But, I do not know what's the point in a localized taxonomy to have culture neutral terms that can be selected in any language.... It 's a tricky situation... But, the bug is gone. |
| ? _contentManager.Query<LocalizationPart>(localized.ContentItem.ContentType) | ||
| : _contentManager.Query<LocalizationPart>(versionOptions, localized.ContentItem.ContentType); | ||
| IContentQuery<LocalizationPart> query; | ||
| if (content.ContentItem.TypeDefinition.Parts.Any(x => x.PartDefinition.Name == "TermPart")) { // terms translations can be contained on different TermContentType linked to taxonomies translations |
There was a problem hiding this comment.
@MatteoPiovanelli-Laser @sebastienros
I just found this during merging 1.10.x to dev and I have to admit that I looked at this PR and didn't notice this, but this is really bad. We can't put a reference like this in a module that provides low-level functionality (it's not a dependency, so it doesn't break anything, but still).
What's really strange is that two years later, @HermesSbicego-Laser committed a change that removes this, then two commits later I merged 1.10.x into dev, which readded that change. I don't know how the difftool would think that that should happen, but re-adding removed code by accident (without noticing) is even worse. This is not the first time it happens (and merging from 1.10.x to dev caused a lot of different problems in other cases too) - suggestions are welcome. I'll try to sort out the correct logic for LocalizationService...
There was a problem hiding this comment.
Update: I made a mistake, Hermes didn't remove this (I was looking at the wrong diff). Nevertheless, this TermPart-related logic has to be removed somehow without breaking Taxonomy Localization.
There was a problem hiding this comment.
Removed the TermPart condition in this commit: a5a24d0, so there's no type filter in the query. This way it doesn't Taxonomies localization and I don't think filtering on content type matters anyway.
This PR contains the things we did for Localization.
cc:
@sebastienros @HermesSbicego-Laser @BenedekFarkas @GiuseppeMusso-Laser @LorenzoFrediani-Laser