Class LocalizationProcessor
- java.lang.Object
-
- net.anotheria.anosite.content.variables.LocalizationProcessor
-
- All Implemented Interfaces:
VariablesProcessor
public class LocalizationProcessor extends Object implements VariablesProcessor
Variables processor for box translations.- Author:
- rpotopa
-
-
Constructor Summary
Constructors Constructor Description LocalizationProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetLocalizationFromMap(String key)protected StringgetLocalizationFromResources(String key)Returns a text resource by its name.Stringreplace(String prefix, String variable, String defValue, jakarta.servlet.http.HttpServletRequest req)Replace method.
-
-
-
Field Detail
-
PREFIX
public static final String PREFIX
Prefix.- See Also:
- Constant Field Values
-
-
Method Detail
-
replace
public String replace(String prefix, String variable, String defValue, jakarta.servlet.http.HttpServletRequest req)
Description copied from interface:VariablesProcessorReplace method.- Specified by:
replacein interfaceVariablesProcessor- Parameters:
prefix- processor prefixvariable- variable to replacedefValue- default valuereq- request- Returns:
- replaced text
-
-