Problem with Hebrew comments on some servers
|Reported by:||vbCrLf||Owned by:|
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/ .
Change History (4)
- Cc RanYanivHartstein added
- Component changed from RTL to I18N
- Keywords needs-patch added; has-patch removed