Hi folks,
I'm currently working on application development, the application will be in two languages -%26gt; English is default, how can I construct the application so that when the user selects it's preferred language from the drop down menu the appropriate language shows after he logs in?
I'm talking about the interface, ex, button, ..., etc
Is there a way to store all keywords in a xml file and then call xml files based on user input like eng would call english xml file therefore the user will see the interface in english version and vica versa
Thanx a lot
F
Localization in C#?
Sorry, I cant help you. This isn't familiar stuff to me. Maybe next time.
Reply:This is totally possible. I just did this in C#. in the controls in the aspx or ascx use
%26lt;%#((System.Xml.XmlNode)Container.Data...
This dynamically sets the productName depending on which section of the xml is available.
Reply:You are creating more work for yourself than is necessary. C# has Localization built into it and if you are using Microsoft Visual Studio .NET, it has excellent support for this.
Just set the "Localizable" property for the form to true. Select the language for the form you want to work with. Once you select a language, you can setup the labels and text you want changed for that locale. Visual Studio will automatically generate resource files (one for each language).
You can then programmatically change the locale at run time using a menu item as you suggest. Additionally, the program can use the default locale configured in Microsoft Windows when the application first starts.
thank you cards
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment