globalization

How to honor/inherit user's language settings in WinForm app

I have worked with globalization settings in the past but not within the .NET environment, which is the topic of this question. What I am seeing is most certainly due to knowledge I have yet to learn so I would appreciate illumination on the following. Setup: My default language setting is English (en-us specifically). I added a secon...

Trouble using files Globally

Recently I ran into trouble when I discovered that vista restricts what can be installed into the system32 directory even though I am the administrator for this computer. It will not allow me to register dll files so I can use programs like wget globally like how programs "nslookup" etc are used. Keeps giving me this error. Regsvr32...

SQL server globalization

When using arabic language, data is stored in database with ? (question mark) sign instead of real arabic characters in SQL server. Suggest me solution if anybody have idea. ...

Do we affect multiple users in ASP.NET when we set the Thread CurrentCulture/CurentUICulture?

When we set the CurrentCulture and/or CurrentUICulture we do this on the current thread like this: Thread.CurrentThread.CurrentCulture = new CultureInfo("en-GB"); Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-GB"); Doest this mean we could affect the culture settings of multiple users of our web application as t...

WPF Localization Using LocBaml: Handling Special Symbols

Hello, I’m dealing with localization of a WPF application (Visual Studio 2010 under Windows 7). I’ve just accomplished the whole process of localization using LocBaml tool, as explained in WPF Globalization and Localization Overview and in related posts. The target language is Italian (it-IT culture). When I run my application in Ital...

Missing Countries & locations from CultureInfo when trying to

Hi All, I need to localize an application and have noticed that several countries don't appear in the list of county codes associated to cultureInfo. One example is Cyprus, I assume there might be others. If i need to localize settings for Cyprus (or other missing ones) how would I rename my resource files that they would render the c...

Globalization for GetSystemTimeZones()

I want to get a list of timezones, so that i can populate the dropdown list. In .NET 3.5, we have TimeZoneInfo namespace, here is the code: ReadOnlyCollection<TimeZoneInfo> timeZones = TimeZoneInfo.GetSystemTimeZones(); foreach (TimeZoneInfo timeZone in timeZones) string name = timeZone.DisplayName However, "DisplayName" is in En...

ASP.NET: Globalization/localization: Enumerating local resource objects

There's a function: this.GetLocalResourceObject() as string That takes a key and returns a localized string. How can I enumerate all the local resource objects/localized strings? Something to do with the ResourceManager? ...

Globalize/Localize Excel Reports Using Spreadsheet

My company has new customers in Brazil and we realized that our excel reports are not working when our Brazilian customers tried to open the reports in their Brazilian versions of excel. For excel output we use spreadsheet gear in our vb.net web application. Our excel worksheets are fairly simple. Mostly outputted text/numbers/dates, ...

When should I implement globalization and localization in a .NET Application?

I am cleaning up some code in a C# app that I wrote and really trying to focus on best practices and coding style. As such, I am running my assembly through FXCop and trying to research each message it gives me to decide what should and shouldn't be changed. What I am currently focusing on are locale settings. For instance, the two error...

Application targeted to non-english windows OS

Hi There, we have a requirement to develop a webapp ,using C# in bussiness layer, sql server as DB, and Flex as the UI . given this i want to know tips,tricks and pitfalls . mainly WRT Design and deployment. Thanks in Advance. Deepak ...

Setting collation property in the connection string to SQL Server 2005

I have a ASP.Net web application with connection string for SQL Server 2005 in the web.config. Data Source=ABCSERVER;Network Library=DBMSSOCN;Initial Catalog=myDataBase; User ID=myUsername;Password=myPassword; I want to specify the collation property in the web.config for different languages like French like Data Source=ABCSE...

Determine regional business days and weekend days of the week

In some countries weekend days are Friday/Saturday. How can a Windows application find out weekend days of the user? ...

Dynamically loading a resource and reading the correct value for the CurrentUICulture

I'm creating a method to convert an enum to a friendly string. The friendly names are stored in a resource file and are subject to globalization. So I created two resource file: Enums.resx and Enums.pt-BR.resx whose keys are the name of the enum followed ny it's value (i.e DeliveryStatus_WaitingForPayment). This is the got I'm using to ...

How to get mailto working for IDN email IDs.

Hi Guys, I have mailto:test@维奈.com on an image which when clicked opens the email client, but the emailID appears as asas@维奈.com . Any Idea how I can get mailto: link working for IDN domains?. ...

Is there a way to make a function global to the library and to those who include/link the library?

Hey all, I'm a bit confused now. I thought that when you used extern on a function, it would become global to everything, but it doesn't seem so... What I want right now, is to have some set of functions that I can use in my static library and in the program that links it. How do I that? I'm using Objective-C ...

c# globalization

Hello, Im making an application which uses few languages. I would like to have possibility to add resources in other language and us it after changing for example radio button in app without compilation so that each time user adds another file with resources (or changes resources file) it may be used during runtime without recompiling. ...

How do you globalise the ASP.Net forms authentication longinUrl for multiple languages?

Hi there, I hope someone can help with solution to this problem? Currently my ASP.Net MVC website uses forms authentication is set up like this my web.config: <authentication mode="Forms"> <forms loginUrl="en/User/Signin" timeout="2880" /> </authentication> We have some routing rules that use the prefix /en/ in the url as a identi...

When should I specify CurrentCulture or InvariantCulture and when should I leave it unspecified?

What is the best practice for specifying CurrentCulture or InvariantCulture and not specifying the culture at all? From what I have read, if you're doing serialization, for instance, you need InvariantCulture as a means of specifying a canonical representation of a data value. That's a relatively small percentage of culture-based stri...

ASP.NET - why is the default resx file being used in the code-behind when the localized one is being used by the markup?

I am creating an ASP.NET web application in C#, and have to localize the application into English and French. I have created two resources files: App_GlobalResources\Resources.resx and App_GlobalResources\Resources.fr.resx containing the english and french content. When I run the application with my browser set to French (fr_FR), the fr...