By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,771 Members | 1,685 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,771 IT Pros & Developers. It's quick & easy.

VS2005 C# Resource woes continued.

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.