Using GetText to implement multilanguage support in Lua
The GNU GetText is an excellent international tool. is used heavily in Linux. WordPress also uses GetText to implement multi-language support.
This article describes how to use GetText long
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.
There are many ways to internationalize, many PHP frameworks have built-in i18n support, but most of them are based on an array of PHP, this method is not recommended. At present, the most popular and most common method is gettext.
Gettext is used
There are many ways to internationalize, many PHP frameworks have built-in i18n support, but most are implemented in PHP-based arrays, and this method is not recommended. The most popular and most common method is gettext.
Gettext is used for
Example of using gettext in PHP to solve international problems (i18n ). There are many ways to achieve internationalization. many PHP frameworks have built-in i18n support, but most of them are implemented based on PHP arrays. this method is not
There are many ways to internationalize, many PHP frameworks have built-in i18n support, but most are implemented in PHP-based arrays, and this method is not recommended. The most popular and most common method is gettext.
Gettext is used for
There are many ways to achieve internationalization. Many php frameworks have built-in i18n support, but most of them are implemented based on PHP arrays. This method is not recommended. Currently, the most popular and common method is
First, the use of GetText, because Smarty have the corresponding GetText plug-in, so directly with the plug-in
The steps are as follows:
1.1 Add the following code to the common include file:
$domain _info[' Lang '] is the language set
1. Use gettext. Because Smarty has the corresponding gettext plug-in, you can directly use this plug-in.
The procedure is as follows:
1.1 Add the following code to a public include file:
// $ Domain_info ['lang '] indicates the language
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.