Interface CategoryMessageProvider
public interface CategoryMessageProvider
Provider interface for internationalized task planner category group labels.
Implementations of this interface can be registered to provide i18n'd category labels for category keys. Multiple providers can be registered, and the first one that returns a non-null value for a given key will be used.
- Since:
- taskplanner 26.4
-
Method Summary
Modifier and TypeMethodDescription@Nullable StringgetCategory(@Nonnull String key) Returns the internationalized category group label for the given category key.
-
Method Details
-
getCategory
Returns the internationalized category group label for the given category key.If this provider does not know how to handle the given key, it should return null to allow other providers to handle it.
- Parameters:
key- the category key (e.g., "time_scheduling", "tickets", "inventory")- Returns:
- the internationalized category label, or null if this provider does not handle the given key
- Since:
- 26.4
-