Pre-defined localization data for web


Author
Message
Chan
Chan
Advanced StrataFrame User (965 reputation)Advanced StrataFrame User (965 reputation)Advanced StrataFrame User (965 reputation)Advanced StrataFrame User (965 reputation)Advanced StrataFrame User (965 reputation)Advanced StrataFrame User (965 reputation)Advanced StrataFrame User (965 reputation)Advanced StrataFrame User (965 reputation)Advanced StrataFrame User (965 reputation)
Group: Forum Members
Posts: 533, Visits: 2K
Hi,

I have developed web based RBS in my application. I faced problem that, when I retrieve text/message of localized security data such as "SFSM_PasswordAuthenticationFailed", it returned msg_text in rtf format.



1. Are there any ready localization text for web?

2. I found that is MessageItem.IsHtml but I couldn't found any where to let me specify it.



Please advice. Thank you
Replies
Dustin Taylor
Dustin Taylor
StrataFrame Team Member (938 reputation)
Group: StrataFrame Users
Posts: 364, Visits: 771
Chan,

No, the localization is not stored in HTML as they weren't designed to be used on the web. Your best bet for this would be to use an RTF to HTML converter on the existing Localization items to convert them into HTML for display. There are quite a few RTF to HTML converters available out there (a google serach for "vb.net RTF to HTML" returns more than enough options.) I believe we use a mixture for our own RTF to HTML conversions so I don't have just one to recommend to you, just whichever one works best for your needs. Once you have the coverter working once, it can be used on all keys, which saves you the leg work of converting them yourself.

Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
What Dustin said is true, but you can use the Text values if you want to embed HTML istead of RTF.  This is what we do.  For example, instead of using a Message, we will create a text value, add whatever HTML tags we need, and then pull the text value instead of the message.  The other option is to create a shared class that converts RTF to HTML...we have done this before as well.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search