-
-
Notifications
You must be signed in to change notification settings - Fork 959
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
Matching of Java translations with component discovery addons #8407
Comments
This issue looks more like a support question than an issue. We strive to answer these reasonably fast, but purchasing the support subscription is not only more responsible and faster for your business but also makes Weblate stronger. In case your question is already answered, making a donation is the right way to say thank you! |
You're trying to match That can't work because the component part excludes |
Thanks for the quick answer! So actually it's a bit more complex than that: in my case we have a Maven multi-module repository and I want to detect also translations in nested module such as Matching regex: Monolingual base filename: |
The issue you have reported is now resolved. If you don’t feel it’s right, please follow its labels to get a clue for further steps.
|
Following the answer on WeblateOrg#8407 I felt like it could be useful to have another example in the discovery help for this kind of usecase.
Following the answer on #8407 I felt like it could be useful to have another example in the discovery help for this kind of usecase.
Describe the issue
I'm trying to configure the component discovery addons to match Java translations that are using
ApplicationResources.properties
files. I think I entered the right regular expression but Weblate seems to not find any component with it, even if I have quite a lot of them in my repository.Here's an example of the source translation file I'm trying to match: https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/resources/ApplicationResources.properties
Translations are using ApplicationResources_{{ language }}.properties such as: https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/resources/ApplicationResources_fr.properties
I'm using the following regex for matching translations files:
and using this for the monolingual base filename:
I put those information when configuring the discovery addons in https://l10n.xwiki.org/projects/xwiki-platform/xwiki-core-resources/ (see screenshot for configuration of this component), so I'm expecting that it would find at least the original component, but it keeps saying that no component is found.
I already tried
Steps to reproduce the behavior
Expected behavior
No response
Screenshots
Exception traceback
No response
How do you run Weblate?
PyPI module
Weblate versions
Weblate deploy checks
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: