Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

internationalization doesn't work in my velocity template

IMENE FIRAS
September 5, 2021

Hi, Community,

in my Jira plugin, I have created a servlet module that renders a Velocity file.

the problem is that internationalization doesn't work only in this file which is rendered by servlet, however, it works the rest of velocity files created by other modules.

when I have for example:

<h1>$i18n.getText("key. Title")</h1>

it renders ' $i18n.getText("key.title") ' in the interface.

I added my velocity file in atlassian.plugin.xml like that:

<web-resource name="gedSearcher" i18n-name-key="ged-searcher.name" key="ged-searcher">
<description key="ged-searcher.description">The gedSearcher Plugin</description>
<resource name="ged searcher" type="velocity" location="templates/GEDSearcher.vm"/>
</web-resource>

but it still doesn't work, could anyone help me please to solve this problem!

2 answers

1 vote
Bhushan Nagaraj
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
November 27, 2014

Hi Dmitry,

Is there a difference between your time zone setting and the JIRA server time zone?

0 votes
Dmitry Gerasimov
November 27, 2014

Hi,

I found a problem. I fixed JRE with tzupdater but i forgot to change old library joda-time-2.3.jar in Jira's to new one.

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events