Bug 341527

Summary: xkbOptionsTreeView in "Advanced" tab shows HTML entities
Product: [Applications] systemsettings Reporter: Elias Probst <mail>
Component: kcm_keyboardAssignee: Andriy Rysin <arysin>
Status: RESOLVED FIXED    
Severity: minor CC: dima, lueck
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Elias Probst 2014-12-03 11:57:34 UTC
The list to "Configure keyboard options" shows HTML entities, such as:

--+ Position of Compose Key
   |-- &lt;Less/Greater&gt;

Running up-to-date KF5/P5 from git + Qt 5.4.0_rc.
Comment 1 Elias Probst 2015-04-30 11:11:34 UTC
Still valid for current master/Plasma 5.3.0.
Comment 2 Burkhard Lück 2015-05-04 08:44:07 UTC
Confirmed running Kubuntu 15.04 with Plasma 5.3 in a VM and and latest Frameworks/Plasma compiled from sources

This is displayed properly without HTML entities in kde 4.14.2

All systems use the same package xkb-data 2.12-1ubuntu1 with the strings displayed on the tab Advanced in the kexboard KCM GUI
Comment 3 Burkhard Lück 2015-05-04 08:44:30 UTC
*** Bug 347136 has been marked as a duplicate of this bug. ***
Comment 4 David Edmundson 2015-08-17 15:11:38 UTC
Git commit 13216b778d53d6a86fe71afec927765a4a51192a by David Edmundson.
Committed on 17/08/2015 at 15:11.
Pushed by davidedmundson into branch 'Plasma/5.4'.

Fix broken translations in keyboard KCM advanced page

This was broken in a way that meant i18n wasn't loaded and the English
version had random HTML entities.
REVIEW: 124737

M  +2    -2    kcms/keyboard/xkb_rules.cpp

http://commits.kde.org/plasma-desktop/13216b778d53d6a86fe71afec927765a4a51192a
Comment 5 Wolfgang Bauer 2015-09-30 12:00:18 UTC
Git commit 6d192f58efc1f4fc34e4ee1d6d072ba11a6a29a1 by Wolfgang Bauer.
Committed on 30/09/2015 at 11:58.
Pushed by wbauer into branch 'Plasma/5.4'.

Completely fix broken translations in keyboard KCM advanced page

The xkeyboard-config translation files contain the characters '<' and
'>' in HTML-escaped form. Therefore we need to convert them before/after
looking up the translation.

Note that QString::toHtmlEscaped() cannot be used here because it would
also convert '"', which is contained verbatim in the translation files.
REVIEW: 125462

M  +4    -1    kcms/keyboard/xkb_rules.cpp

http://commits.kde.org/plasma-desktop/6d192f58efc1f4fc34e4ee1d6d072ba11a6a29a1