com.softicar.platform.common.core.i18n.IdentityLanguageTranslator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-common Show documentation
Show all versions of platform-common Show documentation
The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.
package com.softicar.platform.common.core.i18n;
/**
* This is the identity language translator.
*
* The texts to be translated are returned as-is by the implementation.
*
* @author Oliver Richers
*/
public class IdentityLanguageTranslator implements ILanguageTranslator {
private static IdentityLanguageTranslator singleton = new IdentityLanguageTranslator();
/**
* Returns a reference to the singleton instance of this class.
*/
public static IdentityLanguageTranslator get() {
return singleton;
}
/**
* Returns the given text without modification.
*
* The language parameter is ignored by this method.
*/
@Override
public String translate(LanguageEnum language, String text) {
return text;
}
}