Search

Boolean values are not translated by Marcin Misztal

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)
0
User(s) can reproduce this bug
Boolean fields stays as True/False even when culture is changed.
Details (expand)

LightSwitch Release Version

Version 1.0

Product Language

English

Steps to reproduce

1) Create a table with boolean field
2) Display table in data grid
3) Change culture for the application to other than English for example Spanish or Polish

Operating System

Windows 7

Operating System Language

English

Actual results

True / False - with any culture

Expected results

For spanish:
True -> Verdadero
False -> Falso

For polish:
True -> Prawda
False -> Fałsz
File Attachments
0 attachments
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