Home Dashboard Directory Help
Search

Boolean values are not translated by Marcin Misztal


Status: 

Closed
 as Won't Fix Help for as Won't Fix


1
0
Sign in
to vote
Type: Bug
ID: 683293
Opened: 8/7/2011 10:24:34 PM
Access Restriction: Public
1
Workaround(s)
view
0
User(s) can reproduce this bug

Description

Boolean fields stays as True/False even when culture is changed.
Details
Sign in to post a comment.
Posted by Microsoft on 9/12/2011 at 3:29 PM

Essentially, this is a result of the .NET Framework representation of the Boolean structure. Based on the underlying value, the Boolean.ToString() method returns the TrueString or FalseString static readonly values. For more information, read this MSDN article:

http://msdn.microsoft.com/en-us/library/s802ct92.aspx

The only suggestion I would make is to specify a choices list for the field in the LightSwitch Entity Designer. You could specify the desired culture-specific values for "True" and "False".

Sign in to post a workaround.
Posted by Marcin Misztal on 8/7/2011 at 10:52 PM
In the table use choice list for boolean field:

Value - Display Name:
True - Verdadero
False - False