How to set a value in Velocity $i18n?

Is there a setText() or something like method for setting velocity values in vm.

To get for example: $i18n.getText("plugin.license.valid")

What about set?

Thanks

1 answer

0 vote

Are you talking about setting a variable name?

#set ($somevar = "Some Value")

No, I mean a value in a properties file.

In properties file, I have: plugin.license.valid=false

I want to set it to true. Is it possible? :)

You will have to change it in properties. You can't change it dynalically :)

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 14, 2018 in Agile

Marketplace Technical Collection Pages

You might have noticed something new on Marketplace in the last several months which was the addition of our new collection pages. We heard feedback that it can be hard to browse apps in Marketplace ...

77 views 0 4
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you