Skip to content

Commit

Permalink
perf: search signing-capable keys only in secret key list
Browse files Browse the repository at this point in the history
This commit slightly improves the performance of listing keys in the selection dialog for signing processes.
  • Loading branch information
konstantintutsch committed Nov 27, 2024
1 parent 47b2499 commit 25eab87
Show file tree
Hide file tree
Showing 13 changed files with 295 additions and 298 deletions.
46 changes: 23 additions & 23 deletions po/bg.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: com.konstantintutsch.Lock\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-11-25 20:16+0100\n"
"POT-Creation-Date: 2024-11-27 20:46+0100\n"
"PO-Revision-Date: 2024-11-23 17:35+0000\n"
"Last-Translator: Anonymous <noreply@weblate.org>\n"
"Language-Team: Bulgarian <https://hosted.weblate.org/projects/Lock/"
Expand Down Expand Up @@ -173,14 +173,14 @@ msgstr "Премахването е неуспешно"
msgid "Key removed"
msgstr "Ключът е премахнат"

#: src/cryptography.c:42 src/cryptography.c:76 src/cryptography.c:120
#: src/cryptography.c:176 src/cryptography.c:290 src/cryptography.c:401
#: src/cryptography.c:42 src/cryptography.c:75 src/cryptography.c:118
#: src/cryptography.c:172 src/cryptography.c:291 src/cryptography.c:402
#, fuzzy
msgid "Failed to create new GPGME context"
msgstr "създадане на нов GPGME контекст"

#: src/cryptography.c:46 src/cryptography.c:80 src/cryptography.c:124
#: src/cryptography.c:180 src/cryptography.c:294 src/cryptography.c:405
#: src/cryptography.c:46 src/cryptography.c:79 src/cryptography.c:122
#: src/cryptography.c:176 src/cryptography.c:295 src/cryptography.c:406
#, fuzzy
msgid "Failed to set protocol of GPGME context to OpenPGP"
msgstr "задаване на протокол на GPGME контекста на OpenPGP"
Expand All @@ -190,37 +190,37 @@ msgstr "задаване на протокол на GPGME контекста н
msgid "Failed to obtain key by fingerprint"
msgstr "намиране на ключ, съответстващ на идентификатора на потребителя"

#: src/cryptography.c:94
#: src/cryptography.c:93
#, fuzzy
msgid "Failed to find key matching User ID"
msgstr "намиране на ключ, съответстващ на идентификатора на потребителя"

#: src/cryptography.c:135 src/cryptography.c:143
#: src/cryptography.c:133 src/cryptography.c:141
#, fuzzy
msgid "Failed to generate new GPG key for signing"
msgstr "генериране на нов GPG ключ за подписване"

#: src/cryptography.c:149
#: src/cryptography.c:147
#, fuzzy
msgid "Failed to delete unfinished, generated key"
msgstr "изтриване на незавършен, генериран ECC ключ"

#: src/cryptography.c:186
#: src/cryptography.c:182
#, fuzzy
msgid "Failed to load GPGME key data from file"
msgstr "зареждане на данни за GPGME ключа от файл"

#: src/cryptography.c:191
#: src/cryptography.c:188
#, fuzzy
msgid "Failed to import GPG key from file"
msgstr "внасяне на GPG ключ от файл"

#: src/cryptography.c:201
#: src/cryptography.c:199
#, fuzzy
msgid "Failed to create GPGME key data in memory"
msgstr "създаване на данни за GPGME ключ в паметта"

#: src/cryptography.c:206
#: src/cryptography.c:205
#, fuzzy
msgid "Failed to export GPG key(s) to file"
msgstr "внасяне на GPG ключ от файл"
Expand All @@ -240,12 +240,12 @@ msgstr "премахване на ключ"
msgid "Failed to remove GPG key"
msgstr "премахване на GPG ключ"

#: src/cryptography.c:299 src/cryptography.c:410
#: src/cryptography.c:300 src/cryptography.c:411
#, fuzzy
msgid "Failed to set pinentry mode of GPGME context to ask"
msgstr "задаване на режим „pinentry“ на GPGME контекста за запитване"

#: src/cryptography.c:306
#: src/cryptography.c:307
#, fuzzy
msgid "Failed to create new GPGME input data from string"
msgstr "създаване на нови подписани GPGME данни от низ"
Expand All @@ -270,22 +270,22 @@ msgstr "дешифриране на GPGME данни от паметта"
msgid "Failed to add signing key to GPGME context"
msgstr "създадане на нов GPGME контекст"

#: src/cryptography.c:340
#: src/cryptography.c:342
#, fuzzy
msgid "Failed to sign GPGME data from memory"
msgstr "подписване на GPGME данни от паметта"

#: src/cryptography.c:347
#: src/cryptography.c:348
#, fuzzy
msgid "Failed to verify GPGME data from memory"
msgstr "потвърждаване на GPGME данни от паметта"

#: src/cryptography.c:389
#: src/cryptography.c:390
#, c-format
msgid "Removed %s to prepare overwriting"
msgstr "%s е премахнато, за да се подготви презаписването"

#: src/cryptography.c:416
#: src/cryptography.c:417
#, fuzzy
msgid "Failed to create new GPGME input data from file"
msgstr "създаване на нови подписани GPGME данни от низ"
Expand All @@ -300,27 +300,27 @@ msgstr "задаване на местоположението до файла
msgid "Failed to set file name of GPGME output data"
msgstr "задаване на местоположението до файла с подписаните GPGME данни"

