Fallback for ResourceManager

  • Thread starter Thread starter Techfan
  • Start date Start date
T

Techfan

Is there a way to determine which resource file the resourcemanager
GetString method utilizes in a fallback situation?
 
I might be missunderstanding something with your question but this is a
fallback situation.

For example, Japanese case.
Specific culture resource: ja-JP (Japanese Japan) --> neutral resource: ja
(Japanese) --> then fallback resource in main assembly.
Other language is same, specific, neutral then main assembly.
First two resources are in sattelite assemblies and fall back is in main
assembly.

Thanks,
Tadao

--------------------
 
Sorry I didn't explain it better. Let's go with your example. If I
use the GetString method of the resourcemanager and an entry exists in
the ja-JP resource file, it returns the value of the entry. If the
resource manager can't find an entry in the ja-JP resource, it looks
in the ja resource file. Here again if it finds the entry it returns
it, if it does not it looks in the main assembly.

My question is lets say it can't find the string in the ja-JP resource
file, but it finds it in the ja resource file. The GetString method
returns the value of the string. Is there anyway to determine that it
came from the ja resource file? Or if it had to fall all the way back
to the main assembly is there any way to determine the value came from
the main assembly?

Ideally I'd like to be able to determine if the resource manager had
to fall back all the way to the main assembly and log a message to an
error log so that a support team could identify missing entries for
the requested language.
 
Back
Top