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/core/GpgCoreInit.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/core/GpgCoreInit.cpp')
-rw-r--r-- | src/core/GpgCoreInit.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/GpgCoreInit.cpp b/src/core/GpgCoreInit.cpp index 806e1fe2..74e944f8 100644 --- a/src/core/GpgCoreInit.cpp +++ b/src/core/GpgCoreInit.cpp @@ -193,7 +193,7 @@ void InitGpgFrontendCore(CoreInitArgs args) { // initialize library gpgme if (!InitGpgME()) { CoreSignalStation::GetInstance()->SignalBadGnupgEnv( - _("GpgME inilization failed")); + QObject::tr("GpgME inilization failed")); return; } @@ -317,7 +317,7 @@ void InitGpgFrontendCore(CoreInitArgs args) { if (!ctx.Good()) { GF_CORE_LOG_ERROR("default gnupg context init error, abort"); CoreSignalStation::GetInstance()->SignalBadGnupgEnv( - _("GpgME Context inilization failed")); + QObject::tr("GpgME Context inilization failed")); return -1; } Module::UpsertRTValue("core", "env.state.ctx", 1); @@ -326,7 +326,7 @@ void InitGpgFrontendCore(CoreInitArgs args) { if (args.load_default_gpg_context) { if (!GpgKeyGetter::GetInstance().FlushKeyCache()) { CoreSignalStation::GetInstance()->SignalBadGnupgEnv( - _("Gpg Key Detabase inilization failed")); + QObject::tr("Gpg Key Detabase inilization failed")); }; } GF_CORE_LOG_INFO( @@ -380,7 +380,7 @@ void InitGpgFrontendCore(CoreInitArgs args) { "core_init_task"); QObject::connect(task, &Thread::Task::SignalTaskEnd, []() { - + }); // start the thread to check ctx and gnupg state |