Added key open mode to filechooser and some minor fixes

master
Thomas Hooge 4 years ago
parent 76d8f5f147
commit ce13620f2c
  1. 2
      .gitignore
  2. 18
      lib/GUI/HELPERS.pm
  3. 5
      po/de.po

2
.gitignore vendored

@ -0,0 +1,2 @@
*~
*.mo

@ -293,9 +293,14 @@ sub set_cursor {
sub browse_file {
my($title, $entry, $mode) = @_;
my($file_chooser, $filename, $filter);
my($file_chooser, $file_chooser_mode, $filename, $filter);
$file_chooser = Gtk2::FileChooserDialog->new ($title, undef, $mode,
if($mode eq 'key') {
$file_chooser_mode = 'open';
} else {
$file_chooser_mode = $mode;
}
$file_chooser = Gtk2::FileChooserDialog->new ($title, undef, $file_chooser_mode,
'gtk-cancel' => 'cancel',
'gtk-ok' => 'ok');
@ -308,7 +313,14 @@ sub browse_file {
$filter->add_pattern("*.der");
$filter->add_pattern("*.req");
$file_chooser->add_filter($filter);
} elsif($mode eq 'key') {
$filter = Gtk2::FileFilter->new();
$filter->set_name(_("Key Files (*.pem, *.key)"));
$filter->add_pattern("*.pem");
$filter->add_pattern("*.key");
$file_chooser->add_filter($filter);
}
if($mode eq 'open' || $mode eq 'key') {
$filter = Gtk2::FileFilter->new();
$filter->set_name(_("All Files (*.*)"));
$filter->add_pattern("*");

@ -290,7 +290,7 @@ msgstr "Fehler beim Konvertieren des Zertifikats"
#: ../lib/OpenSSL.pm:662 ../lib/OpenSSL.pm:679 ../lib/OpenSSL.pm:720
msgid "Error reading fingerprint from Certificate"
msgstr "Fehler beim Lesen des Fingerbdrucks des Zertifikats"
msgstr "Fehler beim Lesen des Fingerabdrucks des Zertifikats"
#: ../lib/OpenSSL.pm:738
msgid "Error reading subject from Certificate"
@ -527,7 +527,7 @@ msgstr " Aktuelle CA: %s - Anforderungen"
#: ../lib/GUI.pm:456
msgid "Exit TinyCA"
msgstr "_TinyCA beenden"
msgstr "TinyCA beenden"
#: ../lib/GUI.pm:460 ../lib/GUI.pm:1178
msgid "Open CA"
@ -1903,7 +1903,6 @@ msgid "Fingerprint (SHA384)"
msgstr "Fingerabdruck (SHA384)"
#: ../lib/GUI/WORDS.pm:75
#, fuzzy
msgid "Fingerprint (SHA512)"
msgstr "Fingerabdruck (SHA512)"