473,320 Members | 1,859 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,320 software developers and data experts.

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.CurrentThread.CurrentUICulture = new CultureInfo("fr-FR",
false);//Definitely being executed

Thread.CurrentThread.CurrentCulture = new CultureInfo("fr-FR", false);

#endif

this.Text = Resources.String1;

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.properties.Resources ( I have a
'using Projectname.properties' 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 1341
Bob
Hi,
Figured it out.
Thanks
Bob
"Bob" <bo*@nowhere.com> wrote in message
news:eP**************@TK2MSFTNGP14.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.CurrentThread.CurrentUICulture = new CultureInfo("fr-FR",
false);//Definitely being executed

Thread.CurrentThread.CurrentCulture = new CultureInfo("fr-FR", false);

#endif

this.Text = Resources.String1;

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.properties.Resources ( I have a
'using Projectname.properties' 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
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...
16
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...
11
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...
3
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...
3
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...
0
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...
2
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" --...
8
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...
21
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.