comparison src/gui/translate/config.cc @ 322:c32467cd06bb

core/strings: add Strings::Translate function as tr() -> ToUtf8String
author Paper <paper@paper.us.eu.org>
date Wed, 12 Jun 2024 22:15:53 -0400
parents b1f625b0227c
children
comparison
equal deleted inserted replaced
321:8141f409d52c 322:c32467cd06bb
30 } 30 }
31 31
32 std::string ToLocalString(const Theme::Theme& theme) { 32 std::string ToLocalString(const Theme::Theme& theme) {
33 switch (theme) { 33 switch (theme) {
34 default: 34 default:
35 case Theme::Theme::Default: return Strings::ToUtf8String(QCoreApplication::tr("Default")); 35 case Theme::Theme::Default: return Strings::Translate("Default");
36 case Theme::Theme::Light: return Strings::ToUtf8String(QCoreApplication::tr("Light")); 36 case Theme::Theme::Light: return Strings::Translate("Light");
37 case Theme::Theme::Dark: return Strings::ToUtf8String(QCoreApplication::tr("Dark")); 37 case Theme::Theme::Dark: return Strings::Translate("Dark");
38 } 38 }
39 } 39 }
40 40
41 } // namespace Translate 41 } // namespace Translate