-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
|
First , we do not support the format So I added this logic here, but it still doesn't seem to work https://github.com/OrchardCMS/OrchardCore/pull/16154/files#r1670823332 The debugging information is as follows The full test code is here |
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
/Localization/[CultureName]/[ModuleId].po
This is a module based on OC 1.8.3
But when I use
Localisation/zh-CN.po
it works fineSince this template
Localisation/[CultureName].po
will overwrite the translation files of the other modules when compiled and packaged.I would prefer that the template
/Localisation/[CultureName]/[ModuleId].po
works.When I run it on 1.8x it doesn't work as expected.
The text was updated successfully, but these errors were encountered: