Thinkphp language files cannot be introduced. for example, if a word in the template file is "register", I will go to LANG-"zh-cn-" common. php & gt; defines returnarray (& nbsp; 'register '= & gt; & quot; register & quot;,) and then changes the "register" character in the template {: L (register)} is not introduced to the Thinkphp language file.
For example, the template file contains a word "register", which is defined in LANG-"zh-cn-" common. php>.
Return array (
'Register '=> "register ",
)
Then, I changed the "register" character in the template to {: L (register)}. Why does it show REGISETTER instead of "register?
In the config file, I defined 'default _ LANG '=> 'zh-cn'
------ Solution --------------------
If you do not need to assign values to the output language variables in the template, you can directly use the special tags of the template engine to output the language-defined values:
{$ Think. lang. lang_var}
You can output the lang_var language definition defined in the selected language pack.
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