You can use translation strings for your email template for internationalization. This will become handy if your Confluence is used by people with different languages.
How to create translation properties?
Translation properties are configured in the Email Translations section in the Task Reminder Email Template configuration. Properties have the following format:
Language codes are taken from the official ISO 639-1 specification. For example, an English property is specified as:
The according French property would be:
You can also specify a default property that will be used if no property for a user's language code is specified:
What language will be used?
Translations found in your template content will be replaced with the version specified for each email recipient's language.
The language will be read from what each user configured in their user profile:
Note: we currently don't support sub-codes like en_GB or en_US but only the language specifier (in this case en). If you desire sub-codes for your instance, please let us know with a feature request!
How do I use the translation I specified in my template?
Translation strings are included in the template content using the Task Reminder helper's getText method, e.g. $TR.getText("some.property.key"). Note that no language key must be specified in the argument string, because the language is resolved automatically from the user profile of each recipient!
Here is an example with a simple template using translations:
This could be the respective translations (in English):