Pergunta

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?

Foi útil?

Solução

Try

string res = Resources.ResourceManager.GetString("...", CultureInfo.InvariantCulture);
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top