[ZBX-5760] incorrect graph legend and scaling in persian and other languages Created: 2012 Oct 29  Updated: 2017 Dec 28  Resolved: 2013 Apr 24

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: None
Fix Version/s: 2.0.7rc1, 2.1.0

Type: Incident report Priority: Minor
Reporter: richlv Assignee: Unassigned
Resolution: Fixed Votes: 1
Labels: graphlegend, graphs, localization, persian
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

2.0 branch rev 31115


Attachments: PNG File english.png     PNG File incorrect_legend_scale.png     PNG File persian.png    
Issue Links:
Duplicate
is duplicated by ZBX-6277 Line color label is not shown correct... Closed

 Description   

see the screenshot.

a) colour indicator for the last item in the legend is missing;
b) graph itself is not tall enough

same graph looks ok in english and other languages i tried (ukrainian, russian etc)



 Comments   
Comment by Oleksii Zagorskyi [ 2012 Oct 30 ]

Just a note - I also tried Persian couple weeks ago and I observed strange behavior of menu records positions.
Try to open a "Dashboard" page and you will understand. There are many strange things in menu positions.

Maybe the reason somehow is in right to left writing in Persian ?

http://www.omniglot.com/writing/persian.htm
Quote:
"Direction of writing: right to left in horizontal lines; numerals written from left to right."

Comment by Alexander Vladishev [ 2012 Nov 01 ]

Related issue: ZBX-4142

Comment by richlv [ 2013 Feb 15 ]

ZBX-6277 might be the same

Comment by Kodai Terashima [ 2013 Feb 15 ]

Same problem happens with Japanese font. I tested with ipa-gothic and vlgothic font that are included in RHEL and Debian official repo, color label is not shown correctly same as the attached image. See also ZBX-6277

Comment by Oleksii Zagorskyi [ 2013 Apr 21 ]

Similar case can be reproduced with english and/or russian.
See attached picture "incorrect_legend_scale".
Enough to have single such item in graph legend.

Conditions are - presence of two letters having "protrusion" part on top and bottom:
For example combinations:
russian "б" and russian "р, у"
russian "б" and english "g, j, y, p"

I did not find more combinations.

Both letters should be small !
If any letter is capital then this issue in not reproducible.

I tried different PHP versions, with bundled or external GD but results are the same.

Comment by Pavels Jelisejevs (Inactive) [ 2013 Apr 24 ]

RESOLVED in svn://svn.zabbix.com/branches/dev/ZBX-5760.

Comment by Pavels Jelisejevs (Inactive) [ 2013 Apr 24 ]

Some problems with the Persian language remain, but we decided to fix them separately. It should work correctly with Russian.

Comment by Oleg Egorov (Inactive) [ 2013 Apr 25 ]

Tested, please review my changes in r35247.

Comment by Pavels Jelisejevs (Inactive) [ 2013 Apr 25 ]

Fixed in 2.0.7rc1 r35251 and 2.1.0 r35252.

CLOSED.

Comment by Oleksii Zagorskyi [ 2013 Apr 25 ]

Tested, works good (even with Persian, IMO).

Comment by Yaron Shahrabani [ 2017 Dec 28 ]

Can you attach a screenshot showing how this bug was fixed?

I tried it with Hebrew and the text is still reversed for RTL Languages.

How can I mark this bug as affecting ZBX-12742?

Generated at Thu Apr 25 13:06:13 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.