Skip to content

Commit

Permalink
fix: [audit] log isn't zh_cn
Browse files Browse the repository at this point in the history
Use zh_cn for burn files log

Log: audit log
  • Loading branch information
Johnson-zs committed Sep 21, 2023
1 parent 9e015a5 commit 4fcf461
Show file tree
Hide file tree
Showing 3 changed files with 296 additions and 290 deletions.
4 changes: 2 additions & 2 deletions src/plugins/common/dfmplugin-burn/utils/auditlogjob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,10 @@ void BurnFilesAuditLogJob::doLog(QDBusInterface &interface)
void BurnFilesAuditLogJob::writeLog(QDBusInterface &interface, const QString &discPath, const QString &nativePath, qint64 size)
{
static const QString kLogKey { "cdrecord" };
static const QString kLogTemplate { "ID=%1, DateTime=%2, Burner=%3, DiscType=%4, Result=%5, User=%6, FileName=%7, FileSize=%8, FileType=%9" };
static const QString kLogTemplate { QObject::tr("ID=%1, DateTime=%2, Burner=%3, DiscType=%4, Result=%5, User=%6, FileName=%7, FileSize=%8, FileType=%9") };
static const QString &kUserName { SysInfoUtils::getUser() };

const QString &result { burnedSuccess ? "Success" : "Failed" };
const QString &result { burnedSuccess ? QObject::tr("Success") : QObject::tr("Failed") };
const QString &dateTime { QDateTime::currentDateTime().toString("yyyy-MM-dd hh:mm:ss") };
const QString &burner { AuditHelper::bunner(property(DeviceProperty::kDrive)) };
const QString &discType { AuditHelper::opticalMedia(property(DeviceProperty::kMedia)) };
Expand Down
Loading

0 comments on commit 4fcf461

Please sign in to comment.