473,406 Members | 2,698 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Fallback for ResourceManager

Is there a way to determine which resource file the resourcemanager
GetString method utilizes in a fallback situation?
Jul 21 '05 #1
2 2954
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

--------------------
From: va********@yahoo.com (Techfan)

Is there a way to determine which resource file the resourcemanager
GetString method utilizes in a fallback situation?


Jul 21 '05 #2
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.

ta****@online.microsoft.com (Tadao Machida [MS]) wrote in message news:<As**************@cpmsftngxa07.phx.gbl>...
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

--------------------
From: va********@yahoo.com (Techfan)

Is there a way to determine which resource file the resourcemanager
GetString method utilizes in a fallback situation?

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Nils Erik Asmundvaag | last post by:
Hello I hope someone is able to help me with this frustrating problem. I have a C# web project in Visual Studio .NET 2003. I want to support Swedish and Norwegian texts and have put the texts...
3
by: Craig | last post by:
Hi I'm creating a web control whereby I use a resource file to store strings for property descriptions and so forth. The namespace for the control is: Unsd.Web.WebControls all classes in the...
0
by: the_medeiros | last post by:
How i can use resources files to show display messages ??? I try use: private static ResourceManager resourceManager = new ResourceManager(typeof(ExceptionManager).Namespace +...
0
by: Weenie the Pooh | last post by:
We are writing an ASP.Net C# application (VS 2003) and plan to use embedded resources files for french, german and english UI. I created resx files named _todo.resx and _todo.fr-CH.resx Here...
7
by: Dennis | last post by:
I have a .resx (xml) file that contains resources. I am trying to follow the example in MSDN for creating the resource Manager as follows: Dim myAssembly As System.Reflection.Assembly...
2
by: Techfan | last post by:
Is there a way to determine which resource file the resourcemanager GetString method utilizes in a fallback situation?
1
by: Franz | last post by:
I know how to use ResourceManager, but I think I don't use it wisely. I have a web user control. Inside the control, I need to call ResourceManager.GetString. However, I also need to call...
0
by: ad | last post by:
We can get the string in Resource with ResourceManager like: ResourceManager rm = new ResourceManager(this.GetType().NameSpace+".Properties.Resources", this.GetType().Assembly); string...
2
by: ngrover | last post by:
When accessing strings from a french language utf-8 .txt file (that has been resgen'ed into a .resources file) via ResourceManager.GetString() method, I am encountering a problem. All the special...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.