| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 4459|Reply: 1
Collapse the left

Simplified Chinese language pack renamed from "zh" to "sc".

[Copy link]

 Taiwan

Post time: 2012-02-16 05:01
| Show all posts |Read mode
r.349  Simplified Chinese language pack renamed from "zh" to "sc".
Simplified Chinese browser can't auto-detect.

File: source/function/function_core.php   Line:504-508
  1.                         if(($value=='zh-tw')||($value=='zh-hk')){
  2.                                 $choice = 'tc';
  3.                         } else {
  4.                                 $choice = substr($value,0,2);
  5.                         }
Copy the Code
Modify
  1.                         if(($value=='zh-tw')||($value=='zh-hk')){
  2.                                 $choice = 'tc';
  3.                         } else {
  4.                                 $choice = substr($value,0,2);
  5.                                 if($choice=='zh'){$choice = 'sc';}
  6.                         }
Copy the Code
Add one line if($choice=='zh'){$choice = 'sc';} to $choice = substr($value,0,2); after.

 Russia

Post time: 2012-02-16 08:04
| Show all posts
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-11-23 16:47 GMT+3 , Processed in 0.026420 sec., 9 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