• 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.

    http://wordpress.org/plugins/buddypress-docs/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter yzqiang

    (@yzqiang)

    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?

    Thread Starter yzqiang

    (@yzqiang)

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Bracket doesn't support Chinese’ is closed to new replies.