Localization beside of text/string


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

How could I localize my UI element such as icon, picture, edit mask, enum description, font, anything required beside of string?



Thank you
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Hi Chan.

I'm not sure what you mean by localizing icon, picture, ... but as for an enum description, have a look at this post: http://forum.strataframe.net/FindPost2712.aspx

You create the attributes and pass your Localization Key and True as your parameters.

For the others, I guess you can always check on your localization key and set the apropriate properties to their text or message contents, something like:

Me.MyControl.Text = RetrieveTextValue("My Localization Key")

Hope it helps. Wink

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Ivan's post is right on the money, you can also localize enums with the EnumDisplayValue attribute:

Public Enum MyEnum As Integer
   <MicroFour.StrataFrame.UI.EnumDisplayValue("MyLocalizationKey",True)> _
   None = 0
   <MicroFour.StrataFrame.UI.EnumDisplayValue("MyLocalizationKey1",True)> _
   Apple = 1
   <MicroFour.StrataFrame.UI.EnumDisplayValue("MyLocalizationKey2",True)> _
   Orange = 2
End Enum

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