Dynamic localization of WinForms

We have a CAB (Composite Application Block) application for the winform smart client.

One of our software requirements is to dynamically change the text when the user changes the language parameter specified in our application.

We support about 6 languages, including East Asian (Chinese / Japanese), European languages ​​(Russian, Spanish, English, Dutch).

Understanding some deep level in localization, I learned that localization is not just replacing text dynamically.

I found that Windows controls are created based on the localized resource option. IT has formatting, a validation sorting function.

Is it recommended to localize the text dynamically without closing the form / view? Or do you need to restart the application? Or close the form and open the form

Why shouldn't dynamic language change be encouraged?

+3
source share
2 answers

I would only check the language at startup and load the corresponding resource (.resx) to download all the lines for your application. You can do this on your own, or I believe that .Net has a built-in way to do this using resource files.

. ? " ", .

, , , , - .

0

, .

- .NET(), : http://www.dotneti18n.com/Downloads.aspx , , .

Windows , . , .

0

Source: https://habr.com/ru/post/1719902/


All Articles