Please select To the mobile version | Continue to access the desktop computer version
| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 4926|Reply: 6
Collapse the left

Attention the config is different from the official Chinese version

[Copy link]
Post time: 2018-01-08 16:51
| Show all posts |Read mode
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:
  1. $_config['output']['language']                         = 'zh_cn';        // 页面语言 zh_cn/zh_tw
Copy the Code


ML version is:
  1. $_config['output']['language']                 = 'sc';                // Page language sc/tc/en/fr/etc...
Copy the Code
one is zh_cn other one is sc.

the different output valve result as below:
  1. ZH_CN_UTF8
Copy the Code
  1. SC_UTF8
Copy the Code
This problem appears in my old version of the discuz upgrade installation, using the old configuration file.

 Russia

Post time: 2018-01-14 19:30
| Show all posts
Revision #796:
Fix: currentlang() function for other languages

 Russia

Post time: 2018-01-08 18:04
| Show all posts
Where that value is used in a code?
 Author| Post time: 2018-01-09 09:48
| Show all posts
vot 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:

  1. include DISCUZ_ROOT.'./source/plugin/xxx/lang/lang.'.currentlang().'.php';
Copy the Code


This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

 Russia

Post time: 2018-01-09 20:50
| Show all posts
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?
 Author| Post time: 2018-01-13 14:46
| Show all posts
vot 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
 Author| Post time: 2018-01-15 04:19
| Show all posts
vot 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.
You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-03-29 07:38 GMT+3 , Processed in 0.073894 sec., 10 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list