It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

JEMH Velocity Template - Change Locale for some text

Tasneem Bhyat May 04, 2017

Hi

 

I have a requirement to do a velocity template which is a combination of English and Afrikaans text. Firstly, the issue created date needs to be in the form dd MMMM yyyy i.e. 2 May 2017. This date must be in both English and Afrikaans.

 

Next is I have other text in the template of which some needs to be shown in Afrikaans. Please can you advise how I can achieve this.

 

Thanking you

Tasneem

1 answer

0 votes
Mike Harrison May 15, 2017

Hello,

If the content you are referring to is found via an i18n key, and your JIRA installation has support for Afrikaans, you can change the i18n locale used for rendering i18n content "on-the-fly". See here for more information: https://thepluginpeople.atlassian.net/wiki/display/JEMH/Change+the+language+of+a+custom+notification+template

Thanks,

Mike

Mike Harrison May 15, 2017

It looks like there is no Afrikaans locale support in Java's JRE by default, but it might be possible by changing a Java system property to include CLDR as a Locale provider: https://docs.oracle.com/javase/8/docs/technotes/guides/intl/enhancements.8.html#cldr. I cannot vouch for whether this actually works however.


If your Afrikaans content is just part of your template and not retrieved through i18n keys, then it will just render as you have it in your template.

See here for more on date formatting: https://thepluginpeople.atlassian.net/wiki/display/JEMH/Work+with+Dates+in+velocity+templates

Tasneem Bhyat May 17, 2017

Hi

 

Thank you for your reply. With regards to the second reply, I am assuming that it relates to your first reply where you say "and your JIRA installation has support for Afrikaans"? The JIRA install has no support for Afrikaans. So are you suggesting trying to include it in the JRE?

"ff your Afrikaans content is just ..."...the template I am doing has the top half written in English and the second is in Afrikaans...BUT the portion which needs to be translated are the JIRA issue STATUS values (which can be one of many......)

 

Please advise..

 

 

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in United States

Topic Tuesday: Agile

Another week, another Topic Tuesday!  Agile has been on my mind a lot lately because I've seen good implementations and bad implementations, but now as a Jira admin it matters more to me whether...

41 views 0 0
View post

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you