[ZBX-4235] Graph axis labels incorrect in localized GUI Created: 2011 Oct 14 Updated: 2017 May 30 Resolved: 2011 Nov 25 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Frontend (F) |
Affects Version/s: | 1.8.9, 1.9.7 (beta) |
Fix Version/s: | 1.8.10, 1.9.9 (beta) |
Type: | Incident report | Priority: | Blocker |
Reporter: | Jens Berthold | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | graphs | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Debian 6, MySQL |
Attachments: | latest-data-english.jpg latest-data-german.jpg zabbix_english.png zabbix_german.png | ||||||||
Issue Links: |
|
Description |
With german localization, axis labels show zero instead of numbers, or show too much decimals with percent values. |
Comments |
Comment by Oleksii Zagorskyi [ 2011 Oct 14 ] |
I can confirm the same in Ukrainian and Russian locales in the latest trunk rev 22380. |
Comment by Alexey Fukalov [ 2011 Nov 15 ] |
Cannot reproduce this problem with default graphs from "Linux template", does this problem occur on all graphs or only specific ones? <pavels> Can't reproduce it too. <zalex> Still can reproduce in the rev 23335. Any idea how to check the differences in our systems? <richlv> php versions, gd versions ? |
Comment by richlv [ 2011 Nov 22 ] |
for the record, can't reproduce in trunk rev 23404. just a quick idea, have mo files been remade recently ? |
Comment by Oleksii Zagorskyi [ 2011 Nov 22 ] |
Reproducible as mentioned above:
The problem ***NOT*** reproducible on:
|
Comment by Jens Berthold [ 2011 Nov 22 ] |
Could it have something to do with Suhosin patch? Reproducible on:
|
Comment by richlv [ 2011 Nov 22 ] |
suhosin might be easy to test - uninstalling/disabling it & trying again should reveal that |
Comment by Jens Berthold [ 2011 Nov 23 ] |
Right |
Comment by Jens Berthold [ 2011 Nov 23 ] |
Same error seems to be with latest data. I attached two more images with that view. |
Comment by Oleksii Zagorskyi [ 2011 Nov 23 ] |
I can confirm the same problems for latest data page as Jens mentioned. |
Comment by Oleksii Zagorskyi [ 2011 Nov 23 ] |
Not reproducible (trunk r 23438):
|
Comment by Oleksii Zagorskyi [ 2011 Nov 23 ] |
On Debian 6.0.3 (mentioned above) the problem is still reproducible after replacing "php5 5.3.3-7+squeeze3" to the "php5 5.3.8.0-1" |
Comment by Alexey Fukalov [ 2011 Nov 23 ] |
Does systems where error is reproducible has bcmath extensions for php? And are all required extensions installed (passed requirements test during installation)? <zalex> On Debian 6.0.3 I have installed libapache2-mod-php5 -> |
Comment by Aleksandrs Saveljevs [ 2011 Nov 24 ] |
This looks similar to |
Comment by Pavels Jelisejevs (Inactive) [ 2011 Nov 24 ] |
Zabbix uses the "en" locale for LC_NUMERIC, it seems it doesn't work on some of these machines. Is it possible that there is no "en" locale available? Could you run "locale -a"? <zalex> output for all mentioned OS added. see comments above. |
Comment by Oleksii Zagorskyi [ 2011 Nov 25 ] |
What you say about these lines:
I'm and Jens we both had only "en_GB" locale installed but not the "en_US". In the Debian it's command "dpkg-reconfigure locales" Pavels, you know what to do next. <pavels> Yeah, sorry, I forgot to mention, that we currently use en_US. |
Comment by Pavels Jelisejevs (Inactive) [ 2011 Nov 25 ] |
Please review the fix for 1.8 in branches/dev/ RESOLVED. |
Comment by Oleksii Zagorskyi [ 2011 Nov 25 ] |
Note: <pavels> Then their default local must use periods as decimal points. I have an idea how to fix it without depending on locales, I'll give it a try Monday. |
Comment by Oleksii Zagorskyi [ 2011 Nov 25 ] |
Dev branch (for trunk) tester. Works as expected for non-english GUI with installed only one locale of "en_GB" or "en_US". |
Comment by Pavels Jelisejevs (Inactive) [ 2011 Nov 28 ] |
I've added the POSIX locale as an alternative LC_NUMERIC locale. It should be supported on all *nix systems and it also uses a dot as a decimal separator. |
Comment by Pavels Jelisejevs (Inactive) [ 2011 Nov 30 ] |
Merged to trunk revision r23618 and branches/1.8 revision r23615. CLOSED. |