Fix conversion to QByteArray in translations
This commit is contained in:
parent
9d339e909c
commit
4e83d8b315
1 changed files with 4 additions and 4 deletions
|
|
@ -651,8 +651,8 @@ void Instance::loadFromJson(const QString &filename) {
|
||||||
|
|
||||||
if ((*value).isString()) {
|
if ((*value).isString()) {
|
||||||
|
|
||||||
const auto name = QByteArray().append(key);
|
const auto name = key.toLatin1();
|
||||||
const auto translation = QByteArray().append((*value).toString());
|
const auto translation = (*value).toString().toUtf8();
|
||||||
|
|
||||||
applyValue(name, translation);
|
applyValue(name, translation);
|
||||||
|
|
||||||
|
|
@ -671,8 +671,8 @@ void Instance::loadFromJson(const QString &filename) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto name = QByteArray().append(key + "#" + plural);
|
const auto name = QString(key + "#" + plural).toLatin1();
|
||||||
const auto translation = QByteArray().append((*pluralValue).toString());
|
const auto translation = (*pluralValue).toString().toUtf8();
|
||||||
|
|
||||||
applyValue(name, translation);
|
applyValue(name, translation);
|
||||||
if (--limit <= 0) {
|
if (--limit <= 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue