473,547 Members | 2,653 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VS2005 C# Resource woes continued.

Bob
Hi,
My app is now successfully accessing the default Resources.resx.
I have made a Resources.fr-FR.resx
yet ..
#if (French)

Thread.CurrentT hread.CurrentUI Culture = new CultureInfo("fr-FR",
false);//Definitely being executed

Thread.CurrentT hread.CurrentCu lture = new CultureInfo("fr-FR", false);

#endif

this.Text = Resources.Strin g1;

Is giving the String1 out of the default Resources file.

In a fit of desperation I translated the project into VB and this 'logic'
works fine.

Any suggestions as to why this doesn't work in C#?

My Initial feeling is that it is because the default resources are sitting
under properties.

ie. The full access path is Projectname.pro perties.Resourc es ( I have a
'using Projectname.pro perties' statement in the class header)

The added Resource file Resources.fr-FR is sitting under the project
directly seeing thats where the IDE places them

So it seems to me that the project probably can't see Resources.fr-FR so it
falls back to the default.

If this is case how can you get exta language resource files to be easily
seen?

If this is not the problem then any clues as to what is the problem would be
appreciated.

(Form localizable property is true) language set to Default and
French(France) have both been tried.

Thanks

Bob


Feb 21 '06 #1
1 1347
Bob
Hi,
Figured it out.
Thanks
Bob
"Bob" <bo*@nowhere.co m> wrote in message
news:eP******** ******@TK2MSFTN GP14.phx.gbl...
Hi,
My app is now successfully accessing the default Resources.resx.
I have made a Resources.fr-FR.resx
yet ..
#if (French)

Thread.CurrentT hread.CurrentUI Culture = new CultureInfo("fr-FR",
false);//Definitely being executed

Thread.CurrentT hread.CurrentCu lture = new CultureInfo("fr-FR", false);

#endif

this.Text = Resources.Strin g1;

Is giving the String1 out of the default Resources file.

In a fit of desperation I translated the project into VB and this 'logic'
works fine.

Any suggestions as to why this doesn't work in C#?

My Initial feeling is that it is because the default resources are sitting
under properties.

ie. The full access path is Projectname.pro perties.Resourc es ( I have a
'using Projectname.pro perties' statement in the class header)

The added Resource file Resources.fr-FR is sitting under the project
directly seeing thats where the IDE places them

So it seems to me that the project probably can't see Resources.fr-FR so it falls back to the default.

If this is case how can you get exta language resource files to be easily
seen?

If this is not the problem then any clues as to what is the problem would be appreciated.

(Form localizable property is true) language set to Default and
French(France) have both been tried.

Thanks

Bob


Feb 22 '06 #2

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

Similar topics

6
3615
by: Brad | last post by:
I have a win2003 server workstation with multiple webs, each web has it's own ip address. In VS2005, if I select to open an existing web site, select Local IIS, the dialog correctly displays a list of all of my webs, however if I attempt to open a site under and web other than localhost I receive the message: "Unable to open the Web...
16
1637
by: CMM | last post by:
Is it me or has anyone noticed that F1 is really dumb in VS2005. Since VB3 I have been able to click F1 on an ambiguous method in code and the IDE automatically determines the type based on the code itself and shows the right help topic. This even worked more or less in VS2003. But in VS2005, if I highlight the "Host" method below and hit F1...
11
1466
by: CMM | last post by:
I am so disappointed in VS2005. The "little things" wrong with it are just mind-boggling. Boy, I'll be so mad if I have to wait a year for the ".1" release that fixes all the bugs in this obvious beta product. This (received today) is just one of the many examples of why ASP.NET 2.0 was totally not ready for prime time....
3
1437
by: SteveCriscuoli | last post by:
I originally posted this in microsoft.public.xml ... my apologies to those to who read both groups ... Someone please tell me if I'm missing something here. The XML Comment generator in VS2005 seems to be woefully incomplete. I created a test solution with 2 classes in different namespaces XTest.Derived.DerivedClass XTest.Base.BaseClass
3
1396
by: ohnoonho | last post by:
Hello, I posted this in the C# group but thought maybe the better place would be here since it is happening with website projects so please forgive any cross posting. In my website projects I can set a breakpoint, run the app, the breakpoint gets hit, and I can step through or check some variables or what not, and if I hit stop it...
0
1466
by: GT | last post by:
This question has been posted before, but without any response so therefore I'm trying once more. I'm trying to embed .resource files into a Windows application in VS2005, and then compile and run the program from VS2005. This does not work because the debugger seems not find the resource files, and I keep getting the following error: ...
2
1017
by: TCook | last post by:
Hey All, I'm trying to add a resource file to my app but it's not working. I have done the following: -- Added a .resx file -- Added some strings -- Named the file "MyStrings.en.resx" -- Add the file as a resource to the "Project" "Properties" "Resources"
8
1575
by: Jim Hubbard | last post by:
(I know this is a great big newsgroup no-no, but I originally only posted to microsoft.public.dotnet.general and that newsgroup doesn't seem to have near the readership of these - so I thought I'd also post this info here for the benefit of the greater dotnet programming community.) Well, after looking at this list, I'm thinking of staying...
21
2396
by: Peter Bradley | last post by:
Hi all, This post is sort of tangentially related to my earlier posts on configuration files for DLLs. Does anyone know how to create typed DataSets using VS2005's new DataSet designer, but with the ability to configure the connection string via a config file? The designer seems to hard-code the connection string into the dataset...
0
7510
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7437
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7703
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7797
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6032
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5081
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3473
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1923
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1050
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.