language agnostic - multi locale validation of input -


When user input is valid in an application being run in more than one location, then it is best to do this What's the way I had encountered it in a project a few years ago, and now I'm interested in focusing on how we can deal with this problem.

My thoughts are either valid for an input status in many local places, or to use a large switch statement (I do not like it), or to write a locale specific reggae, which External properties can be stored in the file (or similar). The third option is my preferred method, but I am interested in hearing others.

An example of this problem would be used in the pronunciation words in a more comprehensive context within continental European languages, for example,

So if verification requires verification, and the situation will vary depending on the locale, which is best to handle this problem. The Africa.

PS: I am not specifically looking for a solution in a particular language, in general more to approach the problem.

If you are writing software for the global market, then you have a better framework for the part of internationalization. Are using There is a lot of difference between countries and languages. There are many traps and disadvantages there.

This is where this language (programming language) is dependent. If you are lucky to use Java then you get internationalization support for free. There are many tools in Java for writing software internationally, other high level languages ​​have also supported for internationalization.

If there is no support for internationalization for your language then you can start looking for ready-to-know structures.


Comments