You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hello,
I see in global.vm file
#set($currentSelection = "$i18n.getText('security.level.restricted.to',${textutils.htmlEncode($level.name)})")
However the '$i18n.getText('security.level.restricted.to',${textutils.htmlEncode($level.name)})' is not compiling and returned as it is.
Would you please advise how to solve this problem?
Thank you.
Hi @RosaBlanka ,
Thanks for reaching out and it looks like you are running into the same or similar issues that is discussed in the following thread, noting there is a link to a feature request at the top as the accepted answer, but further down the thread there is a note on a workaround that worked in this case:
Hi Martin,
We worked around the rendering issue by updating global.vm where we replaced the line
#set($currentSelection = "$i18n.getText('security.level.restricted.to', ${textutils.htmlEncode($level.name)}
)")
with
#set($currentSelection = "Restricted to <span class='redText'>Users</span>")
with this we do not see the rendering issue but this restricts the internationalization of the text displayed meaning any user irrespective of their language preference they see the text "Restricted to Users".
The change in system-comment-field-edit.vm would still be needed and global.vm change is only to fix the Text displayed in the browser UI.
Hope this helps.
-Parashar
AND
Hi Parashar,
Thanks so much for the reply.
I did in a similar way. You are right the issue is somehow related to $18n function here.
But instead of giving a fixed value, I set like this " Restricted to <span class='redText'>${textutils.htmlEncode($level.name)}</span>"
Regards,
-M
Regards,
Earl
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.