Page view counter
Silverlight Localization Subscribe to this thread
Last post 11-16-2008 2:47 PM by slyi. 2 replies.
Sort Posts:
11-16-2008 8:58 AM
Silverlight Localization

Does the approach of localization (resource files with names containing the locales they are meant for) works for Silverlight too?? Or is there any other specific measure because multiple resource files would increase the .xap size redundantly??

Secondly, when I added a reference to System.Xml.Linq to my SL app, it dropped multiple localized dlls to the bin directory (one each in folders de, es etc.) I analyzed those dlls with Reflector. They basically just contain localized strings with no code. My first question is this could be done with a .resx file also (as with ASP.NET). Why an assembly is required?? Also, these assemblies appear to be useless as the .xap contains only the main System.Xml.Linq dll. After the client has downloaded the .xap, how come these dlls come into play?? They just seem like lying there good for nothing.

r_honey

Loading...
Joined on 08-11-2007
Posts 79
11-16-2008 10:32 AM
Marked as Answer
Re: Silverlight Localization

 This link might be helpul.

BTW in our application we generally use xml that contains localized texts and they are hosted in the web site. The application downloads them and show the localized text according to user location or preference. For finding out user location we use web services sometimes that gives location based on IP address.

Please Mark as Answer if this helps you.
Thanks n Regards
~Tanmoy
Blog: http://anothersilverlight.blogspot.com/

tanmoy.r

Loading...
Joined on 09-06-2007
Pune (India)
Posts 615
11-16-2008 2:47 PM
Re: Re: Silverlight Localization

Yes the resx model is silverlight loc model aswell. You have two options keep xap size low

1. Load all the application resources for a culture on demand http://wpf-e.spaces.live.com/blog/cns!2B248D261D0E0035!407.entry

2. Load the loc resources as you use a control http://wpf-e.spaces.live.com/blog/cns!2B248D261D0E0035!458.entry

slyi

Loading...
Joined on 09-16-2005
Ireland
Posts 186
Microsoft Communities