473,386 Members | 2,114 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,386 software developers and data experts.

How to access satellite assemblies created using resgen.exe and al.exe?

Hi there,

I am looking into the ease of implementing the localization/globalization
features of .NET using C#. I have a test app which creates a ResourceManager
and attempts to load a resource for a specified culture.

I created the WinForm application in Visual Studio and added a default
*fallback* resource to the main assembly.

When I create a simple resource file for the en-NZ culture as a text file,
convert it to a resource file using resgen.exe and then create a satellite
assembly using al.exe, my resource manager fails to pick up this new culture
specific resource even though I create the resource manager passing in the
en-NZ culture.

If I add a culture specific resource file to the main assembly the resource
manager picks it up no problem.

I have read alot of online help about this and I can't see where I am going
wrong.

Here are the test application details:

Main Assembly: TestLocalisation.exe (contains a single form with a label
whose text property is to be set from a value extracted from the resource
file)

Default Resource: TestStrings.resx (created in Visual Studio .NET and
built into the main assembly)

en-NZ Resource: TestStrings.en-NZ.resource (created from
TestStrings.en-NZ.txt using resgen.exe and stored in \bin\Debug\en-NZ)

Satellite Assembly: TestLocalisation.resource.dll (created using al.exe
/out:TestLocalisation.resources.dll /c:en-NZ
/embed:TestStrings.en-NZ.resources and also stored in \bin\Debug\en-NZ)

No matter what I try the resource manager fails to find the en-NZ resource
and falls back to the default resource built into the main assembly.

Does anyone have any ideas what I might be doing wrong ?

Thanks in advance,
Ben


Jul 19 '05 #1
0 4664

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

Similar topics

1
by: Cindy | last post by:
I'm trying to create a satellite assembly for my winform project but the resource.dll that gets created with the assembly linker (al.exe) doesn't get used when the language is specified. However,...
8
by: nbaiju | last post by:
Hi, I am building a asp.net application which has satellite assemblies. When building the satellite assemblies dll's from Visual Studio 2003 GUI the application works fine . i.e. the resource...
0
by: BillKi | last post by:
I am working on localizing my webservice to return localized error messages to our client app. I have created 3 resx files, 1 for english (default), 1 for spanish, and 1 for italian. When I...
0
by: Ben Jones | last post by:
Hi there, I am looking into the ease of implementing the localization/globalization features of .NET using C#. I have a test app which creates a ResourceManager and attempts to load a resource...
2
by: Dan | last post by:
I am creating a c# class library project to be used by some exe clients. This library needs to be localized for its text messages using satellite resource-only assemblies; I have created the...
1
by: Gianmaria I. | last post by:
Hi, i've got a problem woth localized assembly resources. My app namespace is GM, and i heve 3 languages.. en as default, it and es. So i've created 3 text resources called: Messages.txt...
2
by: fabrice | last post by:
hello, I nedd help to create and use Library Satellite. I'm using Web Form under framework 1.1 and VB.NET I'm not using Visual Studio. I'd like to internationalize my web application with...
3
by: Adam Calderon | last post by:
In ASP.NET 2.0 you have the choice of using the built in App_GlobalResoruces or App_LocalResources style of using resources or you can use your own resources utilizing satellite assemblies. In the...
0
by: Faris Ahmed | last post by:
Dear ASP newsgroup, I have the following environment: 1) VS2005 ASP.NET 2.0 WebApplication called MyApp. 2) MyApp contains Strings.resx, Strings.en.resx and Strings.de.resx in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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...

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.