ccc.client.core
Class I18n
java.lang.Object
ccc.client.core.I18n
public class I18n
- extends java.lang.Object
Service locator for i18n.
- Author:
- Civic Computing Ltd.
Constructor Summary |
I18n()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UI_CONSTANTS
public static UIConstants UI_CONSTANTS
UI_MESSAGES
public static UIMessages UI_MESSAGES
ERROR_DESCRIPTIONS
public static ErrorDescriptions ERROR_DESCRIPTIONS
ERROR_RESOLUTIONS
public static ErrorResolutions ERROR_RESOLUTIONS
ACTION_STATUSES
public static ActionStatusConstants ACTION_STATUSES
COMMAND_TYPES
public static CommandTypeConstants COMMAND_TYPES
USER_ACTIONS
public static ActionNameConstants USER_ACTIONS
I18n
public I18n()
getLocalisedStatus
public static java.lang.String getLocalisedStatus(ActionStatus status)
- Looks up for localised string for the
ActionStatus
.
- Parameters:
status
- The status to localise.
- Returns:
- The localised string or name of the enum if nothing found.
getLocalisedType
public static java.lang.String getLocalisedType(CommandType command)
- Looks up for localised string for the command type.
- Parameters:
command
- The command to localise.
- Returns:
- The localised string or name of the enum if nothing found.
camelCase
public static java.lang.String camelCase(java.lang.String string)
- Convert a string to 'camel case'.
- Parameters:
string
- The string to convert to camel case.
- Returns:
- The string in camel case.
Copyright © 2010. All Rights Reserved.