Class PropertiesFileLocaleLayer

  • All Implemented Interfaces:
    java.lang.reflect.InvocationHandler, LayerInterface, LocaleLayerInterface

    public abstract class PropertiesFileLocaleLayer
    extends Layer
    implements LocaleLayerInterface
    This class use the java resource bundle api to translate the text for the specific locale.
    Author:
    javaito
    • Constructor Detail

      • PropertiesFileLocaleLayer

        public PropertiesFileLocaleLayer​(java.lang.String implName)
    • Method Detail

      • translate

        public java.lang.String translate​(java.lang.String text)
        Changes the parameter string with the value into the bundle file indexed by the parameter text.
        Specified by:
        translate in interface LocaleLayerInterface
        Parameters:
        text - Text to translate.
        Returns:
        Translated text or the same text if the are any error.