localization

Validating Locale-Specific “Customary” Date Formats

有些话、适合烂在心里 提交于 2020-01-17 03:59:18
问题 If I run this code... var cults = CultureInfo.GetCultures(CultureTypes.SpecificCultures); var exam = from c in cults from p in c.DateTimeFormat.GetAllDateTimePatterns('d') select new { Culture = c.DisplayName, Format = p }; ...I can see a dump of the various "short date" formats that Windows or .net thinks is customary or standard for different locales. But how would anyone independently confirm or verify these values? I recognize that Microsoft has invested possibly many 10's of thousands of

jQuery UI Slider and jQuery Globalization with value delimited by comma [ , ]

浪子不回头ぞ 提交于 2020-01-16 16:15:11
问题 I'm developing an ASP.NET MVC 3 app that uses both jQuery Globalization and jQuery UI Slider. I'm localizing this app to Portuguese from Brazil (pt-BR) and it also supports English. The problem is that when I change the language to Portuguese, all Model float values come delimited by a comma ( , ) like 7,7. I then try to set the Slider initial value but it only accepts the value with a dot ( . ) like 7.7. To overcome such situation I'm doing this: $.CreateSlider("#sliderHeight", "#Height",

jQuery UI Slider and jQuery Globalization with value delimited by comma [ , ]

喜欢而已 提交于 2020-01-16 16:15:10
问题 I'm developing an ASP.NET MVC 3 app that uses both jQuery Globalization and jQuery UI Slider. I'm localizing this app to Portuguese from Brazil (pt-BR) and it also supports English. The problem is that when I change the language to Portuguese, all Model float values come delimited by a comma ( , ) like 7,7. I then try to set the Slider initial value but it only accepts the value with a dot ( . ) like 7.7. To overcome such situation I'm doing this: $.CreateSlider("#sliderHeight", "#Height",

Localisation on a SAAS application

↘锁芯ラ 提交于 2020-01-16 01:04:48
问题 Scenario We have a SAAS product that has an Admin back-end with a public front-end. We want to give the user the option to change what language their front-end displays. There will be the option of 7+ different languages. Our product is built on C# and MVC3. The front-end only contains about 400 words. What is the best way to handle this? Could I store the different languages in resx files and have a flag in the DB to say which language the admin has chosen? So the admin selects his language

Localisation on a SAAS application

可紊 提交于 2020-01-16 01:04:07
问题 Scenario We have a SAAS product that has an Admin back-end with a public front-end. We want to give the user the option to change what language their front-end displays. There will be the option of 7+ different languages. Our product is built on C# and MVC3. The front-end only contains about 400 words. What is the best way to handle this? Could I store the different languages in resx files and have a flag in the DB to say which language the admin has chosen? So the admin selects his language

Windows Phone keyboard comma - dot conflict

只愿长相守 提交于 2020-01-16 00:46:44
问题 I would like to use Numeric keyboard ( InputScope=Number ) but want to display ',' instead of '.' on the lower-left hand corner because it is the decimal separator in Turkish language. The keyboard layout appears depending on the phone language even if I force the Culture in code like this: System.Globalization.CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("tr-TR"); System.Globalization.CultureInfo.DefaultThreadCurrentUICulture = new CultureInfo("tr-TR"); How can I force numeric

How to get Korean language characters to display on a website?

我只是一个虾纸丫 提交于 2020-01-15 12:12:30
问题 We have a website that will be displayed in various languages. Our footer gives the option to view the Korean site. <ul> <li><a href="index.aspx">English</a></li> <li><a href="de/index.aspx">Deutsch</a></li> <li><a href="nl/index.aspx">Nederlands</a></li> <li><a href="kr/index.aspx">한국의</a></li> </ul> As I developed this locally, everything showed up well. But when I launched it to our testing server which is in a .net environment, it did not display well. When I did a search for finding

Change fmt:formatDate pattern dynamically

扶醉桌前 提交于 2020-01-15 09:06:30
问题 I need to change fmt:formatDate pattern dynamically depending on the localization. I have the property file for each locale with the date.format key, somewhere it's value is MM/dd/YYYY, somewhere DD/MM/YYYY and so on. In the JSP I have the following tag: <fmt:formatDate value="${dateToFormat}" pattern="<spring:message code='date.format' />" var="formattedDate" /> The Exception I get is java.lang.IllegalArgumentException: Illegal pattern character 'p' What's wrong with this code? 回答1: Looks

Implicit localization and embedded resource

穿精又带淫゛_ 提交于 2020-01-15 08:50:08
问题 Can we use implicit localization in asp.net (meta:resourcekey) while using an embedded resource file (resx)? If the resources in app_localresouces are set to "content" everything works but I can't get it to work if I set it to "embedded". Is it possible to do so while using implicit localization? 来源: https://stackoverflow.com/questions/20106825/implicit-localization-and-embedded-resource

How to sort an array considering localization?

社会主义新天地 提交于 2020-01-15 08:10:20
问题 I'm trying to sort an array of names alphabetically (Croatian in this case). How can I get Đani to show up before Derrick ? $names = array( "Đani", "Bill", "Dennis", "George", "Derrick" ); sort($names); print_r($names); 回答1: You need to set the locale appropriately, probably like this: setlocale(LC_ALL, 'hr_HR'); And then tell sort to honor the locale: sort($names,SORT_LOCALE_STRING); 回答2: If you can, you can import them into a MySQL table and use the ORDER BY clause to sort, provided you set