#: src/cryptography.c:450
#: src/cryptography.c:449
#, fuzzy
msgid "Failed to encrypt GPGME data from file"
msgstr "шифриране на GPGME данни от файл"

#: src/cryptography.c:457
#: src/cryptography.c:454
#, fuzzy
msgid "Failed to decrypt GPGME data from file"
msgstr "дешифриране на GPGME данни от файл"

#: src/cryptography.c:466
#: src/cryptography.c:461
#, fuzzy
msgid "Failed to sign GPGME data from file"
msgstr "подписване на GPGME данни от файл"

#: src/cryptography.c:473
#: src/cryptography.c:467
#, fuzzy
msgid "Failed to verify GPGME data from file"
msgstr "потвърждаване на GPGME данни от файл"

#: src/cryptography.c:490
#: src/cryptography.c:483
#, c-format
msgid "Failed to open output file: %s"
msgstr "Изходният файл не може да бъде отворен: %s"
Expand Down
46 changes: 23 additions & 23 deletions po/com.konstantintutsch.Lock.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: com.konstantintutsch.Lock\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-11-25 20:16+0100\n"
"POT-Creation-Date: 2024-11-27 20:46+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down Expand Up @@ -166,45 +166,45 @@ msgstr ""
msgid "Key removed"
msgstr ""

#: src/cryptography.c:42 src/cryptography.c:76 src/cryptography.c:120
#: src/cryptography.c:176 src/cryptography.c:290 src/cryptography.c:401
#: src/cryptography.c:42 src/cryptography.c:75 src/cryptography.c:118
#: src/cryptography.c:172 src/cryptography.c:291 src/cryptography.c:402
msgid "Failed to create new GPGME context"
msgstr ""

#: src/cryptography.c:46 src/cryptography.c:80 src/cryptography.c:124
#: src/cryptography.c:180 src/cryptography.c:294 src/cryptography.c:405
#: src/cryptography.c:46 src/cryptography.c:79 src/cryptography.c:122
#: src/cryptography.c:176 src/cryptography.c:295 src/cryptography.c:406
msgid "Failed to set protocol of GPGME context to OpenPGP"
msgstr ""

#: src/cryptography.c:51
msgid "Failed to obtain key by fingerprint"
msgstr ""

#: src/cryptography.c:94
#: src/cryptography.c:93
msgid "Failed to find key matching User ID"
msgstr ""

#: src/cryptography.c:135 src/cryptography.c:143
#: src/cryptography.c:133 src/cryptography.c:141
msgid "Failed to generate new GPG key for signing"
msgstr ""

#: src/cryptography.c:149
#: src/cryptography.c:147
msgid "Failed to delete unfinished, generated key"
msgstr ""

#: src/cryptography.c:186
#: src/cryptography.c:182
msgid "Failed to load GPGME key data from file"
msgstr ""

#: src/cryptography.c:191
#: src/cryptography.c:188
msgid "Failed to import GPG key from file"
msgstr ""

#: src/cryptography.c:201
#: src/cryptography.c:199
msgid "Failed to create GPGME key data in memory"
msgstr ""

#: src/cryptography.c:206
#: src/cryptography.c:205
msgid "Failed to export GPG key(s) to file"
msgstr ""

Expand All @@ -221,11 +221,11 @@ msgstr ""
msgid "Failed to remove GPG key"
msgstr ""

#: src/cryptography.c:299 src/cryptography.c:410
#: src/cryptography.c:300 src/cryptography.c:411
msgid "Failed to set pinentry mode of GPGME context to ask"
msgstr ""

#: src/cryptography.c:306
#: src/cryptography.c:307
msgid "Failed to create new GPGME input data from string"
msgstr ""

Expand All @@ -245,20 +245,20 @@ msgstr ""
msgid "Failed to add signing key to GPGME context"
msgstr ""

#: src/cryptography.c:340
#: src/cryptography.c:342
msgid "Failed to sign GPGME data from memory"
msgstr ""

#: src/cryptography.c:347
#: src/cryptography.c:348
msgid "Failed to verify GPGME data from memory"
msgstr ""

#: src/cryptography.c:389
#: src/cryptography.c:390
#, c-format
msgid "Removed %s to prepare overwriting"
msgstr ""

#: src/cryptography.c:416
#: src/cryptography.c:417
msgid "Failed to create new GPGME input data from file"
msgstr ""

Expand All @@ -270,23 +270,23 @@ msgstr ""
msgid "Failed to set file name of GPGME output data"
msgstr ""

#: src/cryptography.c:450
#: src/cryptography.c:449
msgid "Failed to encrypt GPGME data from file"
msgstr ""

#: src/cryptography.c:457
#: src/cryptography.c:454
msgid "Failed to decrypt GPGME data from file"
msgstr ""

#: src/cryptography.c:466
#: src/cryptography.c:461
msgid "Failed to sign GPGME data from file"
msgstr ""

#: src/cryptography.c:473
#: src/cryptography.c:467
msgid "Failed to verify GPGME data from file"
msgstr ""

#: src/cryptography.c:490
#: src/cryptography.c:483
#, c-format
msgid "Failed to open output file: %s"
msgstr ""
Expand Down
Loading

0 comments on commit 25eab87

Please sign in to comment.