Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Localisation query

Reply
Thread Tools

Localisation query

 
 
BabuLives
Guest
Posts: n/a
 
      11-09-2005
hai,

By using the following i can get the localised information for the
particular form in which am writing this code but what should i do if i
want to get the same language data for the other forms also..

Thread.CurrentThread.CurrentCulture = new CultureInfo("hi-IN");
Thread.CurrentThread.CurrentUICulture = new CultureInfo("hi-IN");
ResourceManager rm = new
ResourceManager("WebSatellite.ResourceFile",Assemb ly.GetExecutingAssembly());
string st=rm.GetString("lblMessage");
lblMessage.Text=rm.GetString("lblMessage");


Regards,
Satheesh

 
Reply With Quote
 
 
 
 
Karl Seguin
Guest
Posts: n/a
 
      11-09-2005
if I understand correctly, you want to persist the culture information
throughout multiple web requests?

I've written a 3 part series on creating multilingual websites, it goes
beyond using the built-in resourceManager. You might find it all
interesting, but for now, check out:
http://www.openmymind.net/index.aspx...d=4#urlrewrite

it talks about how to use Global.asax and UrlRewriting to pass around the
culture.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
http://openmymind.net/redirector.aspx?documentId=51 - Learn about AJAX!



"BabuLives" <> wrote in message
news: oups.com...
> hai,
>
> By using the following i can get the localised information for the
> particular form in which am writing this code but what should i do if i
> want to get the same language data for the other forms also..
>
> Thread.CurrentThread.CurrentCulture = new CultureInfo("hi-IN");
> Thread.CurrentThread.CurrentUICulture = new CultureInfo("hi-IN");
> ResourceManager rm = new
> ResourceManager("WebSatellite.ResourceFile",Assemb ly.GetExecutingAssembly());
> string st=rm.GetString("lblMessage");
> lblMessage.Text=rm.GetString("lblMessage");
>
>
> Regards,
> Satheesh
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET 2.0 Localisation problem Localizable attribute not working... aidancasey@gmail.com ASP .Net 2 09-19-2007 12:41 PM
Site map localisation (.net 2.0) Griff ASP .Net 1 02-14-2006 04:55 PM
[Newbie UK Date problem] Ways atround this UK date format localisation/SQLselection issue? DC ASP .Net 5 07-01-2005 09:35 PM
Localisation problem Olivier Matrot ASP .Net 1 03-08-2005 11:24 AM
Localisation Toolkit and Repeater controls Tony ASP .Net 1 02-10-2004 01:07 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57