java.lang.Object
colesico.framework.pebble.internal.T9nFunction
- All Implemented Interfaces:
com.mitchellbosecke.pebble.extension.Function,com.mitchellbosecke.pebble.extension.NamedArguments
This function perform string translation by previously loaded dictionary (with t9nDictionary tag)
Filter usage example: {{ t9n("strKey") }} - for dictionary name 'messages' {{ t9n("strKey", myName) }} - for dictionary name 'myName' {{ t9n("strKey", [param1, param2]) }} - for dictionary name 'messages' {{ t9n("myStringKey" , myName,[param1, param2]) }} - for dictionary name 'myName'
- Author:
- Vladlen Larionov
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
FUNCTION_NAME
- See Also:
-
-
Constructor Details
-
T9nFunction
public T9nFunction()
-
-
Method Details
-
execute
public Object execute(Map<String, Object> args, com.mitchellbosecke.pebble.template.PebbleTemplate pebbleTemplate, com.mitchellbosecke.pebble.template.EvaluationContext context, int lineNumber) - Specified by:
executein interfacecom.mitchellbosecke.pebble.extension.Function
-
getArgumentNames
- Specified by:
getArgumentNamesin interfacecom.mitchellbosecke.pebble.extension.NamedArguments
-