Lightswitch Add/Edit screens are not localized

136 Views Asked by At

I'm trying to get my Silverlight Client localized, but I'm stuck with the Add/Edit dialog boxes being localized as well. Everything works correctly except these dialogs. Here are some screenshots:

Here's the localization settings:

enter image description here

It's working fine on the grid:

enter image description here

But not on the Add/Edit dialogs:

enter image description here

1

There are 1 best solutions below

3
On

You need to localize the server tier.

To do so :

  • In Solution Explorer, expand the Data Sources node, and then open the entity.
  • In the Entity Designer, choose a field to localize.
  • In the Properties window, choose the Display Name property, and then enter $(PropertyName).
  • Then add a resources file for default language (which always is English) , and then name it Service.resx.
  • Add values to it regarding to your properties names (e.g. Name: PropertyName, Value: Name)
  • Add another resource file with desired language (e.g. Service.ar-AR).
  • Add values to your localized resource file.

Take a look at: Walkthrough: Localizing a LightSwitch Application (jump to: To localize the server tier) http://msdn.microsoft.com/en-us/library/Xx130603(v=VS.120,d=hv.2).aspx