473,769 Members | 5,900 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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\Framewor k\v1.1.4322\Al /t:lib
/embed:resourceS tring.fr-ca.resources, /culture:fr-ca
/out:Example2.re sources.dll

C:\WINNT\MICROS ~1.NET\Framewor k\v1.1.4322\Al /t:lib
/embed:resourceS tring.resources , /out:Example2.re sources.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.resou rces.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.res ouces. When I
compile it, it creates the Example1.Resour ces.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.Resour ces.dll for Strings and have
Example1.Resour ces.dll from Form1 as well??? This is kind of
confusing!

So far I have only been able to use the .recouces file (using
ResourceManager .CreateFileBase dResourceManage r). 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 2871
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:resourceS tring.fr-ca.resources /culture:fr-ca
/out:Example2.re sources.dll

Use:

Al /t:lib /embed:resourceS tring.fr-ca.resources,
resourceString. fr-ca.resources /c:fr-ca /out:Example2.fr-ca.resources.dl l

You create the default or invariant satelite dll like this:

Al /t:lib /embed:resourceS tring.resources , resourceString. resources
/out:Example2.re sources.dll

Place the dlls in the following folders:

bin/Example2.resour ces.dll

bin/fr-ca/Example2.resour ces.dll

Review the following:
ASP.NET Quickstarts - Localization

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

Google for "localizati on"
Now the second question is easy, you need to use the Assembly.LoadFr om()
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\Framewor k\v1.1.4322\Al /t:lib
/embed:resourceS tring.fr-ca.resources, /culture:fr-ca
/out:Example2.re sources.dll

C:\WINNT\MICROS ~1.NET\Framewor k\v1.1.4322\Al /t:lib
/embed:resourceS tring.resources , /out:Example2.re sources.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.resou rces.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.res ouces. When I
compile it, it creates the Example1.Resour ces.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.Resour ces.dll for Strings and have
Example1.Resour ces.dll from Form1 as well??? This is kind of
confusing!

So far I have only been able to use the .recouces file (using
ResourceManager .CreateFileBase dResourceManage r). 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
7572
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 in resource files (.resx). I build the project from the IDE without errors. A main assembly (containing the Swedish texts) are created, and a resource assembly
3
13521
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 crashes out. The error isn't occurring during set-up, but during use of the programme. I am having trouble trapping for this as I don't know what it means and therefore what might be causing it. As far as I know, I am not using any resource files...
1
2065
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 this, but for some reason, I could not provide the "correct" name to the resource manager, therefore it did not know how to pick up the resource from the satellite assembly. Any help is appreciated.
0
1239
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 the rest of it but I dont understand how to do this bit MSDN QUOTE: " To use resources in ASP.NET pages, first create a parallel main assembly to store your application's resources. This assembly will contain the DEFAULT or NEUTRAL resources...
2
7280
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 from a satellite assembly fails with the error message: "Could not find any resources appropriate for the specified culture (or the neutral culture) in the given assembly. ..."
1
293
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 /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
0
9169
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 window, i.e. I add a SQLCommand. At that point VS2005 changes my C# file to now load all Selectcommantext data from the resource file instead of the .aspx.cs file. then when I try and once again run my application I get the following error: looking...
0
3668
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 delegates were given CDs containing a pre-release version of the .NET framework/SDK and Visual Studio.NET. · When was the first version of .NET released? The final version of the 1.0 SDK and runtime was made publicly available around 6pm PST on...
1
1832
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 = new CultureInfo("es"); String str = gStrings.GetString("Username", ci); I have two assemblies: one is the fallback String.resx and the other one is Strings.es.resx
0
9586
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10043
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9861
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8869
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7406
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5298
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3956
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.