Enumerations and Localization


Author
Message
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
Working so late ?
What time is it ?
What's the day today ?
I locked myself in a room and someone feeds me everynow and then ...Crazy
Steve L. Taylor
Steve L. Taylor
StrataFrame Developer (68 reputation)
Group: StrataFrame Developers
Posts: 40, Visits: 91
Ivan what are you doing working so late?  You will be happy to know the upcoming release 1.5 has a new attribute for enum localization.  In fact we changed all of the enums in security for some guy in Brazil -- what a pain BigGrin

The following snippets reveal its simplicity.

Steve

'-- Standard Enum
Public Enum DeniedActions as Integer
  NoMessage = 0
  ReplaceEachCharacter = 1
End Enum

'-- Localized Enum
Public Enum DeniedActions as Integer

  <EnumDisplayValue("IVANEnum - Message", True) > _
  NoMessage = 0

 <EnumDisplayValue("IVANEnum - Replace", True) > _
  ReplaceEachCharacter = 1
End Enum

Attribute Constructor
 New(ValueorKey as String, IsLocalizationKey as Boolean)

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 guys.

Would it be possible to declare Enum members as SF localizable keys ?

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