Bug 421274

Summary: Can't add or change languages
Product: [Applications] systemsettings Reporter: Mihai Sorin Dobrescu <msdobrescu>
Component: kcm_languageAssignee: Eike Hein <hein>
Status: RESOLVED DUPLICATE    
Severity: major CC: bugseforuns, plasma-bugs
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Mihai Sorin Dobrescu 2020-05-10 11:34:53 UTC
Hello,

I have the following error when I run:

kcmshell5 kcm_translations
kf5.ki18n: "1 instead of 2 arguments to message {The translation file...} supplied before conversion."
file:///usr/lib64/qt5/qml/org/kde/kcm/ScrollViewKCM.qml:63:13: QML Control: Binding loop detected for property "implicitHeight"
Language code morphed into another existing language code, please report! "en_US.UTF-8" "en_US"
kf5.ki18n: "1 instead of 2 arguments to message {The translation file...} supplied before conversion."
file:///usr/share/kpackage/kcms/kcm_translations/contents/ui/main.qml:211:25: Unable to assign [undefined] to QString
file:///usr/share/kpackage/kcms/kcm_translations/contents/ui/main.qml:43: TypeError: Cannot read property 'display' of null
file:///usr/share/kpackage/kcms/kcm_translations/contents/ui/main.qml:39: TypeError: Cannot read property 'LanguageCode' of null
file:///usr/share/kpackage/kcms/kcm_translations/contents/ui/main.qml:43: TypeError: Cannot read property 'display' of null
...

The region is set to Romania, the laguage should be English.

The following in the ~/plasma-localerc:

[Formats]
LANG=ro_RO.UTF-8

[Translations]
LANGUAGE=en_US.UTF-8

If I remove {Translations] from the ~/plasma-localerc, I see there is American English as the current language, but there is no possibility to add a language, because it does nothing when a language is selected. But KDE menus becomes translated to Romanian.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Sabayon Linux
Operating System: Gentoo Linux 
KDE Plasma Version: 5.18.4
KDE Frameworks Version: 5.69.0
Qt Version: 5.14.1
Kernel Version: 5.4.0-sabayon
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-3630QM CPU @ 2.40GHz
Memory: 15,1 GiB of RAM

ADDITIONAL INFORMATION
Comment 1 Patrick Silva 2020-05-10 18:33:52 UTC

*** This bug has been marked as a duplicate of bug 419691 ***