Liferay 6.2-ce-ga5

com.liferay.portlet.translator.util
Class TranslatorUtil

java.lang.Object
  extended by com.liferay.portlet.translator.util.TranslatorUtil

public class TranslatorUtil
extends Object


Constructor Summary
TranslatorUtil()
           
 
Method Summary
static String[] getFromAndToLanguageIds(String translationId, Map<String,String> languageIdsMap)
           
static Map<String,String> getLanguageIdsMap(Locale locale)
           
static Translation getTranslation(String fromLanguageId, String toLanguageId, String fromText)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TranslatorUtil

public TranslatorUtil()
Method Detail

getFromAndToLanguageIds

public static String[] getFromAndToLanguageIds(String translationId,
                                               Map<String,String> languageIdsMap)

getLanguageIdsMap

public static Map<String,String> getLanguageIdsMap(Locale locale)
                                            throws SystemException
Throws:
SystemException

getTranslation

public static Translation getTranslation(String fromLanguageId,
                                         String toLanguageId,
                                         String fromText)
                                  throws WebCacheException
Throws:
WebCacheException

Liferay 6.2-ce-ga5