gruber
gruber

Reputation: 29789

localizable strings C#

Im thinking about solution which would give mechanizm to localize applications websties etc. On one od the cms I saw option that each time u use localizable string simply put

[LANG::MyText]

and then according to language (each one in different file) tags were replaced.

Should it be done in procompile stage? Or is it something else.

What about aspx pages. Is it possible to do it in simillar way

not put:

<asp:Label test="myTextInEnglish>...

but

<asp:Label text="[LANG:MyText]" ...

I hope that my question is clear

thanks for help

Upvotes: 0

Views: 2747

Answers (1)

Sebastian Zaklada
Sebastian Zaklada

Reputation: 2376

Why not use built in .NET features? Use Cultures

Good to read:

From MSDN

Globalization is the process of designing and developing applications that function for multiple cultures. Localization is the process of customizing your application for a given culture and locale.

These topics are the key to create (ASP).NET Web applications that can be adapted to different languages and cultures, which I suppose is what you are after.

Upvotes: 3

Related Questions