Culture settings
From Visual WebGui Wiki
| This article missing it's contents and needs writing. Please help contributing to this wiki and add contents. |
Contents |
Future contents
This article should discuss how/where/why to use / set culture specifics in VisualWebGui applications, and provide some samples
Special attention should be payed to DateTimePicker control, and it's inability to obtain it's culture settings from the running thread and instead taking it from Control Panel settings on server.This is changing in version, see the DateTimePicker control.
Also, Localization resources for localizing forms should be discussed here, or on a linked page.
General
Culture information can either be set in code on each form or application, as we discuss below, or they can be set globally for all the forms in your application by setting it in web.config.
Version specifics
Culture info for specific controls
Starting with version 6.4 of Visual WebGui, setting culture information will affect all controls. In earlier versions, some controls (like DateTimePicker) did not draw it's culture settings from the running thread so setting thread culture info did not affect those controls. This has been changed in version 6.4 and later versions.
Samples of use
References
Forum threads
- Setting culture information in web.config
- Setting culture information on threads
- Setting culture information runtime
- Setting locale based on browser's setting for locale
- Having Forms use localized resource strings - dialog forms for instance
- Handling multiple language localizations
- How to show form in specific culture
- How to create localized resources on a Form basis by translating your form "strings"
- Retrieving various culture specific currency and numbers seperators in code
Code samples
- Creating resource files for unsupported cultures (see comments on how to get currently supported resource files from SVN sources)
- Task tracker entry with more up to date information on this subject
Other references
- Culture information with C# and .NET framework
- List of culture codes
- .NET Localization using Resource files
- Data driven ASP.NET Resource provider
- MSDN Walkthrough - Localizing Windows Forms
- Globalizing Windows Forms
- Globalizing and Localizing ASP.NET Web Pages
- ASP.NET 2.0 Localization features: A fresh approach for localizing web applications
- Extending ASP.NET (see Localization section)
- MSDN: ResourceProviderFactory class
