Class EventNameLocalizationProvider
java.lang.Object
com._1c.g5.v8.dt.common.localization.ManagerBasedLocalizationProviderBase<Pair<ExtInfo,Event>>
com._1c.g5.v8.dt.form.localization.EventNameLocalizationProvider
- All Implemented Interfaces:
ILocalizationProvider<Pair<ExtInfo,Event>>
public class EventNameLocalizationProvider
extends ManagerBasedLocalizationProviderBase<Pair<ExtInfo,Event>>
Event names localization provider.
Provides event names from event localization properties files (Events.properties and Events_ru.properties).
Some events have equal names but different localization which depends on context.
So this provider looks for pair ExtInfo and Event for context dependent localization,
and for Event for general localization.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EventNameLocalizationProviderThe instance ofEventNameLocalizationProvider -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com._1c.g5.v8.dt.common.localization.ManagerBasedLocalizationProviderBase
getString
-
Field Details
-
INSTANCE
The instance ofEventNameLocalizationProvider
-
-
Constructor Details
-
EventNameLocalizationProvider
public EventNameLocalizationProvider()
-
-
Method Details
-
getKey
Returns key for pairExtInfoandEvent. Beginning key gets fromExtInfoEClassname and event name. If localization string for this key founded returns one. Otherwise returns key from event name only.- Specified by:
getKeyin classManagerBasedLocalizationProviderBase<Pair<ExtInfo,Event>> - Parameters:
pair- object to get key for.- Returns:
- key corresponding for the object or
nullif no key available.
-