org.overlord.sramp.ui.client.services.i18n
Interface ILocalizationService

All Superinterfaces:
IService
All Known Implementing Classes:
LocalizationService

public interface ILocalizationService
extends IService

A simple localization service. This service is responsible for providing localized translations of strings that are shown to the user.

Author:
eric.wittmann@redhat.com

Method Summary
 String formatDate(Date date)
          Called to format the given date.
 String formatDateTime(Date dateTime)
          Called to format the given date/time.
 String translate(String key, Object... args)
          Called to translate a message using whatever the current locale might be.
 
Methods inherited from interface org.overlord.sramp.ui.client.services.IService
start
 

Method Detail

translate

String translate(String key,
                 Object... args)
Called to translate a message using whatever the current locale might be.

Parameters:
key - the message key
Returns:
the translated message

formatDate

String formatDate(Date date)
Called to format the given date.

Parameters:
date -

formatDateTime

String formatDateTime(Date dateTime)
Called to format the given date/time.

Parameters:
dateTime -


Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.