com.day.cq.portlet
Class LocaleUtil

java.lang.Object
  extended by com.day.cq.portlet.LocaleUtil

public abstract class LocaleUtil
extends Object

Utility classes for i18n.

Since:
5.4

Field Summary
static String ATTR_RESOURCE_BUNDLE
          The request attribute holding the resource bundle.
 
Constructor Summary
LocaleUtil()
           
 
Method Summary
static String getMsg(InvocationContext ctx, String key)
          Get the localized message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTR_RESOURCE_BUNDLE

public static final String ATTR_RESOURCE_BUNDLE
The request attribute holding the resource bundle.

See Also:
Constant Field Values
Constructor Detail

LocaleUtil

public LocaleUtil()
Method Detail

getMsg

public static String getMsg(InvocationContext ctx,
                            String key)
Get the localized message.

Parameters:
ctx - The invocation context
key - The key for the message
Returns:
The localized message.


Copyright © 2011-2013 Adobe Systems Incorporated. All Rights Reserved.