Errors displayed were sometimes not the actual one

This commit is contained in:
Pierre Pronchery 2011-02-19 15:23:15 +00:00
parent 9a851ee8cc
commit 42a6345771
5 changed files with 83 additions and 81 deletions

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Browser 0.1.4\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-02-19 16:18+0100\n"
"POT-Creation-Date: 2011-02-19 16:22+0100\n"
"PO-Revision-Date: 2010-03-29 23:28+0200\n"
"Last-Translator: Pierre Pronchery <khorben@defora.org>\n"
"Language-Team: English\n"
@ -188,7 +188,7 @@ msgstr ""
#: ../src/browser.c:592 ../src/browser.c:597 ../src/copy.c:668
#: ../src/copy.c:672 ../src/delete.c:421 ../src/delete.c:426
#: ../src/desktop.c:1435 ../src/desktop.c:1440 ../src/move.c:452
#: ../src/move.c:456 ../src/properties.c:116 ../src/properties.c:120
#: ../src/move.c:456 ../src/properties.c:118 ../src/properties.c:122
#: ../src/view.c:366 ../src/view.c:371
msgid "Error"
msgstr "Fehler"
@ -360,7 +360,7 @@ msgstr ""
msgid "Omitting directory"
msgstr ""
#: ../src/copy.c:584 ../src/properties.c:478
#: ../src/copy.c:584 ../src/properties.c:480
msgid "kB"
msgstr ""
@ -368,7 +368,7 @@ msgstr ""
msgid "0.0 kB/s"
msgstr ""
#: ../src/copy.c:609 ../src/properties.c:480
#: ../src/copy.c:609 ../src/properties.c:482
msgid "MB"
msgstr ""
@ -542,67 +542,67 @@ msgid ""
" -a\taction to call (default: \"open\")\n"
msgstr ""
#: ../src/properties.c:235
#: ../src/properties.c:237
msgid "Properties of "
msgstr "Eigenschaften von "
#: ../src/properties.c:260
#: ../src/properties.c:262
msgid "Size:"
msgstr "Größe:"
#: ../src/properties.c:266 ../src/properties.c:316
#: ../src/properties.c:268 ../src/properties.c:318
msgid "Owner:"
msgstr ""
#: ../src/properties.c:272 ../src/properties.c:319
#: ../src/properties.c:274 ../src/properties.c:321
msgid "Group:"
msgstr "Gruppe:"
#: ../src/properties.c:280
#: ../src/properties.c:282
msgid "Accessed:"
msgstr ""
#: ../src/properties.c:286
#: ../src/properties.c:288
msgid "Modified:"
msgstr ""
#: ../src/properties.c:292
#: ../src/properties.c:294
msgid "Changed:"
msgstr ""
#: ../src/properties.c:298
#: ../src/properties.c:300
msgid "Permissions:"
msgstr ""
#: ../src/properties.c:322
#: ../src/properties.c:324
msgid "Others:"
msgstr ""
#: ../src/properties.c:441
#: ../src/properties.c:443
msgid "read"
msgstr ""
#: ../src/properties.c:445
#: ../src/properties.c:447
msgid "write"
msgstr ""
#: ../src/properties.c:449
#: ../src/properties.c:451
msgid "execute"
msgstr ""
#: ../src/properties.c:472
#: ../src/properties.c:474
msgid "bytes"
msgstr ""
#: ../src/properties.c:482
#: ../src/properties.c:484
msgid "GB"
msgstr ""
#: ../src/properties.c:486
#: ../src/properties.c:488
msgid "TB"
msgstr ""
#: ../src/properties.c:558
#: ../src/properties.c:560
msgid "Usage: properties file...\n"
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Browser 0.1.4\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-02-19 16:18+0100\n"
"POT-Creation-Date: 2011-02-19 16:22+0100\n"
"PO-Revision-Date: 2010-03-30 01:04+0200\n"
"Last-Translator: Pierre Pronchery <khorben@defora.org>\n"
"Language-Team: Spanish\n"
@ -188,7 +188,7 @@ msgstr ""
#: ../src/browser.c:592 ../src/browser.c:597 ../src/copy.c:668
#: ../src/copy.c:672 ../src/delete.c:421 ../src/delete.c:426
#: ../src/desktop.c:1435 ../src/desktop.c:1440 ../src/move.c:452
#: ../src/move.c:456 ../src/properties.c:116 ../src/properties.c:120
#: ../src/move.c:456 ../src/properties.c:118 ../src/properties.c:122
#: ../src/view.c:366 ../src/view.c:371
msgid "Error"
msgstr ""
@ -360,7 +360,7 @@ msgstr ""
msgid "Omitting directory"
msgstr ""
#: ../src/copy.c:584 ../src/properties.c:478
#: ../src/copy.c:584 ../src/properties.c:480
msgid "kB"
msgstr ""
@ -368,7 +368,7 @@ msgstr ""
msgid "0.0 kB/s"
msgstr ""
#: ../src/copy.c:609 ../src/properties.c:480
#: ../src/copy.c:609 ../src/properties.c:482
msgid "MB"
msgstr ""
@ -542,67 +542,67 @@ msgid ""
" -a\taction to call (default: \"open\")\n"
msgstr ""
#: ../src/properties.c:235
#: ../src/properties.c:237
msgid "Properties of "
msgstr "Propriedades con "
#: ../src/properties.c:260
#: ../src/properties.c:262
msgid "Size:"
msgstr ""
#: ../src/properties.c:266 ../src/properties.c:316
#: ../src/properties.c:268 ../src/properties.c:318
msgid "Owner:"
msgstr ""
#: ../src/properties.c:272 ../src/properties.c:319
#: ../src/properties.c:274 ../src/properties.c:321
msgid "Group:"
msgstr ""
#: ../src/properties.c:280
#: ../src/properties.c:282
msgid "Accessed:"
msgstr ""
#: ../src/properties.c:286
#: ../src/properties.c:288
msgid "Modified:"
msgstr ""
#: ../src/properties.c:292
#: ../src/properties.c:294
msgid "Changed:"
msgstr ""
#: ../src/properties.c:298
#: ../src/properties.c:300
msgid "Permissions:"
msgstr ""
#: ../src/properties.c:322
#: ../src/properties.c:324
msgid "Others:"
msgstr ""
#: ../src/properties.c:441
#: ../src/properties.c:443
msgid "read"
msgstr ""
#: ../src/properties.c:445
#: ../src/properties.c:447
msgid "write"
msgstr ""
#: ../src/properties.c:449
#: ../src/properties.c:451
msgid "execute"
msgstr ""
#: ../src/properties.c:472
#: ../src/properties.c:474
msgid "bytes"
msgstr ""
#: ../src/properties.c:482
#: ../src/properties.c:484
msgid "GB"
msgstr ""
#: ../src/properties.c:486
#: ../src/properties.c:488
msgid "TB"
msgstr ""
#: ../src/properties.c:558
#: ../src/properties.c:560
msgid "Usage: properties file...\n"
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Browser 0.1.4\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-02-19 16:18+0100\n"
"POT-Creation-Date: 2011-02-19 16:22+0100\n"
"PO-Revision-Date: 2010-03-29 23:28+0200\n"
"Last-Translator: Pierre Pronchery <khorben@defora.org>\n"
"Language-Team: French\n"
@ -188,7 +188,7 @@ msgstr " Chemin: "
#: ../src/browser.c:592 ../src/browser.c:597 ../src/copy.c:668
#: ../src/copy.c:672 ../src/delete.c:421 ../src/delete.c:426
#: ../src/desktop.c:1435 ../src/desktop.c:1440 ../src/move.c:452
#: ../src/move.c:456 ../src/properties.c:116 ../src/properties.c:120
#: ../src/move.c:456 ../src/properties.c:118 ../src/properties.c:122
#: ../src/view.c:366 ../src/view.c:371
msgid "Error"
msgstr "Erreur"
@ -360,7 +360,7 @@ msgstr "Fichier %u sur %u"
msgid "Omitting directory"
msgstr "Omission du dossier"
#: ../src/copy.c:584 ../src/properties.c:478
#: ../src/copy.c:584 ../src/properties.c:480
msgid "kB"
msgstr "Kio"
@ -368,7 +368,7 @@ msgstr "Kio"
msgid "0.0 kB/s"
msgstr "0.0 Kio/s"
#: ../src/copy.c:609 ../src/properties.c:480
#: ../src/copy.c:609 ../src/properties.c:482
msgid "MB"
msgstr "Mio"
@ -576,67 +576,67 @@ msgstr ""
" -m\tType MIME à forcer (défaut: auto-détecté)\n"
" -a\taction à appeler (défaut: \"open\")\n"
#: ../src/properties.c:235
#: ../src/properties.c:237
msgid "Properties of "
msgstr "Propriétés de "
#: ../src/properties.c:260
#: ../src/properties.c:262
msgid "Size:"
msgstr "Taille:"
#: ../src/properties.c:266 ../src/properties.c:316
#: ../src/properties.c:268 ../src/properties.c:318
msgid "Owner:"
msgstr "Propriétaire:"
#: ../src/properties.c:272 ../src/properties.c:319
#: ../src/properties.c:274 ../src/properties.c:321
msgid "Group:"
msgstr "Groupe:"
#: ../src/properties.c:280
#: ../src/properties.c:282
msgid "Accessed:"
msgstr "Accédé:"
#: ../src/properties.c:286
#: ../src/properties.c:288
msgid "Modified:"
msgstr "Modifié:"
#: ../src/properties.c:292
#: ../src/properties.c:294
msgid "Changed:"
msgstr "Changé:"
#: ../src/properties.c:298
#: ../src/properties.c:300
msgid "Permissions:"
msgstr "Permissions:"
#: ../src/properties.c:322
#: ../src/properties.c:324
msgid "Others:"
msgstr "Autres:"
#: ../src/properties.c:441
#: ../src/properties.c:443
msgid "read"
msgstr "lecture"
#: ../src/properties.c:445
#: ../src/properties.c:447
msgid "write"
msgstr "écriture"
#: ../src/properties.c:449
#: ../src/properties.c:451
msgid "execute"
msgstr "exécution"
#: ../src/properties.c:472
#: ../src/properties.c:474
msgid "bytes"
msgstr "octets"
#: ../src/properties.c:482
#: ../src/properties.c:484
msgid "GB"
msgstr "Gio"
#: ../src/properties.c:486
#: ../src/properties.c:488
msgid "TB"
msgstr "Tio"
#: ../src/properties.c:558
#: ../src/properties.c:560
msgid "Usage: properties file...\n"
msgstr "Usage: properties fichier...\n"

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Browser 0.1.4\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-02-19 16:18+0100\n"
"POT-Creation-Date: 2011-02-19 16:22+0100\n"
"PO-Revision-Date: 2010-04-07 23:18+0200\n"
"Last-Translator: Pierre Pronchery <khorben@defora.org>\n"
"Language-Team: Italian\n"
@ -188,7 +188,7 @@ msgstr ""
#: ../src/browser.c:592 ../src/browser.c:597 ../src/copy.c:668
#: ../src/copy.c:672 ../src/delete.c:421 ../src/delete.c:426
#: ../src/desktop.c:1435 ../src/desktop.c:1440 ../src/move.c:452
#: ../src/move.c:456 ../src/properties.c:116 ../src/properties.c:120
#: ../src/move.c:456 ../src/properties.c:118 ../src/properties.c:122
#: ../src/view.c:366 ../src/view.c:371
msgid "Error"
msgstr ""
@ -360,7 +360,7 @@ msgstr ""
msgid "Omitting directory"
msgstr ""
#: ../src/copy.c:584 ../src/properties.c:478
#: ../src/copy.c:584 ../src/properties.c:480
msgid "kB"
msgstr ""
@ -368,7 +368,7 @@ msgstr ""
msgid "0.0 kB/s"
msgstr ""
#: ../src/copy.c:609 ../src/properties.c:480
#: ../src/copy.c:609 ../src/properties.c:482
msgid "MB"
msgstr ""
@ -542,67 +542,67 @@ msgid ""
" -a\taction to call (default: \"open\")\n"
msgstr ""
#: ../src/properties.c:235
#: ../src/properties.c:237
msgid "Properties of "
msgstr ""
#: ../src/properties.c:260
#: ../src/properties.c:262
msgid "Size:"
msgstr ""
#: ../src/properties.c:266 ../src/properties.c:316
#: ../src/properties.c:268 ../src/properties.c:318
msgid "Owner:"
msgstr ""
#: ../src/properties.c:272 ../src/properties.c:319
#: ../src/properties.c:274 ../src/properties.c:321
msgid "Group:"
msgstr ""
#: ../src/properties.c:280
#: ../src/properties.c:282
msgid "Accessed:"
msgstr ""
#: ../src/properties.c:286
#: ../src/properties.c:288
msgid "Modified:"
msgstr ""
#: ../src/properties.c:292
#: ../src/properties.c:294
msgid "Changed:"
msgstr ""
#: ../src/properties.c:298
#: ../src/properties.c:300
msgid "Permissions:"
msgstr ""
#: ../src/properties.c:322
#: ../src/properties.c:324
msgid "Others:"
msgstr ""
#: ../src/properties.c:441
#: ../src/properties.c:443
msgid "read"
msgstr ""
#: ../src/properties.c:445
#: ../src/properties.c:447
msgid "write"
msgstr ""
#: ../src/properties.c:449
#: ../src/properties.c:451
msgid "execute"
msgstr ""
#: ../src/properties.c:472
#: ../src/properties.c:474
msgid "bytes"
msgstr ""
#: ../src/properties.c:482
#: ../src/properties.c:484
msgid "GB"
msgstr ""
#: ../src/properties.c:486
#: ../src/properties.c:488
msgid "TB"
msgstr ""
#: ../src/properties.c:558
#: ../src/properties.c:560
msgid "Usage: properties file...\n"
msgstr ""

View File

@ -108,7 +108,9 @@ static int _properties_error(Properties * properties, char const * message,
int ret)
{
GtkWidget * dialog;
char const * error;
error = strerror(errno);
dialog = gtk_message_dialog_new((properties != NULL)
? GTK_WINDOW(properties->window) : NULL, 0,
GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE,
@ -116,7 +118,7 @@ static int _properties_error(Properties * properties, char const * message,
"%s", _("Error"));
gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog),
#endif
"%s: %s", message, strerror(errno));
"%s: %s", message, error);
gtk_window_set_title(GTK_WINDOW(dialog), _("Error"));
if(properties != NULL)
gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(