How to Add a Default File For Language Resource:Part 3

Adding a default file for language resources, Part 3

In my previous article I described how to localize the Silverlight client screen (http://www.c-sharpcorner.com/UploadFile/18ddf7/how-to-localize-a-silverlight-client-screenpart-2/).

In this article I describe how to add a default file for language resources.

Procedure for localizing the client screen

Step 1

Open the Solution Explorer.

sol.jpg

Step 2

In the Solution Explorer, choose the Toggle View and switch to Toggle View.

solex.jpg

Step 3

The Solution Explorer appears as shown.

fileview.jpg

Step 4

Right-click on the Application1.DesktopClient, choose the Add option.

add.jpg

Step 5

After choosing the Add option choose "New item".

new item.jpg

Step 6

The Add New Item-Application1.DesktopClient appears.

add nw item.jpg

Step 7

In the Add New Item, Choose the resources file option and then name it "Client.resx".

For a Silverlight client of a LightSwitch application, we must always name the default file for language resources "Client.resx", and the file must be in the root node of the client project.

resource.jpg

Step 8

Add the following values to the resource file:

client.resx.jpg

The values in the Name column match the resource identifiers but the values don't have the $() notation. The values in the Value column are the strings that will appear when a user runs the application.


Similar Articles