globalization

Best way to implement a multilingual in ASP.NET application

六眼飞鱼酱① 提交于 2019-12-01 19:49:39
The following things/behaviors are expected in multi lingual application. To pick up the correct resources for the logged in user’s language The string sort should happen according to user language (For example: in case of Swedish users, the Swedish alphabets should come after z in Order). The date time format validation should happen according to the user’s language. (For example: fr-FR users can enter dd/mm/yyyy and en-US users can enter mm/dd/yyyy) The decimal validation again should happen according to user’s language (For example: 12,5 is valid in French whereas 12.5 is invalid) Now the

DateTime.AddDays vs Calendar.AddDays

你。 提交于 2019-12-01 19:41:21
问题 What is the difference between DateTime.AddDays and Calendar.AddDays ? Is DateTime type calendar independent? 回答1: DateTime.AddDays just converts days to ticks and adds this number of ticks to the date time. The default implementation of Calendar.AddDays does exactly the same. However, since it is a virtual method it can be implemented in specific calendar in a more complicated way, e.g. something like here: http://codeblog.jonskeet.uk/2010/12/01/the-joys-of-date-time-arithmetic/ 回答2: I

C++ Win32 API equivalent of CultureInfo.TwoLetterISOLanguageName

家住魔仙堡 提交于 2019-12-01 13:03:28
The .NET framework makes it easy to get information about various locales; the Win32 C++ APIs are a bit harder to figure out. Is there an equivalent function in Win32 to get the two-letter ISO language name given an integer locale ID? In C# I'd do: System.Globalization.CultureInfo ci = new System.Globalization.CultureInfo(1034); string iso = ci.TwoLetterISOLanguageName; // iso == "es" now. The code needs to run on XP and newer. Thanks to Trevor for directing me toward this answer in an earlier reply. Call GetLocaleInfo with the LOCALE_SISO639LANGNAME parameter. See the GetLocaleInfo function.

What Should I Know and Consider To Create Multi Language Web Site

拥有回忆 提交于 2019-12-01 09:45:35
问题 I'm Creating a Multi Language website with at least 5 language, what should I consider 回答1: Please see: Best Practices for Developing World-Ready Applications Walkthrough: Using Resources for Localization with ASP.NET 回答2: On a technical front not a lot, you can use a framework like Zend or Kohana or Rails etc. which usually have the ability to replace the content with tags and then fill the tag with the language of choice at run time. The different languages reside in appropriately named

Missing Countries & locations from CultureInfo when trying to

蹲街弑〆低调 提交于 2019-12-01 06:03:52
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 correct text and such? Thanks When localizing to Cyprus , you would need to either localize to Greek (for the Greek part of the island), or to Turkish (for the Turkish part). As the island is composed of these two cultures, it does not have a CultureInfo of its own. 来源:

Setting collation property in the connection string to SQL Server 2005

烂漫一生 提交于 2019-11-30 22:08:18
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=ABCSERVER;Network Library=DBMSSOCN;Initial Catalog=myDataBase; User ID=myUsername;Password=myPassword;Collation=French_CS_AS But the Collation word is not valid in the connection string. What is the correct keyword that we need to use to specify the collation in SQL Server 2005

Globalization difference in inline tags in ASP.NET

别等时光非礼了梦想. 提交于 2019-11-30 20:59:54
Is there any advantage/downfalls between using the inline write tag instead of the resource tag? Example: <%=Resources.Site.SampleString %> The resources tag (expression tag) as seen in any MSDN example: <asp:Literal id="Literal1" runat="server" text="<%$ Resources:Site, SampleString %>" /> I find the first option far easier to use, and it has IntelliSense, but maybe it won't function the same? These methods will function exactly the same. The latter simply calls first one; there is a reason why strongly-typed resources access code is being generated in the background. Therefore you can use

Normalize unicode string in SQL Server?

拜拜、爱过 提交于 2019-11-30 19:50:28
Is there a function in SQL Server to normalize a unicode string? e.g. UPDATE Orders SET Notes = NormalizeString(Notes, 'FormC') Unicode Normalization Forms: C ​omposition ( C ): A + ¨ becomes Ä D ​ecomposition ( D ): Ä becomes A + ¨ Compatible Composition ( KC ): A + ¨ + fi + n becomes Ä + f + i + n Compatible Decomposition ( KD ): Ä + fi + n becomes A + ¨ + f + i + n i cannot find any built-in function, so i assume there is none. Ideally, if there can be only one, then i happen to need Form C today: Unicode normalization form C, canonical composition. Transforms each decomposed grouping,

How to support Multi-Languages approach in DataBase Schema?

橙三吉。 提交于 2019-11-30 18:52:18
I want my database to support multi Languages for all text values in its tables. So what is the best approach to do that?. Edit1:: E.G. I've this "Person" table: ID int FirstName nvarchar(20) LastName nvarchar(20) Notes nvarchar(max) BirthDate date ........... So if i want my program to support new language "let say French". should i add new column every time i add new language ? So my "Person" table will look like this ID int FirstName_en nvarchar(20) FirstName_fr nvarchar(20) LastName_en nvarchar(20) LastName_fr nvarchar(20) Notes_en nvarchar(max) Notes_fr nvarchar(max) BirthDate date ......

Setting collation property in the connection string to SQL Server 2005

爱⌒轻易说出口 提交于 2019-11-30 17:53:51
问题 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=ABCSERVER;Network Library=DBMSSOCN;Initial Catalog=myDataBase; User ID=myUsername;Password=myPassword;Collation=French_CS_AS But the Collation word is not valid in the