The Windows client was previously described using XML for internationalization.
We are more concerned about the display, such as the Chinese is closed, the English system is shown as close.
But in the internationalization process, there are some other places not to deal with. It's not just a simple translation, it's sometimes necessary to change the rules.
Time is an example.
From learning English We know that foreigners time, address and other expressions are different from us.
So this blog is to discuss with you the special handling of dates in the process of client internationalization.
Now the premise is that you get a timestamp to show it.
This is very simple and can be used with strftime.
Blog http://blog.csdn.net/wangshubo1989/article/details/50500515 to Strftime do a detailed introduction, unfamiliar Sir can take a look.
Actually, it's just an idea.
For example, you want to show date, 2016 3 24
This format is required when you are in Chinese:
%Y%m%d
But for English, we need months, days, years or years.
%m%d%Y
Or
%d%m%Y
What kind of choice do you want to take here?
The year of Sun and Moon is the English expression
The day of the month is the American way of expression
And the international, more favored in the British, that is, the sun and moon year.
In the international process, there are also the first, second and third issues of attention.
Windows Client Development--special handling in client internationalization (date, etc.)