Mercurial > minori
changeset 224:7ca56c4ac0bc
about: don't abuse QCoreApplication:tr
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Mon, 08 Jan 2024 17:05:08 -0500 |
parents | 84e0a3c4737a |
children | 56ea2bdc6724 |
files | src/core/config.cc src/gui/dialog/about.cc |
diffstat | 2 files changed, 11 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/core/config.cc Mon Jan 08 16:54:16 2024 -0500 +++ b/src/core/config.cc Mon Jan 08 17:05:08 2024 -0500 @@ -25,6 +25,9 @@ /* I'll use an INI-based config file instead of using an * XML file like Taiga. + * + * It technically isn't to spec, because I'm making these case-sensitive. + * Boohoo. */ int Config::Load() {
--- a/src/gui/dialog/about.cc Mon Jan 08 16:54:16 2024 -0500 +++ b/src/gui/dialog/about.cc Mon Jan 08 17:05:08 2024 -0500 @@ -49,11 +49,11 @@ "<body>" " <h2 style=\"font-weight: normal;\"><strong>Minori</strong> v" + Strings::ToQString(session.version.to_string()) + "</h2>" " <p>" - " <strong>" + QCoreApplication::tr("Author:") + "</strong><br>" + " <strong>" + tr("Author:") + "</strong><br>" " Paper (@mrpapersonic)" " </p>" " <p>" - " <strong>" + QCoreApplication::tr("Third party components:") + "</strong><br>" + " <strong>" + tr("Third party components:") + "</strong><br>" "<a href=\"https://curl.se/\">libcurl v") + get_curl_version() + "</a>" ", " "<a href=\"https://p.yusukekamiyamane.com/\">Fugue Icons v3.5.6</a>" @@ -69,16 +69,16 @@ "<a href=\"https://github.com/pulzed/mINI\">mINI v0.9.14</a>" " </p>" "<span>" - "<strong>" + QCoreApplication::tr("Special thanks:") + "</strong>" + "<strong>" + tr("Special thanks:") + "</strong>" "</span>" " <ul style=\"margin-top: 0px; margin-bottom: 0px; margin-left: 15px; margin-right: 0px; -qt-list-indent:0;\">" - " <li><strong>Eren Okka</strong> " + QCoreApplication::tr("for creating Taiga") + "</li>" - " <li><strong>Alex Huszagh</strong> " + QCoreApplication::tr("and") + " <strong>Colin Duquesnoy</strong> " + - QCoreApplication::tr("for creating BreezeStyleSheets, on which the dark theme in this program is " + " <li><strong>Eren Okka</strong> " + tr("for creating Taiga") + "</li>" + " <li><strong>Alex Huszagh</strong> " + tr("and") + " <strong>Colin Duquesnoy</strong> " + + tr("for creating BreezeStyleSheets, on which the dark theme in this program is " "based off of") + "</li>" - " <li><strong>Andy Brice</strong> " + QCoreApplication::tr("for providing some sample code for " + " <li><strong>Andy Brice</strong> " + tr("for providing some sample code for " "detecting dark mode on Windows and macOS") + "</li>" - " <li><strong>Manuel Wudka-Robles</strong> " + QCoreApplication::tr("for providing information on " + " <li><strong>Manuel Wudka-Robles</strong> " + tr("for providing information on " "getting open file descriptors on macOS") + "</li>" " </ul>" "</body>";