Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Internationalization / January 2005

Tip: Looking for answers? Try searching our database.

Building satellite assemblies in the IDE

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
AndrewEames - 07 Jan 2005 15:19 GMT
I've internationalized my product. From most of the reading I've done, it
seems that the satellite assemblies need to be built "by hand" and so I've
done this in the post-build step of my project although this is not very
elegant.

However, I notice that when doing a build of any old c# project, the
mysterious message "Building satellite assemblies..." gets spit out as part
of the build. Does this mean there is some way that Visual Studoi can build
the satellite assemblies for me that I am not aware of?
 Thanks
   Andrew
Kai Brinkmann [MSFT] - 07 Jan 2005 19:20 GMT
You do not *have* to build your satellite assemblies by hand (using resgen
and al). You can, of course, which allows you to modify existing assemblies
or add new languages without having to rebuild everything, but the IDE can
certainly handle it for you!

All you have to do is add the .resx files for each language to your project.
Make sure you follow the proper naming conventions, i.e. <Base
Name>.<culture ID>.resx. The language neutral and fallback resources can
also be added as <Base Name>.resx. (These resources will be embedded in the
main assembly containing your code.) When you build your project, the
appropriate satellite assemblies (<Base Name>.resources.dll) will
automatically be created in the appropriate directories (culture ID)
underneath your output directory (bin/<Configuration>). You'll notice that
you won't have access to the .resources files this way (created manually
using resgen). They are created at compile time, of course, and then
embedded into the DLLs. However, they are not actually saved as separate
files.
Signature

Kai Brinkmann [MSFT]

Please do not send e-mail directly to this alias. This alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.

> I've internationalized my product. From most of the reading I've done, it
> seems that the satellite assemblies need to be built "by hand" and so I've
[quoted text clipped - 9 lines]
>  Thanks
>    Andrew
AndrewEames - 10 Jan 2005 15:41 GMT
That's a pretty well kept secret! That seems to work just fine, even
including copying satellite assemblies of referenced assemblies

I have a few observations...

1) This should really be made clearer in the MSDN help - all of the
localization topics in the help lead you towards using resgen and al - I
didn't find any reference to the fact you could do this in VS

2) The localized .resx files for controls and forms are not visible in the
Solution Explorer unless Show all Files is Checked. Thus if you add a
localized .resx file for a form it doesn't look like anything has happened

3) For some odd reason, I had to add my localized files *twice* into the
solution before they would appear. The first time, it seemed to go away and
do something but the file wasn't added - the second time it actually got
added to the solution

4) Selecting multiple .resx files to add in the Add Item dialog didn't seem
to work - maybe this isrelated to 3)

Anyway, thanks for your help
 Andrew Eames

> You do not *have* to build your satellite assemblies by hand (using resgen
> and al). You can, of course, which allows you to modify existing assemblies
[quoted text clipped - 26 lines]
> >  Thanks
> >    Andrew
Ros L - 12 Jan 2005 02:01 GMT
I generate my .resources files from text files.  I find that I have to
use resgen and al.exe to build my satellite assemblies in Visual
Studio.NET.  Do I have to use .resx files for these files to be
generated automatically.  What are the advantages of resx files over
text files if your resources are all strings?
Marin Millar [Microsoft] - 21 Jan 2005 16:39 GMT
Yes, Visual Studio only supports compilation of .resx files.  Another
advantage of using the .resx format (assuming strings only..) is that in the
.resx file you can add a comment tag, so your localizers can see your comment
about how a given string should be localized.  Marin

> I generate my .resources files from text files.  I find that I have to
> use resgen and al.exe to build my satellite assemblies in Visual
> Studio.NET.  Do I have to use .resx files for these files to be
> generated automatically.  What are the advantages of resx files over
> text files if your resources are all strings?

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.