globalization

Localized exponential notation?

扶醉桌前 提交于 2019-12-03 03:14:32
i'm trying to convert numbers into localized strings. For integers and money values it's pretty simple, since the string is just a series of digits and digit grouping separators. E.g.: 12 345 678 901 (Bulgarian) 12.345.678.901 (Catalan) 12,345,678,901 (English) 12,34,56,78,901 (Hindi) 12.345.678.901 (Frisian) 12?345?678?901 (Pashto) 12'345'678'901 (German) i use the Windows GetNumberFormat function to format integers (and GetCurrencyFormat to format money values). But some numbers cannot be reasonably represented in fixed notation, and require scientific notation : 6.0221417930×10 23 or more

How Do You Write Code That Is Safe for UTF-8?

我的梦境 提交于 2019-12-03 02:53:58
We have a set of applications that were developed for the ASCII character set. Now, we're trying to install it in Iceland, and are running into problems where the Icelandic characters are getting screwed up. We are working through our issues, but I was wondering: Is there a good "guide" out there for writing C++ code that is designed for 8-bit characters and which will work properly when UTF-8 data is given to it? I can't expect everyone to read the whole Unicode standard, but if there is something more digestible available, I'd like to share it with the team so we don't run into these issues

ASP.NET MVC 3 RC 2 client side validation with globalization

匿名 (未验证) 提交于 2019-12-03 02:47:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: My goal is to validate a user input on the client-side, depending on the users' culture. I have a primitive data-model with the following structure: public class User { public int UserId { get ; set ; } [ Required ] [ StringLength ( 20 , MinimumLength = 3 )] public string Name { get ; set ; } [ Required ] public double Height { get ; set ; } } Furthermore, I want to have client-side validation enabled, checking if it is a valid number. Therefore, I've added the following lines in the <head> section of my _Layout.cshtml. <script src

Best practice for localization and globalization of strings and labels [closed]

老子叫甜甜 提交于 2019-12-03 00:04:36
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 4 years ago . I'm a member of a team with more than 20 developers. Each developer works on a separate module (something near 10 modules). In each module we might have at least 50 CRUD forms, which means that we currently have near 500 add buttons , save buttons , edit buttons , etc.

Globalize an existing Windows Forms application?

雨燕双飞 提交于 2019-12-02 23:51:21
I have an existing winforms application developed using VS 2005 and .net framework 2.0. Now we need to globalize this application. The two locales are German and Japanese. I know we can use form's localize property to create localized form resources and can have other resource files for strings used in message boxes, exceptions etc.. I want to know the best approach to globalize an existing application, should I set the localize property on each form or is there some tool which will extract the the label names and control names..what considerations to be taken for date formats, currency, etc.

What is the actual differences between I18n/L10n/G11n and specifically what does each mean for development? [duplicate]

拈花ヽ惹草 提交于 2019-12-02 14:11:33
Possible Duplicate: Localization and internationalization, what’s the difference? I18n/L10n/G11n all equal localization to me, but people keep making distinctions among these, especially in corporate and marketing, but I'm failing to see how these 3 tasks, from the programmer's point of view aren't the same thing, are there special requirements behind each one of these? What is some honest programmer to programmer explanations of these terms that doesn't involve global markets, in other words what's the nitty-gritty differences behind these three terms, when translated to developing (coding)

Detect if any right-to-left language is installed

大城市里の小女人 提交于 2019-12-02 10:39:20
问题 What is the easiest way to detect whether any right-to-left language is installed on the host Windows OS? (I need this in order to know if LTR marks will be displayed as squares, or work properly on the host OS) 回答1: Probably unmanaged API like IsValidLanguageGroup, IsValidLocaleName (or IsValidLocale) or IsValidCodePage is what you are looking for For example the code if (IsValidLanguageGroup (LGRPID_ARABIC, LGRPID_INSTALLED) || IsValidLanguageGroup (LGRPID_TURKIC, LGRPID_INSTALLED) ||

Globalization in JQuery is not working

戏子无情 提交于 2019-12-02 08:36:43
问题 I have been following theScott Hanselman Tutorial on Globalized Javascript Validation. It is a great tutorial wich made me understand a topic I'm not that familiar with a bit better. The only problem is that it's a bit outdated because the link he provided to files like jquery.glob.fr.js is invalid. But you get redirected to the improved version by Jquery. That's ok, but They just don't do what they promise to do. I tried searching for tutorials and information about this, but the only help

Application unhandled exceptions localization

限于喜欢 提交于 2019-12-02 08:11:01
问题 I am trying to display error messages in locale language and for all handled exceptions my team is using resource file to display in local language but Is there a way to intercept the middleware to display application unhandled exceptions in locale language? 回答1: Standard .NET exceptions are localized and message language will depend on current thread culture. So for you to make it work you'll need to implement RequestCultureMiddleware that would change the language based on your needs. Here

Application unhandled exceptions localization

青春壹個敷衍的年華 提交于 2019-12-02 06:42:05
I am trying to display error messages in locale language and for all handled exceptions my team is using resource file to display in local language but Is there a way to intercept the middleware to display application unhandled exceptions in locale language? Standard .NET exceptions are localized and message language will depend on current thread culture. So for you to make it work you'll need to implement RequestCultureMiddleware that would change the language based on your needs. Here is an example: public class RequestCultureMiddleware { private readonly RequestDelegate next; public