문제

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 application 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);
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top