Add Data Localization Contexts to OrchardCoreConstants#19022
Conversation
|
Let's talk about our options here, don't do any changes until we agree on something though. What about using specific constant classes instead of nesting even more ones. So instead of Trying to make it easier to read and type, it could get out of control otherwise. Also maybe the fields one could use a function instead of concatenating, like |
|
I will open a discussion thread then |
|
I'd say don't put it into a class called |
|
This pull request has merge conflicts. Please resolve those before requesting a review. |
c80e0fe to
91ef38f
Compare
|
This pull request has merge conflicts. Please resolve those before requesting a review. |
4fc8dc8 to
9cb5aa6
Compare
|
This pull request has merge conflicts. Please resolve those before requesting a review. |
|
This pull request has merge conflicts. Please resolve those before requesting a review. |
|
I think we should have |
|
@gvkries, could you please check the permissions & admin menus changes? If this is what you discussed in the triage meeting, I will complete the PR ASAP; otherwise, let me know if there's anything else I should take into account |
|
@gvkries, can you check to move on this one |
|
I think what you've done for the admin menu and permissions is good. Just apply that to content types/fields as well, so we don't have the constants in the localization abstractions, but in the related modules (or their abstractions). |
|
@gvkries, please review and merge if all goes well |
gvkries
left a comment
There was a problem hiding this comment.
LGTM in general, but please check my few comments.
|
|
||
| namespace OrchardCore.AdminMenu.Services; | ||
|
|
||
| public class AdminMenuItemDataLocalizationProvider : ILocalizationDataProvider |
There was a problem hiding this comment.
Why is this removed? Is it the same as another provider?
There was a problem hiding this comment.
Maybe do this change in another PR, also the ListsAdminNodeDataLocalizationProvider probably needs to be renamed (the one in LinkAdminNodeDataLocalizationProvider.cs).
There was a problem hiding this comment.
Why is this removed? Is it the same as another provider?
Let me check ..
Maybe do this change in another PR, also the ListsAdminNodeDataLocalizationProvider probably needs to be renamed (the one in LinkAdminNodeDataLocalizationProvider.cs).
Sure
There was a problem hiding this comment.
@gvkries I remember this no long need coz both admin menus and menu items are using the same provider. This was mentioned a few weeks ago in the steering meeting
| <ProjectReference Include="..\..\OrchardCore\OrchardCore.Admin.Abstractions\OrchardCore.Admin.Abstractions.csproj" /> | ||
| <ProjectReference Include="..\..\OrchardCore\OrchardCore.AdminMenu.Abstractions\OrchardCore.AdminMenu.Abstractions.csproj" /> | ||
| <ProjectReference Include="..\..\OrchardCore\OrchardCore.AuditTrail.Abstractions\OrchardCore.AuditTrail.Abstractions.csproj" /> | ||
| <ProjectReference Include="..\..\OrchardCore\OrchardCore.ContentFields.Core\OrchardCore.ContentFields.Core.csproj" /> |
There was a problem hiding this comment.
This is required by the ContentFieldLocalizationDataProvider, right? Isn't it better to move the ContentFieldLocalizationDataProvider to the content fields module in that case?
There was a problem hiding this comment.
This is in mind before this PR, but I remember its stay here to avoid module-to-module dependency. I might check this later after this PR
|
@gvkries, I added a commit before I noticed your approval. Shall I revert my last commit? Also, let me know which rename you are refer to in #19022 (comment) |
|
I think this is fine. For the renaming, look at |
Fixes #19034