Multi-language development in linux

Source: Internet
Author: User
Multi-language development in linux-general Linux technology-Linux programming and kernel information. The following is a detailed description. Developing multi-language software is very difficult. The encoding methods, currency symbols, date formats, numeric formats, and text performances of character sets vary from country to country, glibc provides a large number of functions to handle these tasks, so we will not explain them any more. What we need to do here is to use a simple example to describe the usage of GetText. GetText is a series of tools and library functions that help programmers and translators develop multilingual software.

GetText is not a mysterious thing. If you do not want to find a under Win32, I think it should be a resource file (. it manages the strings for you and automatically loads the strings of the corresponding language at runtime according to the current language.

Here, we suppose we want to develop a software package named foonly, which has only one source file foonly. c. Its function is to print "Hello, GetText!" on the screen !". If multiple languages are not supported, the content of foonly. c is as follows:
QUOTE:

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.