PC Review


Reply
Thread Tools Rate Thread

Resources: How to retrieve localized resource?

 
 
Axel Dahmen
Guest
Posts: n/a
 
      1st Dec 2007
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

 
Reply With Quote
 
 
 
 
Steven Cheng[MSFT]
Guest
Posts: n/a
 
      3rd Dec 2007
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" <(E-Mail Removed)>
>Subject: Resources: How to retrieve localized resource?
>Date: Sat, 1 Dec 2007 14:20:14 +0100
>
>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
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Resources: How to retrieve localized resource? Axel Dahmen Microsoft C# .NET 5 5th Dec 2007 08:02 AM
Re: localized Version of XO for Canadian English Al Smith Windows XP General 0 17th Sep 2004 10:56 PM
Re: localized Version of XO for Canadian English Alex Nichol Windows XP General 0 16th Sep 2004 04:16 PM
Re: localized Version of XO for Canadian English David Candy Windows XP General 2 16th Sep 2004 12:14 AM
Batch files referencing localized characters failes... mailman Windows XP General 0 30th Jul 2003 10:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:33 PM.