Bug 410113 - Please make this message more specific: Warning: No language dictionaries for the language
Summary: Please make this message more specific: Warning: No language dictionaries for...
Status: RESOLVED FIXED
Alias: None
Product: frameworks-sonnet
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.57.0
Platform: Other FreeBSD
: NOR normal
Target Milestone: ---
Assignee: Martin Sandsmark
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-22 18:06 UTC by Yuri
Modified: 2022-05-26 15:04 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri 2019-07-22 18:06:25 UTC
SUMMARY

Apps using sonnet print messages like this:
> Warning: No language dictionaries for the language: "C"

It isn't clear from the message what component printed it, what part of locale is wrong, etc.

Please clarify the message: mention kde/sonnet, and say that "C" is a particular part of locale, and what part it is.

Reference: https://github.com/qTox/qTox/issues/5741

Additionally, please don't print the warning a thousand times. Once per failed locale type should be sufficient, because user can't normally change environment variable on the fly. Apps actually can change their own environment, so you should probably recheck when it changes, and warn once for each failed locale type.
Comment 1 Herrold 2020-03-20 15:37:32 UTC
I see this as well

Mar 20 11:22:26 centos-8 /usr/libexec/gdm-x-session[3130]: sonnet.core: No language dictionaries for the language: "C"
Mar 20 11:22:26 centos-8 /usr/libexec/gdm-x-session[3130]: sonnet.core: No language dictionaries for the language: "C"
Mar 20 11:22:26 centos-8 /usr/libexec/gdm-x-session[3130]: sonnet.core: No language dictionaries for the language: "C"

There are two requests here, it seems:

1. a more descriptive error message to permit running down what is needed

2. suppression of repeated messaging of the same message 


from bug:
https://github.com/qTox/qTox/issues/5741

my values are:

[herrold@centos-8 pw]$ locale
LANG=en_US
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C
[herrold@centos-8 pw]$ locale | grep "LC_CTYPE"
LC_CTYPE="C"
[herrold@centos-8 pw]$ locale | grep "LANG"
LANG=en_US
[herrold@centos-8 pw]$ env | grep '\<C\>'
LC_ALL=C
[herrold@centos-8 pw]$
Comment 3 Lothar 2022-05-26 15:04:39 UTC
Git commit 5b4d94017ab17e45be158cdda757ffd18c62592c by loh tar.
Committed on 15/05/2022 at 03:13.
Pushed by cullmann into branch 'master'.

Try to load en_US for LANG=C

Don't warn about that, just debug.

M  +2    -2    src/core/loader.cpp

https://invent.kde.org/frameworks/sonnet/commit/5b4d94017ab17e45be158cdda757ffd18c62592c