c# - Localization in a WCF server -


i versed in using localization in simple wpf ui application.

i in process of developing wcf client/server architecture; want able create various types of exception in server, , have error message in culture of client.

this seems straightforward enough - somehow identify culture being used particular wcf client @ time.

however, want messages potentially logged server's logfile in 1 language (typically english) allow easier support of application.

there various assemblies used in both server , client side; each assembly going have string table of error messages. therefore when exception created, needs have resource id , resource manager given assembly hand. without sub-classing each available exception type, cannot see how around this. seems lot of work problem has surely been encountered before?

example

server.a.dll

error resources: myerrorstring1, myerrorstring2 resource manager: resourcemanagera 

server.b.dll

error resources: myerrorstring3 resource manager: resourcemanagerb 

so ideally need have access resource manager given string @ time need either log message file or send on wcf fault; don't want lose ability catch types of exceptions using 1 generic exception class.

does have experience of problem, or cool suggestions on how go implementing it?

thanks in advance,
steve

i don't think idea show plain exception messages users. instead, catch them log them , show friendly message in ui. way won't need subclass anything...


Comments