Commit f2d8a2f5 authored by David Edmundson's avatar David Edmundson
Browse files

[emojier] Load locale file correctly

ibus installs with the file en_GB.dict same with an underscore as a
separator for all regional variants.

The bcp47 name uses a hyphen.

Test Plan: I see emoticons

Reviewers: #plasma

Subscribers: plasma-devel

Tags: #plasma

Differential Revision:
parent 6569912f
......@@ -128,7 +128,7 @@ public:
EmojiModel() {
QLocale locale;
const QString dictName = "ibus/dicts/emoji-" + locale.bcp47Name() + ".dict";
const QString dictName = "ibus/dicts/emoji-" + locale.bcp47Name().replace(QLatin1Char('-'), QLatin1Char('_')) + ".dict";
const QString path = QStandardPaths::locate(QStandardPaths::GenericDataLocation, dictName);
if (path.isEmpty()) {
qWarning() << "could not find" << dictName;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment