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

Translation in Macro Drop-Down Prompts

1474034719
PadRpg
Sheet Author
API Scripter
Hi, For one of my sheets, I would like to put a translation into a macro drop-down prompt that is in a rolltemplate query. I try that but it didn't work: {{diceroll=[[?{Ability|^{power},@{pow}d10|^{intellect},@{int}d10|^{charisma},@{cha}d10|^{vigor},@{vig}d10|^{perception},@{per}d10|^{instinct},@{ins}d10|^{agility},@{agi}d10|^{tenacity},@{ten}d10|^{communication},@{com}d10}]]}} All the translation variables already exist because it's the ones for the abilities. I tried without the translation and it's working: {{diceroll=[[?{Ability|power,@{pow}d10|intellect,@{int}d10|charisma,@{cha}d10|vigor,@{vig}d10|perception,@{per}d10|instinct,@{ins}d10|agility,@{agi}d10|tenacity,@{ten}d10|communication,@{com}d10}]]}} Is it possible to do it like that ? If it is, any idea(s) about why it didn't work? Thanks
1474035043
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Are you trying to use the language translations of a given sheet? I don't believe that that info is accessible from the chat interface.
1474035264
PadRpg
Sheet Author
API Scripter
No, it's in one of my sheet.
Hi everybody, Same question for a character sheet I am working on. How can we use i18n translation in a drop down and more generally in macro ? I tried a lots of unsuccessfull options... So if anybody can help... Thanks
1474704104
vÍnce
Pro
Sheet Author
AFIK(and I may be mistaken), translations are done within the sheet(using i18n tags) and will only be seen on the sheet itself or in chat via a roll template's defined properties/keys.  @Borgrumm; Not sure if you were referring to dropdown's on a sheet or a query...  Dropdown selectors on a sheet can be translated by inserting an appropriate i18n tag within <option>.  Queries, like inline rolls, are handled "off-sheet" and do not currently have a method for translation.  Again, I could be mistaken.
Hi Vince, and thanks for your feed back. I was refering to inline rolls dropdowns. I managed all the other translations problems I will wait for an update on roll 20 to finish.