Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
4 replies
Subscribers
7 subscribers
Views
1844 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
We need to change the label based on the user locale in SAIL form. For example,
cmtam
over 9 years ago
We need to change the label based on the user locale in SAIL form. For example, we need to show the label as
- "Keyboard Color" while the user locale is en_US
- "Keyboard Colour" while the user locale is en_GB
- ???? while the user locale is zh_HK
- ???? while the user locale is zn_CN
how can we do this? Is there any recommendaton method from Appian ?
OriginalPostID-141777
OriginalPostID-141777
Discussion posts and replies are publicly visible
0
Stefan Helzle
A Score Level 3
over 9 years ago
This plugin should help you
forum.appian.com/.../summary
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
nileshr
over 9 years ago
Hi!
You have to apply "if" for displaying the label. It can be done as follows
a!form(
label:if( ri!user locale="en_US","Keyboard Color",
if(ri!user locale="en_GB","Keyboard Color",
????
)
)
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
nileshr
over 9 years ago
Further adding to the above answer, you can find out the user locale by using user function.
user(ri!yourUser,"locale")
where "ri!yourUser" holds the value of user.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
cmtam
over 9 years ago
I identified the solution for my case is either the one mentioned by stefanh791 or Load Resource Bundle plugin. I preferred to use the Load Resource Bundle
plugin.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel