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.