Package org.openhab.core.thing.i18n
Class ChannelGroupTypeI18nLocalizationService
java.lang.Object
org.openhab.core.thing.i18n.ChannelGroupTypeI18nLocalizationService
This OSGi service could be used to localize a
ChannelGroupType
type using the I18N mechanism of the openHAB
framework.- Author:
- Markus Rathgeb - Initial contribution, Markus Rathgeb - Move code from XML thing type provider to separate service, Laurent Garnier - fix localized label and description for channel group definition, Christoph Weitkamp - factored out from
XmlChannelTypeProvider
andXmlChannelGroupTypeProvider
, Henning Treu - factored out fromThingTypeI18nLocalizationService
, Christoph Weitkamp - Removed "advanced" attribute
-
Constructor Summary
ConstructorDescriptionChannelGroupTypeI18nLocalizationService
(TranslationProvider i18nProvider, ChannelTypeI18nLocalizationService channelTypeI18nLocalizationService, ChannelTypeRegistry channelTypeRegistry) -
Method Summary
Modifier and TypeMethodDescriptioncreateLocalizedChannelGroupType
(org.osgi.framework.Bundle bundle, ChannelGroupType channelGroupType, @Nullable Locale locale)
-
Constructor Details
-
ChannelGroupTypeI18nLocalizationService
public ChannelGroupTypeI18nLocalizationService(TranslationProvider i18nProvider, ChannelTypeI18nLocalizationService channelTypeI18nLocalizationService, ChannelTypeRegistry channelTypeRegistry)
-
-
Method Details
-
createLocalizedChannelGroupType
public ChannelGroupType createLocalizedChannelGroupType(org.osgi.framework.Bundle bundle, ChannelGroupType channelGroupType, @Nullable Locale locale)
-