Package org.openhab.core.thing.i18n
Class ThingTypeI18nLocalizationService
java.lang.Object
org.openhab.core.thing.i18n.ThingTypeI18nLocalizationService
This OSGi service could be used to localize a
ThingType
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
-
Constructor Summary
ConstructorDescriptionThingTypeI18nLocalizationService
(TranslationProvider i18nProvider, ChannelGroupTypeI18nLocalizationService channelGroupTypeI18nLocalizationService, ChannelGroupTypeRegistry channelGroupTypeRegistry, ChannelTypeI18nLocalizationService channelTypeI18nLocalizationService, ChannelTypeRegistry channelTypeRegistry) -
Method Summary
Modifier and TypeMethodDescriptioncreateLocalizedThingType
(org.osgi.framework.Bundle bundle, ThingType thingType, @Nullable Locale locale)
-
Constructor Details
-
ThingTypeI18nLocalizationService
public ThingTypeI18nLocalizationService(TranslationProvider i18nProvider, ChannelGroupTypeI18nLocalizationService channelGroupTypeI18nLocalizationService, ChannelGroupTypeRegistry channelGroupTypeRegistry, ChannelTypeI18nLocalizationService channelTypeI18nLocalizationService, ChannelTypeRegistry channelTypeRegistry)
-
-
Method Details
-
createLocalizedThingType
-