Deploy a new resource assembly

M

Mircea Pleteriu

Hi,

I will present you a virtual scenario. Here it is.

Say, we develop a web app consisting in one page only.
The page displays a culture-dependent text and a switch (as a dropdown list)
to select one of 20 possible languages. Changing the language entails
changing the text.
At current time, the app supports only 5 cultures - having a resources file
for each of the 5 cultures.
The app is to be deployed (in its precompiled version) on the "customer"
system.
Becuase only 5 languages are available, selecting one the other languges
will set the text to the default language.

Now, after the app was deployed, it should be possible to deploy new
satellite assemlies for new languages as the transalations become available.

Here it is what I did in order to achive that (it did not work):
1. By default, the app comes with 2 languages: English (default) and German.
The bin folder contains the "de-DE" subfolder that contains the satellite
assembly for German resources.
2. With VS2005 I've created a new resx file for a new culture (Romanian).
3. I've generated the binary file out of the resx file with the "resgen"
tool.
4. I've genereted the new satellite assembly for Romanian resources with the
"al" tool.
5. Under the bin folder, I've created the "ro-RO" subfolder where I deployed
the new assembly.
6. I've restarted the IIS server and stopped the ASP.NET worker process.
7. I've browsed to the web page and switched the language to "Romania" - the
code behind set the Thread.CurrentCulture and Thread.CurrentUICulture
properties to "new CultureInfo("ro-RO")".
8. I've been expecting that the text will change to the Romaian text.. but
it still shows the default Language :(.

I mention that switching between the 5 initially supported language, the app
behaves as expected.

Do you know where I'm wrong or how else could I add/deploy new resources
without recompling the app?

Thanks a lot,
Mircea
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,708
Latest member
SherleneF1

Latest Threads

Top