473,396 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Localizable Resources and Satellite Assembly dll

Hi!
I am just starting to use .NET and need some help!

If I create my own DLL for String resouces using this command:
C:\WINNT\MICROS~1.NET\Framework\v1.1.4322\Al /t:lib
/embed:resourceString.fr-ca.resources, /culture:fr-ca
/out:Example2.resources.dll

C:\WINNT\MICROS~1.NET\Framework\v1.1.4322\Al /t:lib
/embed:resourceString.resources, /out:Example2.resources.dll

I then have to copy these two files (that have the same name) to the
correct directory locations. Where do I put the default DLL
(Example2.resources.dll using resourceString.resources)? (If I put the
fr-ca dll in the fr-ca directory)?

Another problem:
I am using the .Language and the .Localizabe property of the form and
setting the language to "fr". This in return creates
Debug\Form1.fr.resources along with Debug\Form1.resouces. When I
compile it, it creates the Example1.Resources.dll and puts them in the
appropriate directory. I am also assuming this dll contains all
resources for all forms in the solution. So.....

How can I create my own Example1.Resources.dll for Strings and have
Example1.Resources.dll from Form1 as well??? This is kind of
confusing!

So far I have only been able to use the .recouces file (using
ResourceManager.CreateFileBasedResourceManager). I can use the
Localizable property, but I cannot access strings from my satellite
assembly dll created from my resouces file.

Any help is greatly appreciated!
Thanks
Eric
Jul 21 '05 #1
1 2832
Derick,

For the first question, you need to create the culture specific satelite dll
with the culture name embedded in it.

Instead of:

Al /t:lib /embed:resourceString.fr-ca.resources /culture:fr-ca
/out:Example2.resources.dll

Use:

Al /t:lib /embed:resourceString.fr-ca.resources,
resourceString.fr-ca.resources /c:fr-ca /out:Example2.fr-ca.resources.dll

You create the default or invariant satelite dll like this:

Al /t:lib /embed:resourceString.resources, resourceString.resources
/out:Example2.resources.dll

Place the dlls in the following folders:

bin/Example2.resources.dll

bin/fr-ca/Example2.resources.dll

Review the following:
ASP.NET Quickstarts - Localization

http://msdn.microsoft.com/library/de...mework_SDK.asp

Google for "localization"
Now the second question is easy, you need to use the Assembly.LoadFrom()
method to explicitly load another satelite assembly that contains your
strings.

HTH
Jorge

"Derick Smith" wrote:
Hi!
I am just starting to use .NET and need some help!

If I create my own DLL for String resouces using this command:
C:\WINNT\MICROS~1.NET\Framework\v1.1.4322\Al /t:lib
/embed:resourceString.fr-ca.resources, /culture:fr-ca
/out:Example2.resources.dll

C:\WINNT\MICROS~1.NET\Framework\v1.1.4322\Al /t:lib
/embed:resourceString.resources, /out:Example2.resources.dll

I then have to copy these two files (that have the same name) to the
correct directory locations. Where do I put the default DLL
(Example2.resources.dll using resourceString.resources)? (If I put the
fr-ca dll in the fr-ca directory)?

Another problem:
I am using the .Language and the .Localizabe property of the form and
setting the language to "fr". This in return creates
Debug\Form1.fr.resources along with Debug\Form1.resouces. When I
compile it, it creates the Example1.Resources.dll and puts them in the
appropriate directory. I am also assuming this dll contains all
resources for all forms in the solution. So.....

How can I create my own Example1.Resources.dll for Strings and have
Example1.Resources.dll from Form1 as well??? This is kind of
confusing!

So far I have only been able to use the .recouces file (using
ResourceManager.CreateFileBasedResourceManager). I can use the
Localizable property, but I cannot access strings from my satellite
assembly dll created from my resouces file.

Any help is greatly appreciated!
Thanks
Eric

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Nils Erik Asmundvaag | last post by:
Hello I hope someone is able to help me with this frustrating problem. I have a C# web project in Visual Studio .NET 2003. I want to support Swedish and Norwegian texts and have put the texts...
3
by: Sarah Woodfield | last post by:
Hi, I have written an application in VB.Net which runs well on my development PC. However on a few clients machines, at apparently random intervals, they get the above message and the programme...
1
by: Havic Ploccin | last post by:
The LocalizedHelloWorld sample in help shows how to embed the default resource into the main assembly. Is this really required? Can we not d this and always require satellite assemblies? I tried...
0
by: ash | last post by:
ok this may seem like a simply question but Im trying to find out how to set the DEFAULT resource satellite to load in an ASP.net application. I understand the hub and spoke architecture and all...
2
by: franzhe | last post by:
Hi all, in a simple ASP.Net application with resources in satellite assemblies I have the following problem: If I set <identity impersonate="true"/>, accessing a culture specific resource...
1
by: Derick Smith | last post by:
Hi! I am just starting to use .NET and need some help! If I create my own DLL for String resouces using this command: C:\WINNT\MICROS~1.NET\Framework\v1.1.4322\Al /t:lib...
0
by: Rob Dob | last post by:
Hi, I have a VS2003 C# asp.net project that has been converted into a VS2005 project. Everything seemed to work well until I make a modification to anything within the Component Designer...
0
by: shamirza | last post by:
· When was .NET announced? Bill Gates delivered a keynote at Forum 2000, held June 22, 2000, outlining the .NET 'vision'. The July 2000 PDC had a number of sessions on .NET technology, and...
1
by: Nader | last post by:
I have the next simple code and it doesn't work: ResourceManager gStrings = new ResourceManager("MyApp.Strings", Assembly.GetExecutingAssembly()); //Get the user's language. CultureInfo ci =...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.