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 / July 2006

Tip: Looking for answers? Try searching our database.

Embedding localized resources

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
cold80 - 25 Jul 2006 14:32 GMT
I'm trying to understand how VS 2005 and the .NET Framework 2.0 can be
used for a localized application. I've read a lot of messages, posts
and guides but I can find a straight answer. I would like to write a
DLL library, but I think it'll contain also some forms. I'd like to add
a global resx file for all the error messages and a resource file for
each form. This can be done very easily with VS2005. Then I can add a
resource file for each language with the naming convention and
everythink works very well. My problem is that I don't want satellite
assemblies!!! My DLL should be delivered alone and it would be a
problem for me to package it with all the directories and satellite
assemblies. I tried to embed all the resources with the right names in
the main assembly (for example of a EXE project) using the command line
tools. The problem is that the ResourceManager try to find the
localized resources outside the main assembly and, as it can't find
them, the neutral language is always used. Is there a "solution" to
this problem? May I change the probing mechanism of the ResourceManager
object? Or should I write something on my own?

Thank you for your help

Cold
Jay B. Harlow [MVP - Outlook] - 26 Jul 2006 13:25 GMT
Cold,
I don't know if you can modify the way ResourceManager works or not. It is
so ingrained in how VS, the tools, & the framework works, I'm not sure if I
would try.

What you may try is the "trick" a VS 2005 addin uses. It creates a single
CommandBars.resx file, then puts each localized resource in this single
.resx file prefixing the tags with the respective culture.

http://msdn.microsoft.com/msdnmag/issues/06/02/PasteAs/

Signature

Hope this helps
Jay B. Harlow [MVP - Outlook]
.NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net

| I'm trying to understand how VS 2005 and the .NET Framework 2.0 can be
| used for a localized application. I've read a lot of messages, posts
[quoted text clipped - 17 lines]
|
| Cold

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.