Repair and improve the internationalization structure.
Repair and perfect engineering configuration. Modify some fields of the interface. Modify.gitignore.
This commit is contained in:
parent
a02f5d7d10
commit
8384dc6327
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,3 +1,6 @@
|
||||
# Project
|
||||
include/GpgFrontend.h
|
||||
|
||||
#CLion
|
||||
.idea/*
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
cmake_minimum_required(VERSION 3.19)
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
|
||||
project(GpgFrontend VERSION 1.0.0 LANGUAGES CXX)
|
||||
|
||||
|
@ -1,32 +0,0 @@
|
||||
#ifndef GPGFRONTEND_H_IN
|
||||
#define GPGFRONTEND_H_IN
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <cmath>
|
||||
#include <clocale>
|
||||
#include <cerrno>
|
||||
#include <utility>
|
||||
#include <list>
|
||||
|
||||
#include <QtCore>
|
||||
#include <QtWidgets>
|
||||
#include <QtNetwork/QtNetwork>
|
||||
#include <QtPrintSupport/QtPrintSupport>
|
||||
|
||||
#include <gpgme.h>
|
||||
|
||||
#define PROJECT_NAME "GpgFrontend"
|
||||
#define BUILD_VERSION "1.0.0_Windows-10.0.19042_AMD64_Release"
|
||||
#define GIT_VERSION "main_edf08cf137e47ab9e61f5f088cef94cdbeca2c6e"
|
||||
|
||||
#define VERSION_MAJOR 1
|
||||
#define VERSION_MINOR 0
|
||||
#define VERSION_PATCH 0
|
||||
|
||||
#define BUILD_TIMESTAMP "2021-06-19 20:12:57"
|
||||
|
||||
#define GIT_BRANCH_NAME "main"
|
||||
#define GIT_COMMIT_HASH "edf08cf137e47ab9e61f5f088cef94cdbeca2c6e"
|
||||
|
||||
#endif //GPGFRONTEND_H_IN
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,548 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1" language="en">
|
||||
<context>
|
||||
<name>MainWindow</name>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="175"/>
|
||||
<source>&New</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="181"/>
|
||||
<source>Open a new file</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="184"/>
|
||||
<source>&Open...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="187"/>
|
||||
<source>Open an existing file</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="190"/>
|
||||
<source>&Save</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="193"/>
|
||||
<source>Save the current File</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="196"/>
|
||||
<source>Save &As</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="199"/>
|
||||
<source>Save the current File as...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="202"/>
|
||||
<source>&Print</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="205"/>
|
||||
<source>Print Document</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="208"/>
|
||||
<source>&Close</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="210"/>
|
||||
<source>Close file</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="213"/>
|
||||
<source>&Quit</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="216"/>
|
||||
<source>Quit Program</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="221"/>
|
||||
<source>&Undo</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="223"/>
|
||||
<source>Undo Last Edit Action</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="226"/>
|
||||
<source>&Redo</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="228"/>
|
||||
<source>Redo Last Edit Action</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="231"/>
|
||||
<source>Zoom In</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="235"/>
|
||||
<source>Zoom Out</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="239"/>
|
||||
<source>&Paste</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="242"/>
|
||||
<source>Paste Text From Clipboard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="245"/>
|
||||
<source>Cu&t</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="248"/>
|
||||
<source>Cut the current selection's contents to the clipboard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="252"/>
|
||||
<source>&Copy</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="255"/>
|
||||
<source>Copy the current selection's contents to the clipboard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="259"/>
|
||||
<source>&Quote</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="261"/>
|
||||
<source>Quote whole text</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="264"/>
|
||||
<source>Select &All</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="267"/>
|
||||
<source>Select the whole text</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="270"/>
|
||||
<source>&Find</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="272"/>
|
||||
<source>Find a word</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="275"/>
|
||||
<source>Remove &spacing</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="278"/>
|
||||
<source>Remove double linebreaks, e.g. in pasted text from webmailer</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="281"/>
|
||||
<source>Se&ttings</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="282"/>
|
||||
<source>Open settings dialog</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="288"/>
|
||||
<source>&Encrypt</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="291"/>
|
||||
<source>Encrypt Message</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="294"/>
|
||||
<source>&Encrypt &Sign</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="297"/>
|
||||
<source>Encrypt and Sign Message</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="300"/>
|
||||
<source>&Decrypt</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="303"/>
|
||||
<source>Decrypt Message</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="306"/>
|
||||
<source>&Decrypt &Verify</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="309"/>
|
||||
<source>Decrypt and Verify Message</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="552"/>
|
||||
<source>Special Edit</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="601"/>
|
||||
<source>Key ToolBox</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="609"/>
|
||||
<source>Information Board</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="726"/>
|
||||
<location filename="../../src/MainWindow.cpp" line="773"/>
|
||||
<location filename="../../src/MainWindow.cpp" line="1076"/>
|
||||
<source>No Key Selected</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="733"/>
|
||||
<location filename="../../src/MainWindow.cpp" line="780"/>
|
||||
<location filename="../../src/MainWindow.cpp" line="1083"/>
|
||||
<source>Invalid Operation</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="734"/>
|
||||
<source>The selected key contains a key that does not actually have a encrypt function.<br/></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="735"/>
|
||||
<location filename="../../src/MainWindow.cpp" line="782"/>
|
||||
<location filename="../../src/MainWindow.cpp" line="1085"/>
|
||||
<source><br/>For example the Following Key: <br/></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="781"/>
|
||||
<source>The selected key contains a key that does not actually have a signature function.<br/></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="1084"/>
|
||||
<source>The selected key cannot be used for signing and encryption at the same time.<br/></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="315"/>
|
||||
<source>&Encrypt File</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="316"/>
|
||||
<source>Encrypt File</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="319"/>
|
||||
<source>&Decrypt File</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="320"/>
|
||||
<source>Decrypt File</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="323"/>
|
||||
<source>&Sign File</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="324"/>
|
||||
<source>Sign File</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="327"/>
|
||||
<source>&Verify File</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="328"/>
|
||||
<source>Verify File</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="332"/>
|
||||
<source>&Sign</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="335"/>
|
||||
<source>Sign Message</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="338"/>
|
||||
<source>&Verify</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="341"/>
|
||||
<source>Verify Message</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="347"/>
|
||||
<source>&Editor</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="349"/>
|
||||
<source>Import New Key From Editor</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="352"/>
|
||||
<source>Manage &keys</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="354"/>
|
||||
<source>Open Keymanagement</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="359"/>
|
||||
<source>&About</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="361"/>
|
||||
<source>Show the application's About box</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="364"/>
|
||||
<source>Open &Wizard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="365"/>
|
||||
<source>Open the wizard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="370"/>
|
||||
<source>Append Selected Key(s) To Text</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="371"/>
|
||||
<source>Append The Selected Keys To Text in Editor</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="374"/>
|
||||
<source>Copy EMail-address</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="375"/>
|
||||
<source>Copy selected EMailaddress to clipboard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="379"/>
|
||||
<source>Show Keydetails</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="380"/>
|
||||
<source>Show Details for this Key</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="383"/>
|
||||
<source>Refresh key from keyserver</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="384"/>
|
||||
<source>Refresh key from default keyserver</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="387"/>
|
||||
<source>Upload Key(s) To Server</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="388"/>
|
||||
<source>Upload The Selected Keys To Server</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="446"/>
|
||||
<source>&File</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="458"/>
|
||||
<source>&Edit</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="476"/>
|
||||
<source>&File...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="482"/>
|
||||
<source>&Crypt</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="493"/>
|
||||
<source>&Keys</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="503"/>
|
||||
<source>&Steganography</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="402"/>
|
||||
<source>Remove PGP Header</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="405"/>
|
||||
<source>Add PGP Header</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="494"/>
|
||||
<source>&Import Key</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="512"/>
|
||||
<source>&View</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="514"/>
|
||||
<source>&Help</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="522"/>
|
||||
<source>File</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="530"/>
|
||||
<source>Crypt</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="540"/>
|
||||
<source>Key</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="545"/>
|
||||
<source>Edit</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="564"/>
|
||||
<source>Import key from...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="565"/>
|
||||
<source>Import key</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="573"/>
|
||||
<source>Encrypt or decrypt File</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="574"/>
|
||||
<source>File..</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="594"/>
|
||||
<source>Ready</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="629"/>
|
||||
<source>Attached files:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="692"/>
|
||||
<source>There is one unencrypted file in attachment folder</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="694"/>
|
||||
<source>There are </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/MainWindow.cpp" line="694"/>
|
||||
<source> unencrypted files in attachment folder</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,3 +1,5 @@
|
||||
set(ALL_SOURCE_FILE)
|
||||
|
||||
add_subdirectory(gpg)
|
||||
add_subdirectory(ui)
|
||||
|
||||
@ -10,15 +12,19 @@ set_property(SOURCE gpgfrontend.rc APPEND PROPERTY OBJECT_DEPENDS ${CMAKE_SOURCE
|
||||
file(GLOB_RECURSE GPGFRONTEND_HEADER_FILES RELACTIVE ${CMAKE_SOURCE_DIR}/include/*.h)
|
||||
qt5_wrap_cpp(QT5_MOCS ${GPGFRONTEND_HEADER_FILES} TARGET gpgfrontend)
|
||||
|
||||
# Get ALL SOURCE FILES
|
||||
file(GLOB_RECURSE ALL_SOURCE_FILES RELACTIVE ${CMAKE_SOURCE_DIR}/src/*.cpp)
|
||||
|
||||
# Set Translation Files
|
||||
file(GLOB_RECURSE QT_TS_FILES RELACTIVE ${CMAKE_SOURCE_DIR}/resource/ts/*.ts)
|
||||
set(QT_TS_FILES gpgfrontend_en_us.ts gpgfrontend_zh_chs.ts gpgfrontend_zh_cht.ts gpg_frontend_fr.ts gpg_frontend_ru.ts)
|
||||
list(TRANSFORM QT_TS_FILES PREPEND ${CMAKE_SOURCE_DIR}/resource/ts/)
|
||||
message(STATUS "QT_TS_FILES ${QT_TS_FILES}")
|
||||
set(QT_QM_FILES_OUTPUT_DIR ${CMAKE_BINARY_DIR}/src/ts)
|
||||
set_source_files_properties(${QT_TS_FILES} PROPERTIES OUTPUT_LOCATION ${QT_QM_FILES_OUTPUT_DIR})
|
||||
QT5_create_translation(QON_QM_FILES ${BASE_SOURCE} ${QT_TS_FILES})
|
||||
message(STATUS ${QON_QM_FILES})
|
||||
QT5_create_translation(QON_QM_FILES ${CMAKE_SOURCE_DIR} ${QT_TS_FILES})
|
||||
message(STATUS "QON_QM_FILES ${QON_QM_FILES}")
|
||||
add_custom_target(translations DEPENDS ${QON_QM_FILES})
|
||||
|
||||
|
||||
# Set Build Information
|
||||
configure_file(${CMAKE_SOURCE_DIR}/include/GpgFrontend.h.in ${CMAKE_SOURCE_DIR}/include/GpgFrontend.h @ONLY)
|
||||
|
||||
@ -27,6 +33,8 @@ file(COPY ${CMAKE_SOURCE_DIR}/resource/css DESTINATION ${EXECUTABLE_OUTPUT_PATH}
|
||||
file(COPY ${CMAKE_SOURCE_DIR}/resource/icons DESTINATION ${EXECUTABLE_OUTPUT_PATH}/ FOLLOW_SYMLINK_CHAIN)
|
||||
file(COPY ${CMAKE_SOURCE_DIR}/resource/help DESTINATION ${EXECUTABLE_OUTPUT_PATH}/ FOLLOW_SYMLINK_CHAIN)
|
||||
file(COPY ${CMAKE_SOURCE_DIR}/resource/conf DESTINATION ${EXECUTABLE_OUTPUT_PATH}/ FOLLOW_SYMLINK_CHAIN)
|
||||
|
||||
# Copy Utils Files
|
||||
if(MINGW)
|
||||
message(STATUS "Copying Dependent DLL For Windows Runtime Env")
|
||||
file(COPY ${CMAKE_SOURCE_DIR}/resource/utils/lib/ DESTINATION ${EXECUTABLE_OUTPUT_PATH}/ FOLLOW_SYMLINK_CHAIN)
|
||||
@ -51,14 +59,14 @@ endif()
|
||||
IF (MINGW)
|
||||
message(STATUS "Link Application Static Library For MINGW")
|
||||
target_link_libraries(gpgfrontend
|
||||
qtui gpg
|
||||
gpgfrontend-ui gpg
|
||||
Qt5::Network Qt5::PrintSupport Qt5::Widgets Qt5::Test Qt5::Core)
|
||||
|
||||
|
||||
else()
|
||||
message(STATUS "Link Application Static Library For UNIX")
|
||||
target_link_libraries(gpgfrontend
|
||||
qtui gpg
|
||||
gpgfrontend-ui gpg
|
||||
Qt5::Network Qt5::PrintSupport Qt5::Widgets Qt5::Test Qt5::Core)
|
||||
endif()
|
||||
|
||||
|
@ -72,7 +72,7 @@ int main(int argc, char *argv[]) {
|
||||
lang = QLocale::system().name();
|
||||
}
|
||||
qDebug() << "Language set" << lang;
|
||||
translator.load( appPath + "/ts/" + "gpg4usb_" + lang);
|
||||
translator.load( appPath + "/ts/" + "gpgfrontend_" + lang);
|
||||
qDebug() << "Translator" << translator.filePath();
|
||||
QApplication::installTranslator(&translator);
|
||||
|
||||
|
@ -1,9 +1,11 @@
|
||||
aux_source_directory(. QTUI_SOURCE)
|
||||
aux_source_directory(./keypair_details QTUI_SOURCE)
|
||||
aux_source_directory(./widgets QTUI_SOURCE)
|
||||
aux_source_directory(./keygen QTUI_SOURCE)
|
||||
aux_source_directory(. UI_SOURCE)
|
||||
aux_source_directory(./keypair_details UI_SOURCE)
|
||||
aux_source_directory(./widgets UI_SOURCE)
|
||||
aux_source_directory(./keygen UI_SOURCE)
|
||||
|
||||
add_library(qtui STATIC ${QTUI_SOURCE} ${QTUI_KEYPAIR_DETAILS_SOURCE})
|
||||
add_library(gpgfrontend-ui STATIC ${UI_SOURCE})
|
||||
|
||||
target_link_libraries(qtui
|
||||
Qt5::Network Qt5::PrintSupport Qt5::Widgets Qt5::Test Qt5::Core)
|
||||
target_link_libraries(gpgfrontend-ui
|
||||
Qt5::Network Qt5::PrintSupport Qt5::Widgets Qt5::Test Qt5::Core)
|
||||
|
||||
message(STATUS "UI SOURCE ${UI_SOURCE}")
|
@ -99,7 +99,7 @@ QHash<QString, QString> SettingsDialog::listLanguages() {
|
||||
QString appPath = qApp->applicationDirPath();
|
||||
QDir qmDir = QDir(appPath + "/ts/");
|
||||
QStringList fileNames =
|
||||
qmDir.entryList(QStringList("gpg4usb_*.qm"));
|
||||
qmDir.entryList(QStringList("gpgfrontend_*.qm"));
|
||||
|
||||
for (int i = 0; i < fileNames.size(); ++i) {
|
||||
QString locale = fileNames[i];
|
||||
@ -112,7 +112,7 @@ QHash<QString, QString> SettingsDialog::listLanguages() {
|
||||
QString language = QLocale::languageToString(qloc.language()) +" (" + locale + ")"; //+ " (" + QLocale::languageToString(qloc.language()) + ")";
|
||||
#else
|
||||
QString language = qloc.nativeLanguageName() + " (" + locale +
|
||||
")"; //+ " (" + QLocale::languageToString(qloc.language()) + ")";
|
||||
")";
|
||||
#endif
|
||||
languages.insert(locale, language);
|
||||
}
|
||||
@ -167,7 +167,7 @@ GeneralTab::GeneralTab(GpgME::GpgContext *ctx, QWidget *parent)
|
||||
|
||||
langBoxLayout->addWidget(langSelectBox);
|
||||
langBoxLayout->addWidget(
|
||||
new QLabel(tr("<b>NOTE: </b> Gpg4usb will restart automatically if you change the language!")));
|
||||
new QLabel(tr("<b>NOTE: </b> GpgFrontend will restart automatically if you change the language!")));
|
||||
langBox->setLayout(langBoxLayout);
|
||||
connect(langSelectBox, SIGNAL(currentIndexChanged(int)), this, SLOT(slotLanguageChanged()));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user