0

Messagebox content localization

asked 2014-04-17 23:38:36 +0800

fcychou gravatar image fcychou
1

Is there a way to use HTML tags in the .properties files for localized texts to change the style for a portion of the text? For example in Messagebox I'd like to display the email address as a link. But if I use Labels.getLabel(java.lang.String key, java.lang.Object[] args) and put ZK anchor object in there. Everything is still treated as a string instead - so I get "Please contact us by email

Any help would be much appreciated. Thank you.

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2014-04-21 17:12:03 +0800

fcychou gravatar image fcychou
1

Thank you all for the help. I got it working using a separate zul page instead of Messagebox.

link publish delete flag offensive edit

answered 2014-04-18 15:17:10 +0800

Steva77 gravatar image Steva77 flag of Italy
1014 3
http://www.research.softe...

Avoid considering .properties for that. Something like:

<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>    
<a href="mailto:${c:l('mail.address')} ">${c:l('mail.address')} </a>

works fine.
Cheers,
Stefano

link publish delete flag offensive edit

answered 2014-04-18 05:30:46 +0800

chillworld gravatar image chillworld flag of Belgium
5367 4 9
https://github.com/chillw...

updated 2014-04-18 06:09:23 +0800

I think you have to create your own form where you can give an emailadress with for the anchor. Actually not that difficult, just a zul page with some label and anchor. Maybe also a some pictures but that's what you want make from it.

Greetz chill.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2014-04-17 23:38:36 +0800

Seen: 19 times

Last updated: Apr 21 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More