ValidateThis API Documentation

ValidateThis.core
Class BaseTranslator

WEB-INF.cftags.component
        extended by ValidateThis.core.BaseTranslator
Direct Known Subclasses:
RBTranslator , ColdBoxRBTranslator

public class BaseTranslator
extends WEB-INF.cftags.component

I am a responsible for translating text.


Constructor Summary
init(any LocaleLoader, struct localeMap, string defaultLocale)
          I build a new Translator
 
Method Summary
 string getDefaultLocale()
          I return the default locale
 any getLocales()
          I return the cached locales
 any safeKey(Any message)
          I take a message and turn it into a key
 any translate(Any translateThis, [Any locale=''])
          I translate text
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init(any LocaleLoader, struct localeMap, string defaultLocale)
I build a new Translator

Parameters:
LocaleLoader
localeMap
defaultLocale
Method Detail

getDefaultLocale

public string getDefaultLocale()
I return the default locale


getLocales

public any getLocales()
I return the cached locales


safeKey

public any safeKey(Any message)
I take a message and turn it into a key

Parameters:
message

translate

public any translate(Any translateThis, [Any locale=''])
I translate text

Parameters:
translateThis
locale

ValidateThis API Documentation