I tried to use bracket-to-link for Chinese doc and I failed because Chinese is not supported. I read the code and found the reason.
In file addon-wikitext.php line 41, the code is:
$pattern = ‘|\[\[([a-zA-Z\s0-9\(\)\|]+?)\]\]|’;
To support Chinese, the code must be changed to:
$pattern = ‘/\\[\\[(.+?)\\]\\]/’;
Then the bracket-to-link work for Chinese doc.
- The topic ‘Bracket doesn't support Chinese’ is closed to new replies.