Windows Client Development--special handling in client internationalization (date, etc.)

Source: Internet
Author: User

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.)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.