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 EventNameLocalizationProvider
The 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 pairExtInfo
andEvent
. Beginning key gets fromExtInfo
EClass
name and event name. If localization string for this key founded returns one. Otherwise returns key from event name only.- Specified by:
getKey
in classManagerBasedLocalizationProviderBase<Pair<ExtInfo,
Event>> - Parameters:
pair
- object to get key for.- Returns:
- key corresponding for the object or
null
if no key available.
-