Code cleanup

This commit is contained in:
Pierre Pronchery 2010-11-15 02:43:50 +00:00
parent 11edaecd60
commit 1eb3526b54
2 changed files with 40 additions and 33 deletions

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: XMLEditor 0.0.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2010-11-14 00:19+0100\n"
"POT-Creation-Date: 2010-11-15 03:41+0100\n"
"PO-Revision-Date: 2010-11-14 00:20+0100\n"
"Last-Translator: Pierre Pronchery <khorben@defora.org>\n"
"Language-Team: French\n"
@ -20,106 +20,113 @@ msgstr ""
msgid "Usage: xmleditor [file]\n"
msgstr "Usage: xmleditor [fichier]\n"
#: ../src/xmleditor.c:75
#: ../src/xmleditor.c:82
msgid "_New"
msgstr "_Nouveau"
#: ../src/xmleditor.c:77
#: ../src/xmleditor.c:84
msgid "_Open"
msgstr "_Ouvrir"
#: ../src/xmleditor.c:80
#: ../src/xmleditor.c:87
msgid "_Save"
msgstr "_Enregistrer"
#: ../src/xmleditor.c:82
#: ../src/xmleditor.c:89
msgid "_Save as..."
msgstr "Enregistrer _sous..."
#: ../src/xmleditor.c:85
#: ../src/xmleditor.c:92
msgid "_Close"
msgstr "_Fermer"
#: ../src/xmleditor.c:92
#: ../src/xmleditor.c:99
msgid "_Preferences"
msgstr "_Préférences"
#: ../src/xmleditor.c:99
#: ../src/xmleditor.c:106
msgid "_Expand all"
msgstr ""
#: ../src/xmleditor.c:101
#: ../src/xmleditor.c:108
msgid "_Collapse all"
msgstr ""
#: ../src/xmleditor.c:108
#: ../src/xmleditor.c:115
msgid "_About"
msgstr "À _propos"
#: ../src/xmleditor.c:119
#: ../src/xmleditor.c:126
msgid "_File"
msgstr "_Fichier"
#: ../src/xmleditor.c:120
#: ../src/xmleditor.c:127
msgid "_Edit"
msgstr "_Édition"
#: ../src/xmleditor.c:121
#: ../src/xmleditor.c:128
msgid "_View"
msgstr "_Vue"
#: ../src/xmleditor.c:122
#: ../src/xmleditor.c:129
msgid "_Help"
msgstr "_Aide"
#: ../src/xmleditor.c:129
#: ../src/xmleditor.c:136
msgid "New"
msgstr "Nouveau"
#: ../src/xmleditor.c:130
#: ../src/xmleditor.c:137
msgid "Open"
msgstr "Ouvrir"
#: ../src/xmleditor.c:132
#: ../src/xmleditor.c:139
msgid "Save"
msgstr "Enregistrer"
#: ../src/xmleditor.c:133
#: ../src/xmleditor.c:140
msgid "Save as"
msgstr "Enregistrer sous"
#: ../src/xmleditor.c:137
#: ../src/xmleditor.c:144
msgid "Preferences"
msgstr "Préférences"
#: ../src/xmleditor.c:195
#: ../src/xmleditor.c:208
msgid "Name"
msgstr "Nom"
#: ../src/xmleditor.c:216
#: ../src/xmleditor.c:229
msgid "XML editor - "
msgstr "Éditeur XML - "
#: ../src/xmleditor.c:217
#: ../src/xmleditor.c:230
msgid "(Untitled)"
msgstr "(Sans titre)"
#: ../src/xmleditor.c:277 ../src/xmleditor.c:282
#: ../src/xmleditor.c:290 ../src/xmleditor.c:295
msgid "Error"
msgstr "Erreur"
#: ../src/xmleditor.c:370
msgid "Open file..."
msgstr "Ouvrir un fichier..."
#: ../src/xmleditor.c:426 ../src/xmleditor.c:431
#: ../src/xmleditor.c:321 ../src/xmleditor.c:331 ../src/xmleditor.c:468
#: ../src/xmleditor.c:473
msgid "Warning"
msgstr "Avertissement"
#: ../src/xmleditor.c:430
#: ../src/xmleditor.c:325
msgid ""
"There are unsaved changes.\n"
"Are you sure you want to close?"
msgstr ""
#: ../src/xmleditor.c:414
msgid "Open file..."
msgstr "Ouvrir un fichier..."
#: ../src/xmleditor.c:472
msgid "This file already exists. Overwrite?"
msgstr "Ce fichier existe déjà. Écraser?"
#: ../src/xmleditor.c:449
#: ../src/xmleditor.c:491
msgid "Save as..."
msgstr "Enregistrer sous..."

View File

@ -456,7 +456,7 @@ gboolean xmleditor_save_as(XMLEditor * xmleditor, char const * filename)
{
struct stat st;
GtkWidget * dialog;
int ret;
int res;
if(stat(filename, &st) == 0)
{
@ -471,9 +471,9 @@ gboolean xmleditor_save_as(XMLEditor * xmleditor, char const * filename)
#endif
_("This file already exists. Overwrite?"));
gtk_window_set_title(GTK_WINDOW(dialog), _("Warning"));
ret = gtk_dialog_run(GTK_DIALOG(dialog));
res = gtk_dialog_run(GTK_DIALOG(dialog));
gtk_widget_destroy(dialog);
if(ret == GTK_RESPONSE_NO)
if(res == GTK_RESPONSE_NO)
return FALSE;
}
/* FIXME implement */