views:

130

answers:

1

I am trying to localize standart ASP.NET login control. When I change page culture I want label 'password' to be automatically translated. I know how to work with resources in ASP.NET but I do not want to make localization myself, I am sure that microsoft has already translated all captions and error messages.

A: 

Follow this instruction :

  1. Download and install the German language pack for .NET 2.0

  2. In the webform's source, add UICulture="auto" in the <%@ Page directive, for example: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" UICulture="auto" %>

  3. View this page in browser, change your browser's preferred language to German, Then you should see the login control displayed in German language.

If you installed other language packs, users browsing your web site can set their preferred language and your web page will display in the language if its installed.

Hope this help you.

Source

Mostafa
Thank you for your answer, I've tried to install .NET 3.5 sp1 language pack but it failed to install due to compatibility issues..NET 2.0 language pack also failed to install because 'this product is already installed'.
Alex Ilyin