sakai icon indicating copy to clipboard operation
sakai copied to clipboard

SAK-47776 Erreur de lecture de [dateAsString] sur le type [org.sakaiproject.tool.summarycalendar.ui.Day]

Open jesusmmp opened this issue 2 years ago • 0 comments

https://sakaiproject.atlassian.net/browse/SAK-47776

We need the replaceAll

Seen here: https://www.tabnine.com/code/java/methods/java.text.MessageFormat/applyPattern

/**
 * Translate a text string based on our i18n files.
 * @since 3.1
 */
public static String i18n(ResourceBundle messages, String key, Object... messageArguments) {
 MessageFormat formatter = new MessageFormat("");
 formatter.applyPattern(messages.getString(key).replaceAll("'", "''"));
 return formatter.format(messageArguments);

jesusmmp avatar Sep 06 '22 08:09 jesusmmp