diff options
author | saturneric <[email protected]> | 2024-01-16 13:35:59 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-01-16 13:35:59 +0000 |
commit | 620ae9e7c1a8b2db2515c080416cb592066e5fec (patch) | |
tree | 900f3e55118aa2a5049d99dd743d3e595016fc7b /src/cmd.cpp | |
parent | fix: make task and threading system safer (diff) | |
download | GpgFrontend-620ae9e7c1a8b2db2515c080416cb592066e5fec.tar.gz GpgFrontend-620ae9e7c1a8b2db2515c080416cb592066e5fec.zip |
refactor: remove libgettext from project
Diffstat (limited to 'src/cmd.cpp')
-rw-r--r-- | src/cmd.cpp | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/src/cmd.cpp b/src/cmd.cpp index a8a5b9d9..e19ad218 100644 --- a/src/cmd.cpp +++ b/src/cmd.cpp @@ -41,18 +41,21 @@ namespace GpgFrontend { auto PrintVersion() -> int { - std::cout << PROJECT_NAME << " " - << "v" << VERSION_MAJOR << "." << VERSION_MINOR << "." - << VERSION_PATCH << '\n'; - std::cout - << "Copyright (C) 2021 Saturneric <[email protected]>" << '\n' - << _("This is free software; see the source for copying conditions.") - << '\n' - << '\n'; + QTextStream stream(stdin); + stream << PROJECT_NAME << " " + << "v" << VERSION_MAJOR << "." << VERSION_MINOR << "." << VERSION_PATCH + << '\n'; + stream << "Copyright (C) 2021 Saturneric <[email protected]>" << '\n' + << QObject::tr( + "This is free software; see the source for copying conditions.") + << '\n' + << '\n'; - std::cout << _("Build Timestamp: ") << BUILD_TIMESTAMP << '\n' - << _("Build Version: ") << BUILD_VERSION << '\n' - << _("Source Code Version: ") << GIT_VERSION << '\n'; + stream << QObject::tr("Build Timestamp: ") << BUILD_TIMESTAMP << '\n' + << QObject::tr("Build Version: ") << BUILD_VERSION << '\n' + << QObject::tr("Source Code Version: ") << GIT_VERSION << '\n'; + + stream << Qt::endl; return 0; } |