如何本地化ASP。Net Memebership提供程序在WPF应用程序中

时间:2021-11-15 04:12:24

We are using ASP.Net Membership provider for user management module in our WPF based application. It seems to be working fine. But now we want to localize our WPF application, and don't know how to do that with respect to the data stored as part of Membership Provider. Is Localization supported by Membership Provider ? Is so, any input on this would be of great help.

我们使用ASP。基于WPF的应用程序中的用户管理模块的Net成员资格提供程序。它似乎运行得很好。但是现在我们想本地化我们的WPF应用程序,并且不知道如何对作为成员资格提供程序一部分存储的数据进行本地化。成员资格提供者是否支持本地化?是这样的,任何关于这方面的建议都将大有帮助。

Regards, Smitha

问候,Smitha

1 个解决方案

#1


0  

That depends on what sort of data do you store in with the provider that needs to be localized and how you tie it to the UI.

这取决于需要本地化的提供者存储的数据类型,以及如何将其绑定到UI。

For pre-determined values you can use resources, and then pull out the required string from a resource.

对于预先确定的值,可以使用资源,然后从资源中提取所需的字符串。

For user-generated stuff (such as usernames and other stuff like that) I don't think you want to localize that.

对于用户生成的东西(比如用户名和其他类似的东西),我认为您不希望本地化它。

#1


0  

That depends on what sort of data do you store in with the provider that needs to be localized and how you tie it to the UI.

这取决于需要本地化的提供者存储的数据类型,以及如何将其绑定到UI。

For pre-determined values you can use resources, and then pull out the required string from a resource.

对于预先确定的值,可以使用资源,然后从资源中提取所需的字符串。

For user-generated stuff (such as usernames and other stuff like that) I don't think you want to localize that.

对于用户生成的东西(比如用户名和其他类似的东西),我认为您不希望本地化它。