diff options
author | saturneric <[email protected]> | 2024-01-16 16:54:18 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-01-16 16:54:18 +0000 |
commit | 394e28ec525077f07ae578161220b3cfafb65591 (patch) | |
tree | 4577dac5ebb3adf93b7e80cb7c23d27fc84eb982 /src/ui/dialog/help/AboutDialog.cpp | |
parent | refactor: remove libgettext from project (diff) | |
download | GpgFrontend-394e28ec525077f07ae578161220b3cfafb65591.tar.gz GpgFrontend-394e28ec525077f07ae578161220b3cfafb65591.zip |
fix: slove some issues and update translations
Diffstat (limited to 'src/ui/dialog/help/AboutDialog.cpp')
-rw-r--r-- | src/ui/dialog/help/AboutDialog.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/ui/dialog/help/AboutDialog.cpp b/src/ui/dialog/help/AboutDialog.cpp index 54deed22..e4a189a3 100644 --- a/src/ui/dialog/help/AboutDialog.cpp +++ b/src/ui/dialog/help/AboutDialog.cpp @@ -119,19 +119,10 @@ InfoTab::InfoTab(QWidget* parent) : QWidget(parent) { } TranslatorsTab::TranslatorsTab(QWidget* parent) : QWidget(parent) { - QFile translators_qfile(GlobalSettingStation::GetInstance().GetResourceDir() + - "/TRANSLATORS"); -#ifdef LINUX - if (!translators_qfile.exists()) { - translators_qfile.setFileName("/usr/local/share/GpgFrontend/TRANSLATORS"); - } -#endif - - translators_qfile.open(QIODevice::ReadOnly); - QByteArray in_buffer = translators_qfile.readAll(); - - auto* label = new QLabel(in_buffer); + QFile translators_file(":/TRANSLATORS"); + translators_file.open(QIODevice::ReadOnly); + auto* label = new QLabel(translators_file.readAll()); auto* main_layout = new QVBoxLayout(this); main_layout->addWidget(label); main_layout->addStretch(); |