HighTechTalks DotNet Forums  

loading satellite assembly depending on culture

Dotnet Internationalization microsoft.public.dotnet.internationalization


Discuss loading satellite assembly depending on culture in the Dotnet Internationalization forum.



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

Default loading satellite assembly depending on culture - 10-23-2007 , 03:16 AM






Hi all,

I want to load satellite assembly depending on cluture set. I created
one satellite assembly using al.exe and then in folder say 'de' i
copied this file.

When i set culture as 'de' and try to load the assembly its not
working.

What i am doing is giving original resource file which is in text
format to user and after getting transalted file generating satellite
assembly.

but this is not working.

if i do same thing throuhg visual studio means adding translated
resoource file say string.de.txt into solution then its working. but
after deployment if i do same thing its not working.

please help me asap.

thanks.


Reply With Quote
  #2  
Old   
Jaakko Salmenius
 
Posts: n/a

Default Re: loading satellite assembly depending on culture - 11-02-2007 , 08:10 PM






Hi,

In your Program.cs add the following lines:

using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Threading; //Add
using System.Globalization; //Add

namespace Simple
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Thread.CurrentThread.CurrentUICulture = new CultureInfo("de"); //Add

Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(fals e);
Application.Run(new Form1());
}
}
}

Best regards,
Jaakko Salmenius
http://www.sisulizer.com - Three simple steps to localize



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.