New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dev.icinga.com #10101] Translator throws exception if locale is missing #1986

Closed
icinga-migration opened this Issue Sep 5, 2015 · 4 comments

Comments

Projects
None yet
2 participants
@icinga-migration
Member

icinga-migration commented Sep 5, 2015

This issue has been migrated from Redmine: https://dev.icinga.com/issues/10101

Created by sailavid on 2015-09-05 15:29:03 +00:00

Assignee: (none)
Status: Closed (closed on 2016-10-05 07:54:39 +00:00)
Target Version: (none)
Last Update: 2016-10-05 07:54:39 +00:00 (in Redmine)


I just installed Icinga Web 2 on my Ubuntu 14.04 server using the corresponding Ubungu package repository.

My Browser is set to use german language.
After accessing the Icinga Web page, syslog shows the error:

 Sep 5 13:37:26 hostname icingaweb2[27586]: Icinga\Exception\IcingaException in /usr/share/php/Icinga/Util/Translator.php:181 with message: Cannot set locale 'de_DE' for category 'LC_ALL'

This can be fixed by adding the locale:

sudo locale-gen de_DE
sudo locale-gen de_DE.UTF-8
sudo update-locale

The error message should be shown during installation or during the modules check so that you can fix it.


Relations:

@icinga-migration

This comment has been minimized.

Member

icinga-migration commented Feb 15, 2016

Updated by elippmann on 2016-02-15 22:53:07 +00:00

  • Subject changed from Missing locale to Translator throws exception if locale is missing
  • Category changed from Installation to I18N/L10N
  • Target Version set to Backlog

Hi,

Thanks for the report. Will be fixed in one our next releases.

Best,
Eric

@icinga-migration

This comment has been minimized.

Member

icinga-migration commented Oct 5, 2016

Updated by elippmann on 2016-10-05 07:54:35 +00:00

  • Duplicates set to 11820
@icinga-migration

This comment has been minimized.

Member

icinga-migration commented Oct 5, 2016

Updated by elippmann on 2016-10-05 07:54:39 +00:00

  • Status changed from New to Closed
  • Target Version deleted Backlog

I close this in favor of #11820.

@Aleksey-Maksimov

This comment has been minimized.

Aleksey-Maksimov commented Aug 20, 2018

Hello.

Some problem.
Icinga Web 2.5.3 on Debian GNU/Linux 8.10 (Jessie)

# tail -f /var/log/icingaweb2/icingaweb2.log

2018-08-20T16:43:41+03:00 - ERROR - Icinga\Exception\IcingaException in /usr/share/php/Icinga/Util/Translator.php:181 with message: Cannot set locale 'ru_RU' for category 'LC_ALL'
2018-08-20T16:43:47+03:00 - ERROR - Icinga\Exception\IcingaException in /usr/share/php/Icinga/Util/Translator.php:181 with message: Cannot set locale 'ru_RU' for category 'LC_ALL'
2018-08-20T16:43:49+03:00 - ERROR - Icinga\Exception\IcingaException in /usr/share/php/Icinga/Util/Translator.php:181 with message: Cannot set locale 'ru_RU' for category 'LC_ALL'
2018-08-20T16:43:52+03:00 - ERROR - Icinga\Exception\IcingaException in /usr/share/php/Icinga/Util/Translator.php:181 with message: Cannot set locale 'ru_RU' for category 'LC_ALL'
2018-08-20T16:43:53+03:00 - ERROR - Icinga\Exception\IcingaException in /usr/share/php/Icinga/Util/Translator.php:181 with message: Cannot set locale 'ru_RU' for category 'LC_ALL'
2018-08-20T16:43:55+03:00 - ERROR - Icinga\Exception\IcingaException in /usr/share/php/Icinga/Util/Translator.php:181 with message: Cannot set locale 'ru_RU' for category 'LC_ALL'
2018-08-20T16:43:55+03:00 - ERROR - Icinga\Exception\IcingaException in /usr/share/php/Icinga/Util/Translator.php:181 with message: Cannot set locale 'ru_RU' for category 'LC_ALL'
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment