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

[emojier] Load locale file correctly

Summary:
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: https://phabricator.kde.org/D25156
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;
......
Markdown is supported
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