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
3 replies
Subscribers
8 subscribers
Views
1758 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Rendering labels from Constants or Resource file
venkannak1
over 7 years ago
Hi All,
I have a requirement to render the label on every form to display every label based on the logged in user. If user selected preference as Chinese, the form should be in Chinese otherwise it should be in default (en_US) .
The entire form should not replace, only certain labels which are selected. So, my question is which will give the best performance replace label with constant or call every label from resource file?
OriginalPostID-270136
Discussion posts and replies are publicly visible
0
TJ
A Score Level 2
over 7 years ago
Try using language resource bundle. But since you have only one more language other than English, I would recommend creating forms in both languages. You can first copy the form from en_US to Chinese and then perform required label changes. Hope it helps!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
venkannak1
over 7 years ago
Hi Tajinder, in the meantime I tested with both resource file and constants. I got the huge difference in performance. With constants form took 14 mille sec and with resource file same form took 159 mille sec to render.
But my concern is, if I use large no.of constants say(3000 or so) will it effect my application?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
vasilisg
over 7 years ago
Hello, I would suggest building a large text in a constant, using the insertkeyval() and then create a rule that retreives the label you want using the keyval function.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel