PC Review


Reply
Thread Tools Rate Thread

Class Library & Localization

 
 
=?Utf-8?B?TWljaGFlbCBNb3JzZQ==?=
Guest
Posts: n/a
 
      26th Apr 2007
Hi Everyone,

I've been tasked with building a messaging service for a custom app that
supports localization. Within the app itself people will be able to specify
the languge of their choice and therefore can switch at run time.

However, the UI layer will send the locale of choice to my component and
then I must retreive and send standard messages based on this choice.

Is there best practive around doing something like this. Are resource files
the way to do this type of localization? How do I retreive these static
messages from a file based on the locale i was given?

Any code samples or links greatly appreciated.
 
Reply With Quote
 
 
 
 
RobinS
Guest
Posts: n/a
 
      3rd May 2007
You set up the resource files for all of the different languages. Then you
can set the culture of the thread to the appropriate one, and it will
display the info from the resource file for that culture. For example, this
will set the culture to (general) French.

Thread.CurrentThread.CurrentUICulture = new CultureInfo("fr");

Robin S.
-----------------
"Michael Morse" <(E-Mail Removed)> wrote in message
news:1CA77C5F-AD84-473D-8682-(E-Mail Removed)...
> Hi Everyone,
>
> I've been tasked with building a messaging service for a custom app that
> supports localization. Within the app itself people will be able to
> specify
> the languge of their choice and therefore can switch at run time.
>
> However, the UI layer will send the locale of choice to my component and
> then I must retreive and send standard messages based on this choice.
>
> Is there best practive around doing something like this. Are resource
> files
> the way to do this type of localization? How do I retreive these static
> messages from a file based on the locale i was given?
>
> Any code samples or links greatly appreciated.



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Localization and the Comparer class Tony Johansson Microsoft C# .NET 2 15th Feb 2010 04:25 PM
Localization getting resource string from class. cpasmwalolo@hotmail.com Microsoft ASP .NET 0 25th Oct 2007 10:36 PM
Basic How To Question: Class Library or Windows Control Library eBob.com Microsoft VB .NET 3 20th Feb 2006 08:12 PM
Big Faceless PDF Library 2.2.3 - A Java class library for importing and creating PDF documents. Gordon Darling Freeware 0 13th Jul 2004 09:17 PM
Class localization Kate Microsoft VB .NET 1 18th Mar 2004 02:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:18 AM.