From 42a63457715ba408a18a8d0fb406ba1741297c42 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sat, 19 Feb 2011 15:23:15 +0000 Subject: [PATCH] Errors displayed were sometimes not the actual one --- po/de.po | 40 ++++++++++++++++++++-------------------- po/es.po | 40 ++++++++++++++++++++-------------------- po/fr.po | 40 ++++++++++++++++++++-------------------- po/it.po | 40 ++++++++++++++++++++-------------------- src/properties.c | 4 +++- 5 files changed, 83 insertions(+), 81 deletions(-) diff --git a/po/de.po b/po/de.po index 192afc4..0380567 100644 --- a/po/de.po +++ b/po/de.po @@ -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 \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 "" diff --git a/po/es.po b/po/es.po index c430030..f2f82c2 100644 --- a/po/es.po +++ b/po/es.po @@ -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 \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 "" diff --git a/po/fr.po b/po/fr.po index 09bf0d8..458038a 100644 --- a/po/fr.po +++ b/po/fr.po @@ -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 \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" diff --git a/po/it.po b/po/it.po index 77eeb1f..668455e 100644 --- a/po/it.po +++ b/po/it.po @@ -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 \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 "" diff --git a/src/properties.c b/src/properties.c index 759af37..2dac700 100644 --- a/src/properties.c +++ b/src/properties.c @@ -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(