#1,130 – Localization XI – Satellite Assemblies

After localizing an application, you’ll have a directory structure that looks something like what’s shown below.

\bin – contains AppName.exe

\bin\fr-FR – contains AppName.resources.dll

\bin\en-US – contains AppName.resources.dll

We started by setting the UICulture tag to en-US.  This resulted in the \en-US\AppName.resources.dll file being generated.  This assembly is the satellite assembly containing English/US resources.

We then extracted resources using the LocBaml tool, translated content to French, and then generated a new satellite assembly for the fr-FR culture, again using the LocBaml tool.

At run-time, the current user interface culture (CurrentUICulture property) is read to determine the desired culture to use when loading resources.  This is typically the language used by the version of Windows that is installed.  (Rather than the current regional setting).

If there is a sub-directory whose name matches CurrentUICulture, then the corresponding satellite assembly is loaded.  If none is found, a neutral language assembly is used.

Advertisement

About Sean
Software developer in the Twin Cities area, passionate about software development and sailing.

One Response to #1,130 – Localization XI – Satellite Assemblies

  1. Pingback: Dew Drop – August 6, 2014 (#1830) | Morning Dew

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: