A bug has occurred in the recent project. The project is based on an existing mature open source software modification, the new encryption and decryption library for the mature open source software to add encryption and decryption capabilities.
This article mainly introduces how to use the gettext module in Python3 to translate the Python source code to support multiple languages. The Python source code translation serves as an example to demonstrate the functions and usage of gettext, you
You write a Python 3 program and want it to work in other languages. You can copy all the code base and then deliberately check each. py file to replace all the found text strings. But that means you have two separate copies of your code, and every
In the wangking717 of the "PHP GetText way to achieve UTF-8 internationalization of multiple languages (i18n)" (Original: http://blog.csdn.net/wangking717/article/details/4739465# Reply) After the operation of their own a little discrepancy, so note
Use the gettext module in Python3 to translate Python source code to support multiple languages.
You have written a Python 3 program and want it to work in other languages. You can copy all the code libraries, and then deliberately check each. py
You wrote a Python 3 program and want it to work in other languages. You can copy all the code libraries and then deliberately check each. py file, replacing all the found text strings. But that means you have two separate copies of your code, and
Usually when people write programs, they write words that die in the program, such as: echo "Hello world!"; , if you want to change to the language of the country, write the internationalization of the program, it is necessary to open one by one to
[Newedit] Implementation of i18n (III)-implementation principle of gettext
Http://blog.donews.com/limodou/archive/2004/06/15/28961.aspx
Appendix: implementation principle of gettext
It's just my understanding!
The gettext function is actually
Usually when people write programs, they write words that die in the program, such as: echo "Hello world!"; , if you want to change to the language of the country, write the internationalization of the program, it is necessary to open one by one to
1.gettext Module IntroductionThe GetText module provides internationalization (i18n) and localization (l10n) services for Python modules and applications. It offers two sets of APIs, a set of high-level APIs similar to the GNU GetText and a set of
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.