AlanJia2017 Publish time 2018-01-08 16:51

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.

vot Publish time 2018-01-14 19:30

Revision #796:
Fix: currentlang() function for other languages

vot Publish time 2018-01-08 18:04

Where that value is used in a code?

AlanJia2017 Publish time 2018-01-09 09:48

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';

vot Publish time 2018-01-09 20:50

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?

AlanJia2017 Publish time 2018-01-13 14:46

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

AlanJia2017 Publish time 2018-01-15 04:19

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]
View full version: Attention the config is different from the official Chinese version