Skip to content
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

Merged
merged 2 commits into from
Feb 20, 2022

Conversation

wborn
Copy link
Member

@wborn wborn commented Feb 11, 2022

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

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>
@wborn wborn added the i18n/l10n Internationalization/Localization label Feb 11, 2022
@wborn wborn requested a review from a team as a code owner February 11, 2022 14:50
@wborn wborn added the enhancement An enhancement or new feature of the Core label Feb 12, 2022
} else if (type instanceof ChannelTypeXmlResult) {
bundleInfo.getChannelTypesXml().add((ChannelTypeXmlResult) type);
ChannelTypeXmlResult result = (ChannelTypeXmlResult) type;
bundleInfo.getChannelTypesXml().add(result);
Copy link
Contributor

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?

Copy link
Member Author

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 URIs which can be based on anything.

Copy link
Member Author

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>
@wborn wborn requested a review from cweitkamp February 20, 2022 10:39
Copy link
Contributor

@cweitkamp cweitkamp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks.

@cweitkamp cweitkamp merged commit c300410 into openhab:main Feb 20, 2022
@cweitkamp cweitkamp added this to the 3.3 milestone Feb 20, 2022
@wborn wborn deleted the i18n-bindingid branch February 20, 2022 11:01
splatch pushed a commit to ConnectorIO/copybara-hab-core that referenced this pull request Jul 12, 2023
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature of the Core i18n/l10n Internationalization/Localization
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants