Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Modification to support UTF-8 replacement

edited March 2011 in Vanilla 2.0 - 2.8
I wanted support for UTF-8 so in file [class.civiltongue.plugin.php]
I replaced inside
private function GetPatterns() {
the line

$Patterns[] = '/\b' . preg_quote(ltrim(rtrim($Word))) . '\b/is';

with

$Patterns[] = '/' . preg_quote(ltrim(rtrim($Word))) . '/uis';

Now it replaces UTF-8 words . I don't know why the "\b" existed.

A problem with my modification is that although it ignores case [ΤΕΣΤ=τεστ=ΤεΣτ] it doesn't consider [τεστ and τέστ] the same.

Any ideas on how to fix that?

Comments

Sign In or Register to comment.