473,795 Members | 2,812 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

mulyiple language in c#.net application

Hi this sarav...

I having some languages in dropdownlist(li ke
english,tamil,j apan.......)

based on this dropdown selection full application need to change
corresponding language..
Anyone give solution for this

Sep 12 '06 #1
2 1790
Hi Sarav,

Using a satellite assemblies for all your languages you can swap between
them by setting CurrentCulture/CurrentUICultur e

This sample is for a web app, but the same applies for windows apps.
Google for 'satellite assemblies'

http://www.codeproject.com/aspnet/Sa...Assemblies.asp

On Tue, 12 Sep 2006 07:50:20 +0200, <sa************ @gmail.comwrote :
Hi this sarav...

I having some languages in dropdownlist(li ke
english,tamil,j apan.......)

based on this dropdown selection full application need to change
corresponding language..
Anyone give solution for this


--
Happy Coding!
Morten Wennevik [C# MVP]
Sep 12 '06 #2
Hi Sarav...

I am not sure you are develop standalone app or web app
For my experience, I am develop multilanguage webapp as follow

1. Create a text file, and store your text in name-pair format, e.g.
lblFirstName=Fi rst Name
lblLastName=Las t Name
If you are stored english, please save the file in Resource.txt, if you are
save Traditional Chinese, please save the file in Resource.zh-hk.txt
It is not compulsory, just for easy maintenance

2. Download .Net SDK, and locate the tool
regen.exe
al.exe
and execute following, e.g. English
resgen Resources.txt Resources.resou rces
al /t:lib /embed:Resources .resources /culture:en
/out:%APP_ROOT%\ Resources.dll

e.g. Traditional Chinese
resgen Resources.zh-hk.txt Resources.zh-hk.resources
al /t:lib /embed:Resources .zh-hk.resources /culture:zh-hk
/out:%APP_ROOT%\ zh-hk\Resources.re sources.dll

Please remember that using sultable culture to compile the resource file,
and the compiled dll file must placed under the bin of your application
root.
If it is English resource, just placed under the application root/bin, if it
is other than English, then you need create the folder, with the culture
name, under the application root/bin, and place the dll inside.

3. In your application, for example, cs file, add some code to get the text
from the resource file
// get the language package
Thread.CurrentT hread.CurrentUI Culture = new CultureInfo(lan guage); //
language should be "en", "zh-hk" or other microsoft acceptable culture code

Assembly assembly = Assembly.Load(" Resources");
resources = new ResourceManager ("Resources" , assembly);

// if you like to get the text of lblFirstName, then
string text = resources.GetSt ring("lblFirstN ame");

Hope this can help you


<sa************ @gmail.comwrote in message
news:11******** **************@ h48g2000cwc.goo glegroups.com.. .
Hi this sarav...

I having some languages in dropdownlist(li ke
english,tamil,j apan.......)

based on this dropdown selection full application need to change
corresponding language..
Anyone give solution for this

Sep 12 '06 #3

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

Similar topics

33
2743
by: Quest Master | last post by:
I am interested in developing an application where the user has an ample amount of power to customize the application to their needs, and I feel this would best be accomplished if a scripting language was available. However, I want to code this application in Python, and I have not yet heard of an implementation of another scripting language into Python. An example of what I mean is this (an implementation of Lua into Ruby -- which I'd...
8
4052
by: Hermawih | last post by:
Hello , I want your opinion about this . In order to say it clearly , I think I have to describe it in long sentences . I could consider myself as Intermediate/Advance Access Developer ; Intermediate/Advanced Database designer . Because of the requirements , I must create Web Application . Access Pages is not suitable for that so I think about learning VB Net / ASP Net . I am
6
4172
by: Wiktor Zychla | last post by:
I've downloaded the polish language pack for .Net Framework 1.1 and I've installed it. Now I expect to see any exception messages in my native language but I still get english texts in exception messages. I think that I should somehow tell my application that it should use the installed language pack but I have no idea on how to do it (I've read that I could install more than one language pack so there should be a method to 'activate'...
3
1338
by: - HAL9000 | last post by:
Hello, Background: I am familiar with VB.NET, vanilla C++, and Pascal but not Csharp. Please confirm/comment: If I want to get a windows application running quickly (and minimize total effort), and have the eventual goal of porting back to MFC (that is, no .NET requirement), should I write the application in Csharp initially? I read a comment on a web page that suggested that this
2
1176
by: Chance Ginger | last post by:
I am rather new at Python so I want to get it right. What I am doing is writing a rather large application with plenty of places that strings will be used. Most of the strings involve statements of one kind or another. I would like to make it easy for the support people to port the application from one language to another, German, Spanish, etc. Rather than make them search all over for the strings to replace is there a library that I...
25
2591
by: Dave | last post by:
I want to spend two minutes on my soapbox. I love C#. I am so productive in it it's ridiculous. But it's so easy to write code that uses poor design principles. Example: just making variables public instead of using properties. Another example: passing references to forms to other classes so they can modify things (tight coupling). So in essence, there are so many ways to do things that many of them are just flat-out poor...
1
1272
by: saravanan.arul | last post by:
Hi this sarav... I having some languages in dropdownlist(like english,tamil,japan.......) based on this dropdown selection full application need to change corresponding language.. Anyone give solution for this
4
3721
by: Paciente8159 AKA Klayman | last post by:
Hi, I have a couple of doubts reggarding a plugin based application in C++? I want to build a c++ plugin based app. I have searched alot of things in the net but I still don't know how to start this. For example: I want the plugin to be able to expose functions and HANDLES (for synchronization with WaitForSingleObject for example).
10
1604
by: NUPUL | last post by:
Hi, I have a few questions to ask with the use of C++ per se: 1. For what type of applications is C++ actually used/preferred/ chosen? 2. ANSI C++ doesn't have any support for GUI libraries...usually we use Qt/Windows API etc..Then when/where do we use C++ in it's "pure" form (no linking to "any" 3rd party lib) 3. Consider a 3 tier application (MVC architecture):
0
10443
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10216
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10165
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9044
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7543
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6783
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5437
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2921
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.