Thinkphp language files cannot be introduced

Source: Internet
Author: User
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. define returnarray (& nbsp; register & gt; & quot; register & quot;,) in php & gt; and modify the "register" in the template {: L (register)} why does it show REGISETTER without the question of "cannot be introduced in 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.

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.