[wp-trac] [WordPress Trac] #17331: Problem with Hebrew comments on some servers
WordPress Trac
wp-trac at lists.automattic.com
Thu May 5 09:59:32 UTC 2011
#17331: Problem with Hebrew comments on some servers
--------------------------+-----------------------------
Reporter: vbCrLf | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: RTL | Version: 3.2
Severity: normal | Keywords: has-patch
--------------------------+-----------------------------
Hello,
On the server my website is on the Hebrew comments are aligned to the left
instead to the right (RTL). It does not related to a theme or a plugin,
and it misaligned in the admin panel as well.
I investigated the problem and found out that the comments are recognized
as written in English instead of Hebrew because of this line (/wp-
content/languages/he_IL.php):
$c_eng = $this->count_it($text, '/\w+/u');
Hebrew characters (in specific server configurations) are also recongized
as '\w', what cause the $c_eng to high and $c_heb to be low.
Changing the line to defining the characters explicitly fixed the problem:
$c_eng = $this->count_it($text, '/[A-Za-z]+/u');
It was tested for a few months in my blog http://www.merkazhakfar.co.cc/ .
Thanks,
Ori.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17331>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list