com.atlassian.jira.dev.reference.plugin.language
Class AppendLambdaTranslationTransform
java.lang.Object
com.atlassian.jira.dev.reference.plugin.language.AppendLambdaTranslationTransform
- All Implemented Interfaces:
- TranslationTransform
public class AppendLambdaTranslationTransform
- extends Object
- implements TranslationTransform
A simple translation transform function that appends a 'lambda' character to the end of each translation.
- Since:
- v5.1
Method Summary |
String |
apply(Locale locale,
String key,
String rawMessage)
Given a Locale , i18n key and the rawMessage corresponding to them, apply a transformation
on the message to produce a different translation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AppendLambdaTranslationTransform
public AppendLambdaTranslationTransform()
apply
public String apply(Locale locale,
String key,
String rawMessage)
- Description copied from interface:
TranslationTransform
- Given a
Locale
, i18n key and the rawMessage corresponding to them, apply a transformation
on the message to produce a different translation.
- Specified by:
apply
in interface TranslationTransform
- Parameters:
locale
- the locale that was used to translate the inputkey
- the key that was requested for translationrawMessage
- the result of the translation lookup
- Returns:
- a potentially modified raw message
Copyright © 2002-2013 Atlassian. All Rights Reserved.