BuddyPress Docs
Bracket doesn't support Chinese (3 posts)

  1. yzqiang
    Posted 2 years ago #

    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.


  2. yzqiang
    Posted 2 years ago #

    And the bracket-to-link function doesn't support activity. It makes me develop another type of bracket-to-link function to work in activities.
    Why not support both activity and post together?

  3. yzqiang
    Posted 2 years ago #

    I also confirmed that bracket-to-link doesn't support common post.
    Does it only support Doc post type?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • BuddyPress Docs
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.