[ZBX-20588] After upgrade to v6.0.0, en_GB locale no longer listed Created: 2022 Feb 16 Updated: 2022 Mar 03 Resolved: 2022 Mar 03 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Server (S) |
Affects Version/s: | 6.0.0 |
Fix Version/s: | None |
Type: | Problem report | Priority: | Trivial |
Reporter: | Fernando Viñan-Cano | Assignee: | Antons Sincovs |
Resolution: | Workaround proposed | Votes: | 1 |
Labels: | frontend | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Raspberry Pi OS (Buster) |
Attachments: | Screenshot 2022-02-16 093758.png Screenshot 2022-02-16 093804.png |
Description |
Steps to reproduce:
Result: pi@ziff:~ $ locale LANG=en_GB.UTF-8 LANGUAGE= LC_CTYPE="en_GB.UTF-8" LC_NUMERIC="en_GB.UTF-8" LC_TIME="en_GB.UTF-8" LC_COLLATE="en_GB.UTF-8" LC_MONETARY="en_GB.UTF-8" LC_MESSAGES="en_GB.UTF-8" LC_PAPER="en_GB.UTF-8" LC_NAME="en_GB.UTF-8" LC_ADDRESS="en_GB.UTF-8" LC_TELEPHONE="en_GB.UTF-8" LC_MEASUREMENT="en_GB.UTF-8" LC_IDENTIFICATION="en_GB.UTF-8" LC_ALL= pi@ziff:~ $ locale -a C C.UTF-8 en_GB.utf8 en_US.utf8 POSIX Expected: |
Comments |
Comment by Fernando Viñan-Cano [ 2022 Feb 17 ] |
Just wanted to add that I found this thread on the Zabbix forums https://www.zabbix.com/forum/zabbix-troubleshooting-and-problems/427991-zabbix-giu-broken-no-languages-and-web-interface-errors that is actually the experience I am having. I haven't tried the "fix" from the final post yet but I will try later. |
Comment by Fernando Viñan-Cano [ 2022 Feb 17 ] |
The final post "fix" did not help, it was just a menu driven version of the steps I already tried. I did a server reboot for good measure but it was still the same - no sign of en-GB in the list of languages. |
Comment by Marco Hofmann [ 2022 Feb 17 ] |
Try checking /usr/share/zabbix/include/locales.inc.php and check if en_GB is set to true. I might have the same problem with de_DE since several years with no solution: |
Comment by Fernando Viñan-Cano [ 2022 Feb 17 ] |
Thanks Marco, I checked and after comparing the file to the backed-up version before the upgrade the two en_GB lines were both missing and I know I never added them myself.
Putting them back has allowed me remove the en-US locale from the server, but the date formats of all my graphs are still wrong showing the date as 2-17 instead of the correct 17-02. Is there possible somewhere else I need to check? |
Comment by Antons Sincovs [ 2022 Mar 02 ] |
Hello, Fernando! To correct the date format as it appears in the Zabbix frontend - you can check the file: /usr/share/zabbix/include/translateDefines.inc.php and review the parameters "DATE_TIME_FORMAT_SHORT'" and "DATE_FORMAT_SHORT'" values, correspondingly swapping "d" and "m". Regards, Antons |
Comment by Fernando Viñan-Cano [ 2022 Mar 02 ] |
Thanks Antons, that allowed me to correct those and a few others as well - I hope someday these become configurable within the main GUI itself. FYI - I had to re-apply my previous fixes for en_GB after upgrading today to 6.0.1 |
Comment by Antons Sincovs [ 2022 Mar 03 ] |
Hello starko!
Regarding the German which is still by default set to 'Display' => 'False' in the "/usr/share/zabbix/include/locales.inc.php" - I have consulted the frontend development team and it appears that 'True' mark is only set for the verified and complete GUI translation options. Of course, it does not necessarily mean that options marked as 'False' are unusable, they just may be incomplete. Reviewed the German translation - looks pretty valid to me. |