Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / December 2007

Tip: Looking for answers? Try searching our database.

Resources: How to retrieve localized resource?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Axel Dahmen - 01 Dec 2007 13:20 GMT
Hi,

I've created a class library assembly containing several string resource files, like:

- TableColumns.resx
- TableColumns.de.resx
- General.resx
- General.de.resx

I don't know how to address each of these having automatic language fall-back enabled.

If I write...

 new ResourceManager("TableColumns",...GetExecutingAssembly()).GetString("someID");

...I always only get strings from TableColumns.resx, but not from TableColumns.de.resx, although CurrentCulture.Name yields "Germany".

What am I doing wrong?

TIA,
Axel Dahmen
Steven Cheng[MSFT] - 03 Dec 2007 03:56 GMT
Hi Axel,

Regarding on this issue, I've found your another thread in the following
newsgroup:

Subject: Resources: How to retrieve localized resource?
Date: Fri, 30 Nov 2007 03:06:01 -0800
Newsgroups: microsoft.public.dotnet.languages.csharp

I have posted some suggestion there. Please have a look there and welcome
to continue followup in that thread.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>From: "Axel Dahmen" <KeenToKnow@newsgroup.nospam>
>Subject: Resources: How to retrieve localized resource?
[quoted text clipped - 9 lines]
>If I write...
>  new ResourceManager("TableColumns",...GetExecutingAssembly()).GetString("someID"
);
>...I always only get strings from TableColumns.resx, but not from TableColumns.de.resx, although CurrentCulture.Name yields "Germany".
>What am I doing wrong?
>TIA,
>Axel Dahmen

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.