NOISSUE Add small workaround for presenting Japanese with Kanji
This commit is contained in:
parent
dba4c452e0
commit
80beccb2c4
@ -39,6 +39,18 @@ struct Language
|
||||
updated = (key == defaultLangCode);
|
||||
}
|
||||
|
||||
QString languageName() const {
|
||||
QString result;
|
||||
if(key == "ja_KANJI") {
|
||||
result = locale.nativeLanguageName() + u8" (漢字)";
|
||||
qDebug() << result;
|
||||
}
|
||||
else {
|
||||
result = locale.nativeLanguageName();
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
float percentTranslated() const
|
||||
{
|
||||
if (total == 0)
|
||||
@ -340,7 +352,7 @@ QVariant TranslationsModel::data(const QModelIndex& index, int role) const
|
||||
{
|
||||
case Column::Language:
|
||||
{
|
||||
return lang.locale.nativeLanguageName();
|
||||
return lang.languageName();
|
||||
}
|
||||
case Column::Completeness:
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user