Attention the config is different from the official Chinese version
Attention is different from the official Chinese version:I find a differ that cause my plugins problem:
the Page output settings:
official Chinese version is:
$_config['output']['language'] = 'zh_cn'; // 页面语言 zh_cn/zh_tw
ML version is:
$_config['output']['language'] = 'sc'; // Page language sc/tc/en/fr/etc...one is zh_cn other one is sc.
the different output valve result as below:
ZH_CN_UTF8
SC_UTF8This problem appears in my old version of the discuz upgrade installation, using the old configuration file.
Revision #796:
Fix: currentlang() function for other languages Where that value is used in a code? static/image/common/user_online.gif vot static/image/common/clock.gif 2018-1-8 18:04
Where that value is used in a code?
For example, a multilingual plug-in。It usually switches the language in this way:
include DISCUZ_ROOT.'./source/plugin/xxx/lang/lang.'.currentlang().'.php';
1) What the results must return that function "currentlang()" ?
2) Show the code of that function "currentlang()" ?
3) What the language files are present in the "lang" subfolder?
static/image/common/user_online.gif vot static/image/common/clock.gif 2018-1-9 20:50
1) What the results must return that function "currentlang()" ?
2) Show the code of that function "c ...
This is the way the default official plug-in development is supported by multilingual.
Usually the plug-in's own language package is made in the following format:
plugin/xxx/lang/lang.SC_GBK.php
plugin/xxx/lang/lang.SC_UTF8.php
...
.etc
static/image/common/user_online.gif vot static/image/common/clock.gif 2018-1-14 19:30
Revision #796:
Fix: currentlang() function for other languages
I looked at the code you modified, and I think it's not a multilingual version of the problem.It is only the difference in the config file configuration that needs to be paid attention to from the existing official version of the Chinese version.
It may be a better way to modify the config file, but your compatibility with the official Chinese version is also good.
Pages:
[1]