Groups | Blog | Home
all groups > dotnet faqs > september 2005 >

dotnet faqs : satellite assemblies


Sathiamoorthy
9/19/2005 12:00:00 AM
Hi,

What is satellite assemblies? How can we use create satellite assemblies?
Please any one give with Examples.

Regards,

R.Sathaiamoorthy

Francisco Garcia
9/19/2005 12:00:00 AM
Satellite assemblies are resource-only assemblies which contain resources
for a given culture.

For an example, follow these steps:

Create a new Windows Application called Satellite
Set the Form's Text to "House"
Now, set the "Localizable" property of the form to true
Now, set the Language property of the form to "French"
Now, set the Text property to "Maison"
Now, set the Language property of the form to "Spanish"
Now, set the Text property to "Casa"

Build your project. The result will be an executable file ("Satellite.exe")
and two satellite assemblies with resources in French and Spanish.

Hope it helps

"Sathiamoorthy" <someone@microsoft.com> escribió en el mensaje
news:u43$F3QvFHA.2504@TK2MSFTNGP15.phx.gbl...
[quoted text, click to view]

Sathiamoorthy
9/21/2005 12:00:00 AM
Thanks for your example.

I created the assemblies which contains fr, es folder.

i clicked the Satellite.exe the text properity of the form is showing only
"House"

How can i view the "Maison" and "Casa"

Thanks and Regards,

R.Sathiamoorthy



[quoted text, click to view]

Francisco Garcia
9/21/2005 12:00:00 AM
Satellite.exe will automatically select the best choice according to O.S.
settings.

Programmatically, you can change the culture used for reading resources by:

System.Threading.Thread.CurrentThread.CurrentUICulture = new
CultureInfo("fr-FR");

I haven't tested that line; it might contains errors, but the process is
that:

You set the CurrentUICulture property of current thread to a CultureInfo
object for desired culture.

Hope it helps


"Sathiamoorthy" <someone@microsoft.com> escribió en el mensaje
news:Oqr6b5pvFHA.2212@TK2MSFTNGP15.phx.gbl...
[quoted text, click to view]

Richard Grimes [MVP]
10/15/2005 4:18:36 PM
[quoted text, click to view]

see section 9 of my Fusion tutorial

http://www.grimes.demon.co.uk/workshops/fusionWS.htm

Satellite assemblies are not assemblies in the sense that we know it.
They are not loaded by Fusion, versioning is different to assemblies,
they don't contain code and there is no security (d'oh no code so no
code access security). Personally, if I had been in charge of this at
Microsoft, I would never have called them assemblies.

Richard
--
www.grimes.demon.co.uk

AddThis Social Bookmark Button