How to set a value in Velocity $i18n?

Bahar Çağlar October 22, 2012

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

Suggest an answer

Log in or Sign up to answer
0 votes
Jobin Kuruvilla [Adaptavist]
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 Leaders.
October 22, 2012

Are you talking about setting a variable name?

#set ($somevar = "Some Value")

Bahar Çağlar October 22, 2012

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? :)

Jobin Kuruvilla [Adaptavist]
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 Leaders.
October 22, 2012

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

TAGS
AUG Leaders

Atlassian Community Events