Mercurial > minori
diff 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 |
line wrap: on
line diff
--- a/src/gui/translate/config.cc Wed Jun 12 20:42:44 2024 -0400 +++ b/src/gui/translate/config.cc Wed Jun 12 22:15:53 2024 -0400 @@ -32,9 +32,9 @@ std::string ToLocalString(const Theme::Theme& theme) { switch (theme) { default: - case Theme::Theme::Default: return Strings::ToUtf8String(QCoreApplication::tr("Default")); - case Theme::Theme::Light: return Strings::ToUtf8String(QCoreApplication::tr("Light")); - case Theme::Theme::Dark: return Strings::ToUtf8String(QCoreApplication::tr("Dark")); + case Theme::Theme::Default: return Strings::Translate("Default"); + case Theme::Theme::Light: return Strings::Translate("Light"); + case Theme::Theme::Dark: return Strings::Translate("Dark"); } }