Language Context

Description

Hi,

how can we define which language is used to render system texts in templates?

Environment

None

Preliminary Test Cases

None

Activity

Show:
Tibor Hegyi
December 22, 2014, 6:02 AM

HI Andreas, I think this is the Locale of the user sending the email. Also I suppose your templates are based on one of the native JIRA templates. In this case, it is more difficult.

JIRA templates use the Velocity context variable $18n to extract language elements. We'll extend $!jetiFieldRenderer object with a method to return a new i18n bean for a given locale.

Then you can do this in the very beginning of the template to overwrite the default locale:

Also, if you want to use a custom field or user property or something else to specify the locale, you can do that too to make it dynamic:

Where customfield_12345 is a field storing the locale text. this is just an example of course.

Tibor Hegyi
January 9, 2015, 12:53 PM

implemented, soon to be released

Tibor Hegyi
January 19, 2015, 12:22 PM

Released in version 6.0

Done

Assignee

Tibor Hegyi

Reporter

Andreas Haaken

Labels

None

Access to limited visibility issues

None

Product platform

None

Module Dependency

None

Ready for Development

None

Target version

None

Components

Fix versions

Affects versions

Priority

Major
Configure