From e454f4c05b2d8184c4c0e16bfebc408cf19d0f88 Mon Sep 17 00:00:00 2001 From: B3n30 Date: Sun, 11 Aug 2019 16:44:54 +0200 Subject: [PATCH] proper translation part2 --- src/citra_qt/game_list_p.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/citra_qt/game_list_p.h b/src/citra_qt/game_list_p.h index 29d06f756..96aaffa33 100644 --- a/src/citra_qt/game_list_p.h +++ b/src/citra_qt/game_list_p.h @@ -76,7 +76,7 @@ static QString GetQStringShortTitleFromSMDH(const Loader::SMDH& smdh, */ static QString GetRegionFromSMDH(const Loader::SMDH& smdh) { using GameRegion = Loader::SMDH::GameRegion; - static const std::map regions_map = { + static const std::map regions_map = { {GameRegion::Japan, QT_TR_NOOP("Japan")}, {GameRegion::NorthAmerica, QT_TR_NOOP("North America")}, {GameRegion::Europe, QT_TR_NOOP("Europe")}, @@ -95,9 +95,9 @@ static QString GetRegionFromSMDH(const Loader::SMDH& smdh) { return QObject::tr("Region free"); } - QString result = regions_map.at(regions.front()); + QString result = QObject::tr(regions_map.at(regions.front())); for (auto region = ++regions.begin(); region != regions.end(); ++region) { - result += "\n" + regions_map.at(*region); + result += QStringLiteral("\n") + QObject::tr(regions_map.at(*region)); } return result; }