471,305 Members | 1,116 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,305 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 1293
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.

Similar topics

16 posts views Thread by CMM | last post: by
11 posts views Thread by CMM | last post: by
3 posts views Thread by SteveCriscuoli | last post: by
3 posts views Thread by ohnoonho | last post: by
2 posts views Thread by TCook | last post: by
8 posts views Thread by Jim Hubbard | last post: by
21 posts views Thread by Peter Bradley | last post: by
reply views Thread by rosydwin | last post: by

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.