-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/Localization/[CultureName]/[ModuleId].po PO file location doesn't work #16153
Comments
Seems you started a PR for this, if you are interested it's in your plate otherwise I will create another one |
I am not familiar with this aspect. |
Shouldn't these locations rather work, @hishamco? |
They should, but we need to ensure the case that Tony reported still worked as expected, @hyzx86 I suggest creating a minimal repo, and then we can check. |
I think that test item should be included in the repository, along with automated tests to ensure the stability of the functionality |
What I'm asking for is a repo to ensure that there's a bug, but not miss configuration by you :) |
The code that loads these files is in |
We triaged this issue and set the milestone according to the priority we think is appropriate (see the docs on how we triage and prioritize issues). This indicates when the core team may start working on it. However, if you'd like to contribute, we'd warmly welcome you to do that anytime. See our guide on contributions here. |
the problem could be the ZH-CN language is not present in DefaultPluralRuleProvider. question, why are the languages hard coded?? |
This should handle Chinese cultures OrchardCore/src/OrchardCore/OrchardCore.Localization.Core/DefaultPluralRuleProvider.cs Lines 61 to 73 in ba5e8c0
|
@hyzx86 please is this still happening with you |
Like Hisham mentioned code, because there's also a concept of hierarchy here @hishamco It may be necessary to add some unit tests to ensure that |
OrchardCore/test/OrchardCore.Tests/Localization/DefaultPluralRuleProviderTests.cs Lines 7 to 27 in 2772ac6
|
Describe the bug
To Reproduce
Hi all, I've found that this rule mentioned in this document https://docs.orchardcore.net/en/latest/reference/modules/Localize/ doesn't seem to work
![image](https://private-user-images.githubusercontent.com/15613121/333775409-f3a896e4-d2e7-4bbd-b09b-8ecb5326e259.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAyODY3MzAsIm5iZiI6MTcyMDI4NjQzMCwicGF0aCI6Ii8xNTYxMzEyMS8zMzM3NzU0MDktZjNhODk2ZTQtZDJlNy00YmJkLWIwOWItOGVjYjUzMjZlMjU5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA2VDE3MjAzMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUzNjliMDI4ZWQ2ZDlmNDQyNzY3NmM1YTI1ZTFkZTUzYTQxY2Q2NzI3ZDlkMzUyODE4NDllYmM3MzdmMWM4YzMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.hGp5U7_YnBgOC6YsYXXGJFle1B5HmNHTicJVU1BzhYU)
/Localization/[CultureName]/[ModuleId].po
This is a module based on OC 1.8.3
But when I use
Localisation/zh-CN.po
it works fineThe text was updated successfully, but these errors were encountered: