473,379 Members | 1,253 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Class Library & Localization

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.
Apr 26 '07 #1
1 3702
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" <Mi**********@discussions.microsoft.comwrote in message
news:1C**********************************@microsof t.com...
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.

May 3 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Bob Rock | last post by:
Hello, in the last few days I've made my first few attempts at creating mixed C++ managed-unmanaged assemblies and looking afterwards with ILDASM at what is visible in those assemblies from a...
6
by: Rental | last post by:
I'm having the sam problem as described below with the Localization toolkit. Does anyone know if there is a solution to this problem. --->When attempting to generate resource dlls with...
2
by: Julia | last post by:
Hi, We want to migrate out asp application to asp.net and take advantage on localization. I want to ask how it is advice to structure the site directory I am going to use resource only...
2
by: Corvus | last post by:
We have a significant ASP.Net web application I am considering localizing to Spanish. All the .aspx and .aspx.cs files have hard-coded English. The issue is that we are a small company without...
2
by: walter | last post by:
Hi there, I'm wondering if it's possible to store the .net resource in database instead of resx file? Our site is a multi-lingual site ,storing text in resx file give us a burden on the website...
5
by: CMM | last post by:
I don't seem to "get" ASP.NET 2.0's Localization features. I've read up on everything... and of course, everything is explained in cursory softball terms- not any "real-world" usage way. I hope...
3
by: Computer Guru | last post by:
I have a VB.NET 2005 application with several forms and a couple hundred "strings." I've been looking into all the localization improvements in VB.NET, and I can't seem to find anything that...
2
by: Nathan Sokalski | last post by:
I am moving my website from my machine to my webhost, and need some help with what extra files I need to include due to the fact that I used AJAX in my site. Everything on the site is obviously...
1
by: =?Utf-8?B?QU5lZWxpbWE=?= | last post by:
I am using C# and I created an .aspx page and the corresponding .aspx.cs code behind file. In the code behind file I have the following class structure public partial class myclass : page { ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.