String[] tokens = new String[] {
"${clientId}", "${i18n['file-name']}", "${i18n['file-type']}", "${i18n['file-size']}",
"${i18n['progress']}", "${i18n['no-files-selected']}", "${i18n['upload-files']}",
"${uploadFilesButtonClass}"
};
MessageContextFactory messageContextFactory = (MessageContextFactory) FactoryExtensionFinder.getFactory(
MessageContextFactory.class);
MessageContext messageContext = messageContextFactory.getMessageContext();
String i18nFileName = messageContext.getMessage(locale, "file-name");
String i18nFileType = messageContext.getMessage(locale, "file-type");
String i18nFileSize = messageContext.getMessage(locale, "file-size");
String i18nProgress = messageContext.getMessage(locale, "progress");
String i18nNoFilesSelected = messageContext.getMessage(locale, "no-files-selected");