开发者

How retrieve neutral language resource when multiple resource files for different languages exist?

开发者 https://www.devze.com 2023-02-17 09:38 出处:网络
I have multiple resource files to support different languages. The user is presented with resources in his preferred language. Additional logging is being done to an applica开发者_开发知识库tion log,

I have multiple resource files to support different languages. The user is presented with resources in his preferred language. Additional logging is being done to an applica开发者_开发知识库tion log, to which I would like to log using the neutral language (English) only.

I do not want a dedicated resource file for English only messages. The same messages shown to end users in their language should be able to be additionally logged in English to the application log file.

What would the best approach to doing this?


Try

string res = Resources.ResourceManager.GetString("...", CultureInfo.InvariantCulture);
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号