Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

i18n data, roll button and macro variables

1480958994
Natha
KS Backer
Sheet Author
API Scripter
How do you translate the text of a macro variable in a roll button value ? For example :  <button type="roll" name="RollStrength" data-i18n-title="strength-roll" title="Strength roll" value="&{template:tmplt} {{character=@{character_name}}} {{title=^{strength}}} {{roll=[[2d6+@{strength}+ ?{Bonus|0} ]]}}" ></button> How do I set the i18n data for the " Bonus " text/macro variable to be translated?
1481004565
Silvyre
Forum Champion
I'm not sure, but you could replace "Bonus" with a translated Attribute ^{bonus}.
1481012103

Edited 1481012121
Natha
KS Backer
Sheet Author
API Scripter
Thanks Silvyre but I tried that already and its doesn't work : the input message shows "^{bonus" as text (without the closing brace).