Navigation Menu

Skip to content
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
Labels
area/localization Affects the localization (i18n / l10n) bug Something isn't working

Comments

@icinga-migration
Copy link

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
Copy link
Author

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
Copy link
Author

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

  • Duplicates set to 11820

@icinga-migration
Copy link
Author

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.

@icinga-migration icinga-migration added bug Something isn't working area/localization Affects the localization (i18n / l10n) labels Jan 17, 2017
@Aleksey-Maksimov
Copy link

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
Labels
area/localization Affects the localization (i18n / l10n) bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants