-
-
Notifications
You must be signed in to change notification settings - Fork 429
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
Support multi bundle bindings in i18n-maven-plugin #2748
Conversation
The plugin did not generate translations for bundles of bindings that do not have a binding.xml file. With this change it should also be possible to generate the default translations of the modbus and mqtt bindings. Related to openhab/openhab-addons#12220 Signed-off-by: Wouter Born <github@maindrain.net>
} else if (type instanceof ChannelTypeXmlResult) { | ||
bundleInfo.getChannelTypesXml().add((ChannelTypeXmlResult) type); | ||
ChannelTypeXmlResult result = (ChannelTypeXmlResult) type; | ||
bundleInfo.getChannelTypesXml().add(result); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about setting the bindingId
here in the bundleInfo
too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These kind of XML files don't have a bindingId
attribute which is used in a UID
. The parsed objects only have URI
s which can be based on anything.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see the ChannelType
does extend from AbstractDescriptionType
that has a UID
, so I'll check if I can add a bindingId based on that. 🙂
Signed-off-by: Wouter Born <github@maindrain.net>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks.
* Support multi bundle bindings in i18n-maven-plugin The plugin did not generate translations for bundles of bindings that do not have a binding.xml file. With this change it should also be possible to generate the default translations of the modbus and mqtt bindings. Related to openhab/openhab-addons#12220 Signed-off-by: Wouter Born <github@maindrain.net> GitOrigin-RevId: c300410
The plugin did not generate translations for bundles of bindings that do not have a binding.xml file.
With this change it should also be possible to generate the default translations of the modbus and mqtt bindings.
Related to openhab/openhab-addons#12220