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 / Languages / C# / April 2008

Tip: Looking for answers? Try searching our database.

Localization problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Yoavo - 16 Apr 2008 14:43 GMT
Hi,
I am trying to localize my application but I have some difficulties doing
it.
In my application I need to load the translated resource from a specific
folder (that the user determine using the command line argument ).
My application contains an .exe with a form with buttons which their text is
taken from a DLL.
The DLL was translated and the satellite translated dll is placed in a
certain folder.
In the code I load the translated file to an Assembly, create a
ResourceManager from this Assembly, and try to get the text using GetString
method.
I get an exception when calling GetString method.

This is my code:
           string aResourceFile = System.IO.Path.Combine(mResourcePath,
"TestRC.resources.dll");
           System.Reflection.Assembly ResourceAssembly =
System.Reflection.Assembly.LoadFile(aResourceFile);
           ResourceManager rm = new ResourceManager("TestRC",
ResourceAssembly);
           string res= rm.GetString(iName);
           return res;

When calling to GetString I get a
System.Resources.MissingManifestResourceException:
"Additional information: Could not find any resources appropriate for the
specified culture or the neutral culture.  Make sure "TestRC2.resources" was
correctly embedded or linked into assembly "TestRC2.resources" at compile
time, or that all the satellite assemblies required are loadable and fully
signed."

Can someone please help or advice?
thanks,

Yoav.
unnikrishnan@gmx.com - 16 Apr 2008 15:44 GMT
> Hi,
> I am trying to localize my application but I have some difficulties doing
[quoted text clipped - 32 lines]
>
> Yoav.

Hi Yoav,

Are you getting the error when you debug or while you are running? If
you have a statellite assembly, I would suggest running al.exe to
combine the satelite assembly to the running program so that it knows
where to find it. Take a look at al.exe in the microsoft web site.

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.