HighTechTalks DotNet Forums  

satellite assemblies

Dotnet FAQs microsoft.public.dotnet.faqs


Discuss satellite assemblies in the Dotnet FAQs forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Sathiamoorthy
 
Posts: n/a

Default satellite assemblies - 09-19-2005 , 07:21 AM






Hi,

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

Regards,

R.Sathaiamoorthy



Reply With Quote
  #2  
Old   
Francisco Garcia
 
Posts: n/a

Default Re: satellite assemblies - 09-19-2005 , 09:17 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 (AT) microsoft (DOT) com> escribió en el mensaje
news:u43$F3QvFHA.2504 (AT) TK2MSFTNGP15 (DOT) phx.gbl...
Quote:
Hi,

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

Regards,

R.Sathaiamoorthy





Reply With Quote
  #3  
Old   
Sathiamoorthy
 
Posts: n/a

Default Re: satellite assemblies - 09-21-2005 , 07:09 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



"Francisco Garcia" <nospam (AT) nowhere (DOT) com> wrote

Quote:
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 (AT) microsoft (DOT) com> escribió en el mensaje
news:u43$F3QvFHA.2504 (AT) TK2MSFTNGP15 (DOT) phx.gbl...
Hi,

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

Regards,

R.Sathaiamoorthy







Reply With Quote
  #4  
Old   
Francisco Garcia
 
Posts: n/a

Default Re: satellite assemblies - 09-21-2005 , 09:39 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.CurrentUICul ture = 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 (AT) microsoft (DOT) com> escribió en el mensaje
news:Oqr6b5pvFHA.2212 (AT) TK2MSFTNGP15 (DOT) phx.gbl...
Quote:
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



"Francisco Garcia" <nospam (AT) nowhere (DOT) com> wrote in message
news:eCFPGwRvFHA.2216 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
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 (AT) microsoft (DOT) com> escribió en el mensaje
news:u43$F3QvFHA.2504 (AT) TK2MSFTNGP15 (DOT) phx.gbl...
Hi,

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

Regards,

R.Sathaiamoorthy









Reply With Quote
  #5  
Old   
Richard Grimes [MVP]
 
Posts: n/a

Default Re: satellite assemblies - 10-15-2005 , 11:18 AM



Sathiamoorthy wrote:
Quote:
Hi,

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

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




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.