How to translate plugin description shown in plugin manager?

I have developed a plugin that is currently unpublished. The src/main/resources/index.jelly file contains a brief English description that is displayed in the plugin manager after installation. I’d now like to translate this description to Finnish.

Internationalizing Messages in Jelly Views looks relevant. So I made the index.jelly file exactly what is shown on that page:

<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:s="/lib/form">
<div>${%message}</div>
</j:jelly>

and moved the plugin description into a “message” entry in a new index.properties file, with the Finnish translation in index_fi.properties. However it does not work. The plugin manager now does not show this plugin in the list of installed plugins at all, and the Jenkins log shows

Caught exception: org.apache.commons.jelly.JellyException: Unable to create expression: %message

Does this mean translating the plugin description via a properties file is not possible? Is there an alternative way?

Don’t know but even if it works it would only work for installed plugins. For not installed plugins it will get that information from this json that doesn’t support multiple languages

The ${%message} syntax seems to be implemented in org.kohsuke.stapler.jelly.CustomJellyContext.CustomXMLParser.createExpression(final String text).

The plugin manager uses the j:include tag to embed the plugin description. I wonder if Jelly then uses a standard context rather than the CustomJellyContext. But even if it used the CustomJellyContext, I’m not sure it would then load the index.properties file from the correct plugin.

From hudson.PluginWrapper.getIndexPage(), it looks like a whole separate index_fi.jelly resource would not be loaded either.