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 pairExtInfo
andEvent
for context dependent localization, and forEvent
for general localization.
-
-
Field Summary
Fields Modifier and Type Field Description static EventNameLocalizationProvider
INSTANCE
The instance ofEventNameLocalizationProvider
-
Constructor Summary
Constructors Constructor Description EventNameLocalizationProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getKey(Pair<ExtInfo,Event> pair)
-
Methods inherited from class com._1c.g5.v8.dt.common.localization.ManagerBasedLocalizationProviderBase
getString
-
-
-
-
Field Detail
-
INSTANCE
public static final EventNameLocalizationProvider INSTANCE
The instance ofEventNameLocalizationProvider
-
-
Method Detail
-
getKey
protected String getKey(Pair<ExtInfo,Event> pair)
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.
-
-