Fallback for ResourceManager

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Techfan

    #1

    Fallback for ResourceManager

    Is there a way to determine which resource file the resourcemanager
    GetString method utilizes in a fallback situation?
  • Tadao Machida [MS]

    #2
    RE: Fallback for ResourceManager

    I might be missunderstandi ng 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

    --------------------[color=blue]
    >From: vatech1993@yaho o.com (Techfan)
    >
    >Is there a way to determine which resource file the resourcemanager
    >GetString method utilizes in a fallback situation?
    >[/color]

    Comment

    • Techfan

      #3
      Re: Fallback for ResourceManager

      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.

      tadaom@online.m icrosoft.com (Tadao Machida [MS]) wrote in message news:<AsO#r3#dD HA.3900@cpmsftn gxa07.phx.gbl>. ..[color=blue]
      > I might be missunderstandi ng 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
      >
      > --------------------[color=green]
      > >From: vatech1993@yaho o.com (Techfan)
      > >
      > >Is there a way to determine which resource file the resourcemanager
      > >GetString method utilizes in a fallback situation?
      > >[/color][/color]

      Comment

      Working...