Code cleanup

This commit is contained in:
Pierre Pronchery 2011-12-05 11:05:46 +00:00
parent 1ef93cf3e5
commit 8aa7b3c1bd
6 changed files with 295 additions and 312 deletions

128
po/de.po
View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Editor 0.1.1\n" "Project-Id-Version: Editor 0.1.1\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-10-25 15:13+0200\n" "POT-Creation-Date: 2011-12-05 06:02-0500\n"
"PO-Revision-Date: 2010-04-07 22:05+0200\n" "PO-Revision-Date: 2010-04-07 22:05+0200\n"
"Last-Translator: Pierre Pronchery <khorben@defora.org>\n" "Last-Translator: Pierre Pronchery <khorben@defora.org>\n"
"Language-Team: German\n" "Language-Team: German\n"
@ -16,236 +16,230 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: ../src/editor.c:91 #: ../src/editor.c:94
msgid "_New" msgid "_New"
msgstr "_Neu" msgstr "_Neu"
#: ../src/editor.c:93 #: ../src/editor.c:96
msgid "_Open" msgid "_Open"
msgstr "_Offnen" msgstr "_Offnen"
#: ../src/editor.c:96 #: ../src/editor.c:99
msgid "_Save" msgid "_Save"
msgstr "" msgstr ""
#: ../src/editor.c:98 #: ../src/editor.c:101
msgid "_Save as..." msgid "_Save as..."
msgstr "" msgstr ""
#: ../src/editor.c:101 #: ../src/editor.c:104
msgid "_Close" msgid "_Close"
msgstr "_Schliessen" msgstr "_Schliessen"
#: ../src/editor.c:108 #: ../src/editor.c:111
msgid "_Undo" msgid "_Undo"
msgstr "" msgstr ""
#: ../src/editor.c:110 #: ../src/editor.c:113
msgid "_Redo" msgid "_Redo"
msgstr "" msgstr ""
#: ../src/editor.c:112 #: ../src/editor.c:115
msgid "_Cut" msgid "_Cut"
msgstr "" msgstr ""
#: ../src/editor.c:114 #: ../src/editor.c:117
msgid "_Copy" msgid "_Copy"
msgstr "" msgstr ""
#: ../src/editor.c:116 #: ../src/editor.c:119
msgid "_Paste" msgid "_Paste"
msgstr "" msgstr ""
#: ../src/editor.c:119 #: ../src/editor.c:122
msgid "Select _all" msgid "Select _all"
msgstr "" msgstr ""
#: ../src/editor.c:126 #: ../src/editor.c:129
msgid "_Unselect all" msgid "_Unselect all"
msgstr "" msgstr ""
#: ../src/editor.c:128 #: ../src/editor.c:131
msgid "_Find" msgid "_Find"
msgstr "" msgstr ""
#: ../src/editor.c:131 #: ../src/editor.c:134
msgid "_Preferences" msgid "_Preferences"
msgstr "_Einstellungen" msgstr "_Einstellungen"
#: ../src/editor.c:138 #: ../src/editor.c:141
msgid "_File..." msgid "_File..."
msgstr "_Datei..." msgstr "_Datei..."
#: ../src/editor.c:144 #: ../src/editor.c:147
msgid "_About" msgid "_About"
msgstr "_Info" msgstr "_Info"
#: ../src/editor.c:155 #: ../src/editor.c:158
msgid "_File" msgid "_File"
msgstr "_Datei" msgstr "_Datei"
#: ../src/editor.c:156 #: ../src/editor.c:159
msgid "_Edit" msgid "_Edit"
msgstr "_Bearbeitung" msgstr "_Bearbeitung"
#: ../src/editor.c:157 #: ../src/editor.c:160
msgid "_Insert" msgid "_Insert"
msgstr "" msgstr ""
#: ../src/editor.c:158 #: ../src/editor.c:161
msgid "_Help" msgid "_Help"
msgstr "_Hilfe" msgstr "_Hilfe"
#: ../src/editor.c:165 #: ../src/editor.c:168
msgid "New" msgid "New"
msgstr "" msgstr ""
#: ../src/editor.c:166 #: ../src/editor.c:169
msgid "Open" msgid "Open"
msgstr "" msgstr ""
#: ../src/editor.c:168 #: ../src/editor.c:171
msgid "Save" msgid "Save"
msgstr "" msgstr ""
#: ../src/editor.c:169 #: ../src/editor.c:172
msgid "Save as" msgid "Save as"
msgstr "" msgstr ""
#: ../src/editor.c:172 #: ../src/editor.c:175
msgid "Cut" msgid "Cut"
msgstr "" msgstr ""
#: ../src/editor.c:173 #: ../src/editor.c:176
msgid "Copy" msgid "Copy"
msgstr "" msgstr ""
#: ../src/editor.c:174 #: ../src/editor.c:177
msgid "Paste" msgid "Paste"
msgstr "" msgstr ""
#: ../src/editor.c:177 #: ../src/editor.c:180
msgid "Preferences" msgid "Preferences"
msgstr "Einstellungen" msgstr "Einstellungen"
#: ../src/editor.c:189 #: ../src/editor.c:192
msgid "none" msgid "none"
msgstr "" msgstr ""
#: ../src/editor.c:190 #: ../src/editor.c:193
msgid "characters" msgid "characters"
msgstr "" msgstr ""
#: ../src/editor.c:191 #: ../src/editor.c:194
msgid "words" msgid "words"
msgstr "" msgstr ""
#: ../src/editor.c:192 #: ../src/editor.c:195
msgid "words then characters" msgid "words then characters"
msgstr "" msgstr ""
#: ../src/editor.c:275 #: ../src/editor.c:278
msgid "Text editor - " msgid "Text editor - "
msgstr "" msgstr ""
#: ../src/editor.c:276 #: ../src/editor.c:279
msgid "(Untitled)" msgid "(Untitled)"
msgstr "" msgstr ""
#: ../src/editor.c:389 #: ../src/editor.c:392
msgid "translator-credits" msgid "translator-credits"
msgstr "Pierre Pronchery <khorben@defora.org>" msgstr "Pierre Pronchery <khorben@defora.org>"
#: ../src/editor.c:425 #: ../src/editor.c:428
msgid "Could not save configuration" msgid "Could not save configuration"
msgstr "" msgstr ""
#: ../src/editor.c:439 ../src/editor.c:444 #: ../src/editor.c:445 ../src/editor.c:454 ../src/editor.c:884
#: ../src/editor.c:889
msgid "Question"
msgstr ""
#: ../src/editor.c:470 ../src/editor.c:475
msgid "Error" msgid "Error"
msgstr "Fehler" msgstr "Fehler"
#: ../src/editor.c:471 ../src/editor.c:481 ../src/editor.c:709 #: ../src/editor.c:497 ../src/editor.c:721
#: ../src/editor.c:723 ../src/editor.c:876 ../src/editor.c:881
msgid "Warning"
msgstr "Achtung"
#: ../src/editor.c:475
msgid "" msgid ""
"There are unsaved changes.\n" "There are unsaved changes.\n"
"Discard or save them?" "Discard or save them?"
msgstr "" msgstr ""
#: ../src/editor.c:539 #: ../src/editor.c:557
msgid "Find text" msgid "Find text"
msgstr "" msgstr ""
#: ../src/editor.c:550 #: ../src/editor.c:568
msgid "Text:" msgid "Text:"
msgstr "Text:" msgstr "Text:"
#: ../src/editor.c:557 #: ../src/editor.c:575
msgid "Case-sensitive" msgid "Case-sensitive"
msgstr "" msgstr ""
#: ../src/editor.c:559 #: ../src/editor.c:577
msgid "Wrap" msgid "Wrap"
msgstr "" msgstr ""
#: ../src/editor.c:582 #: ../src/editor.c:600
msgid "Text not found" msgid "Text not found"
msgstr "" msgstr ""
#: ../src/editor.c:661 #: ../src/editor.c:679
msgid "Insert file..." msgid "Insert file..."
msgstr "" msgstr ""
#: ../src/editor.c:667 ../src/editor.c:790 #: ../src/editor.c:685 ../src/editor.c:798
msgid "Text files" msgid "Text files"
msgstr "" msgstr ""
#: ../src/editor.c:671 ../src/editor.c:794 #: ../src/editor.c:689 ../src/editor.c:802
msgid "All files" msgid "All files"
msgstr "" msgstr ""
#: ../src/editor.c:713 #: ../src/editor.c:727
msgid ""
"There are unsaved changes.\n"
"Are you sure you want to discard them?"
msgstr ""
#: ../src/editor.c:720
msgid "Discard" msgid "Discard"
msgstr "" msgstr ""
#: ../src/editor.c:784 #: ../src/editor.c:792
msgid "Open file..." msgid "Open file..."
msgstr "Offnen..." msgstr "Offnen..."
#: ../src/editor.c:852 #: ../src/editor.c:860
msgid "Partial write" msgid "Partial write"
msgstr "" msgstr ""
#: ../src/editor.c:880 #: ../src/editor.c:888
msgid "This file already exists. Overwrite?" msgid "This file already exists. Overwrite?"
msgstr "" msgstr ""
#: ../src/editor.c:889 #: ../src/editor.c:897
msgid "Allocation error" msgid "Allocation error"
msgstr "" msgstr ""
#: ../src/editor.c:904 #: ../src/editor.c:912
msgid "Save as..." msgid "Save as..."
msgstr "" msgstr ""
#: ../src/editor.c:961 #: ../src/editor.c:969
msgid "Text editor preferences" msgid "Text editor preferences"
msgstr "Text Editor Einstellungen" msgstr "Text Editor Einstellungen"
#: ../src/editor.c:978 #: ../src/editor.c:986
msgid "Font:" msgid "Font:"
msgstr "" msgstr ""
#: ../src/editor.c:988 #: ../src/editor.c:996
msgid "Wrap mode:" msgid "Wrap mode:"
msgstr "" msgstr ""

128
po/es.po
View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Editor 0.1.1\n" "Project-Id-Version: Editor 0.1.1\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-10-25 15:13+0200\n" "POT-Creation-Date: 2011-12-05 06:02-0500\n"
"PO-Revision-Date: 2010-04-07 22:07+0200\n" "PO-Revision-Date: 2010-04-07 22:07+0200\n"
"Last-Translator: Pierre Pronchery <khorben@defora.org>\n" "Last-Translator: Pierre Pronchery <khorben@defora.org>\n"
"Language-Team: Spanish\n" "Language-Team: Spanish\n"
@ -16,236 +16,230 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: ../src/editor.c:91 #: ../src/editor.c:94
msgid "_New" msgid "_New"
msgstr "" msgstr ""
#: ../src/editor.c:93 #: ../src/editor.c:96
msgid "_Open" msgid "_Open"
msgstr "" msgstr ""
#: ../src/editor.c:96 #: ../src/editor.c:99
msgid "_Save" msgid "_Save"
msgstr "" msgstr ""
#: ../src/editor.c:98 #: ../src/editor.c:101
msgid "_Save as..." msgid "_Save as..."
msgstr "" msgstr ""
#: ../src/editor.c:101 #: ../src/editor.c:104
msgid "_Close" msgid "_Close"
msgstr "" msgstr ""
#: ../src/editor.c:108 #: ../src/editor.c:111
msgid "_Undo" msgid "_Undo"
msgstr "" msgstr ""
#: ../src/editor.c:110 #: ../src/editor.c:113
msgid "_Redo" msgid "_Redo"
msgstr "" msgstr ""
#: ../src/editor.c:112 #: ../src/editor.c:115
msgid "_Cut" msgid "_Cut"
msgstr "" msgstr ""
#: ../src/editor.c:114 #: ../src/editor.c:117
msgid "_Copy" msgid "_Copy"
msgstr "" msgstr ""
#: ../src/editor.c:116 #: ../src/editor.c:119
msgid "_Paste" msgid "_Paste"
msgstr "" msgstr ""
#: ../src/editor.c:119 #: ../src/editor.c:122
msgid "Select _all" msgid "Select _all"
msgstr "" msgstr ""
#: ../src/editor.c:126 #: ../src/editor.c:129
msgid "_Unselect all" msgid "_Unselect all"
msgstr "" msgstr ""
#: ../src/editor.c:128 #: ../src/editor.c:131
msgid "_Find" msgid "_Find"
msgstr "" msgstr ""
#: ../src/editor.c:131 #: ../src/editor.c:134
msgid "_Preferences" msgid "_Preferences"
msgstr "_Preferencias" msgstr "_Preferencias"
#: ../src/editor.c:138 #: ../src/editor.c:141
msgid "_File..." msgid "_File..."
msgstr "" msgstr ""
#: ../src/editor.c:144 #: ../src/editor.c:147
msgid "_About" msgid "_About"
msgstr "" msgstr ""
#: ../src/editor.c:155 #: ../src/editor.c:158
msgid "_File" msgid "_File"
msgstr "" msgstr ""
#: ../src/editor.c:156 #: ../src/editor.c:159
msgid "_Edit" msgid "_Edit"
msgstr "" msgstr ""
#: ../src/editor.c:157 #: ../src/editor.c:160
msgid "_Insert" msgid "_Insert"
msgstr "" msgstr ""
#: ../src/editor.c:158 #: ../src/editor.c:161
msgid "_Help" msgid "_Help"
msgstr "" msgstr ""
#: ../src/editor.c:165 #: ../src/editor.c:168
msgid "New" msgid "New"
msgstr "" msgstr ""
#: ../src/editor.c:166 #: ../src/editor.c:169
msgid "Open" msgid "Open"
msgstr "" msgstr ""
#: ../src/editor.c:168 #: ../src/editor.c:171
msgid "Save" msgid "Save"
msgstr "" msgstr ""
#: ../src/editor.c:169 #: ../src/editor.c:172
msgid "Save as" msgid "Save as"
msgstr "" msgstr ""
#: ../src/editor.c:172 #: ../src/editor.c:175
msgid "Cut" msgid "Cut"
msgstr "" msgstr ""
#: ../src/editor.c:173 #: ../src/editor.c:176
msgid "Copy" msgid "Copy"
msgstr "" msgstr ""
#: ../src/editor.c:174 #: ../src/editor.c:177
msgid "Paste" msgid "Paste"
msgstr "" msgstr ""
#: ../src/editor.c:177 #: ../src/editor.c:180
msgid "Preferences" msgid "Preferences"
msgstr "" msgstr ""
#: ../src/editor.c:189 #: ../src/editor.c:192
msgid "none" msgid "none"
msgstr "" msgstr ""
#: ../src/editor.c:190 #: ../src/editor.c:193
msgid "characters" msgid "characters"
msgstr "" msgstr ""
#: ../src/editor.c:191 #: ../src/editor.c:194
msgid "words" msgid "words"
msgstr "" msgstr ""
#: ../src/editor.c:192 #: ../src/editor.c:195
msgid "words then characters" msgid "words then characters"
msgstr "" msgstr ""
#: ../src/editor.c:275 #: ../src/editor.c:278
msgid "Text editor - " msgid "Text editor - "
msgstr "" msgstr ""
#: ../src/editor.c:276 #: ../src/editor.c:279
msgid "(Untitled)" msgid "(Untitled)"
msgstr "" msgstr ""
#: ../src/editor.c:389 #: ../src/editor.c:392
msgid "translator-credits" msgid "translator-credits"
msgstr "" msgstr ""
#: ../src/editor.c:425 #: ../src/editor.c:428
msgid "Could not save configuration" msgid "Could not save configuration"
msgstr "" msgstr ""
#: ../src/editor.c:439 ../src/editor.c:444 #: ../src/editor.c:445 ../src/editor.c:454 ../src/editor.c:884
#: ../src/editor.c:889
msgid "Question"
msgstr ""
#: ../src/editor.c:470 ../src/editor.c:475
msgid "Error" msgid "Error"
msgstr "" msgstr ""
#: ../src/editor.c:471 ../src/editor.c:481 ../src/editor.c:709 #: ../src/editor.c:497 ../src/editor.c:721
#: ../src/editor.c:723 ../src/editor.c:876 ../src/editor.c:881
msgid "Warning"
msgstr ""
#: ../src/editor.c:475
msgid "" msgid ""
"There are unsaved changes.\n" "There are unsaved changes.\n"
"Discard or save them?" "Discard or save them?"
msgstr "" msgstr ""
#: ../src/editor.c:539 #: ../src/editor.c:557
msgid "Find text" msgid "Find text"
msgstr "" msgstr ""
#: ../src/editor.c:550 #: ../src/editor.c:568
msgid "Text:" msgid "Text:"
msgstr "" msgstr ""
#: ../src/editor.c:557 #: ../src/editor.c:575
msgid "Case-sensitive" msgid "Case-sensitive"
msgstr "" msgstr ""
#: ../src/editor.c:559 #: ../src/editor.c:577
msgid "Wrap" msgid "Wrap"
msgstr "" msgstr ""
#: ../src/editor.c:582 #: ../src/editor.c:600
msgid "Text not found" msgid "Text not found"
msgstr "" msgstr ""
#: ../src/editor.c:661 #: ../src/editor.c:679
msgid "Insert file..." msgid "Insert file..."
msgstr "" msgstr ""
#: ../src/editor.c:667 ../src/editor.c:790 #: ../src/editor.c:685 ../src/editor.c:798
msgid "Text files" msgid "Text files"
msgstr "" msgstr ""
#: ../src/editor.c:671 ../src/editor.c:794 #: ../src/editor.c:689 ../src/editor.c:802
msgid "All files" msgid "All files"
msgstr "" msgstr ""
#: ../src/editor.c:713 #: ../src/editor.c:727
msgid ""
"There are unsaved changes.\n"
"Are you sure you want to discard them?"
msgstr ""
#: ../src/editor.c:720
msgid "Discard" msgid "Discard"
msgstr "" msgstr ""
#: ../src/editor.c:784 #: ../src/editor.c:792
msgid "Open file..." msgid "Open file..."
msgstr "" msgstr ""
#: ../src/editor.c:852 #: ../src/editor.c:860
msgid "Partial write" msgid "Partial write"
msgstr "" msgstr ""
#: ../src/editor.c:880 #: ../src/editor.c:888
msgid "This file already exists. Overwrite?" msgid "This file already exists. Overwrite?"
msgstr "" msgstr ""
#: ../src/editor.c:889 #: ../src/editor.c:897
msgid "Allocation error" msgid "Allocation error"
msgstr "" msgstr ""
#: ../src/editor.c:904 #: ../src/editor.c:912
msgid "Save as..." msgid "Save as..."
msgstr "" msgstr ""
#: ../src/editor.c:961 #: ../src/editor.c:969
msgid "Text editor preferences" msgid "Text editor preferences"
msgstr "" msgstr ""
#: ../src/editor.c:978 #: ../src/editor.c:986
msgid "Font:" msgid "Font:"
msgstr "" msgstr ""
#: ../src/editor.c:988 #: ../src/editor.c:996
msgid "Wrap mode:" msgid "Wrap mode:"
msgstr "" msgstr ""

130
po/fr.po
View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Editor 0.1.1\n" "Project-Id-Version: Editor 0.1.1\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-10-25 15:13+0200\n" "POT-Creation-Date: 2011-12-05 06:02-0500\n"
"PO-Revision-Date: 2010-04-11 12:32+0200\n" "PO-Revision-Date: 2010-04-11 12:32+0200\n"
"Last-Translator: Calimero <calimeroteknik@free.fr>\n" "Last-Translator: Calimero <calimeroteknik@free.fr>\n"
"Language-Team: French\n" "Language-Team: French\n"
@ -16,162 +16,162 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: ../src/editor.c:91 #: ../src/editor.c:94
msgid "_New" msgid "_New"
msgstr "_Nouveau" msgstr "_Nouveau"
#: ../src/editor.c:93 #: ../src/editor.c:96
msgid "_Open" msgid "_Open"
msgstr "_Ouvrir" msgstr "_Ouvrir"
#: ../src/editor.c:96 #: ../src/editor.c:99
msgid "_Save" msgid "_Save"
msgstr "_Enregistrer" msgstr "_Enregistrer"
#: ../src/editor.c:98 #: ../src/editor.c:101
msgid "_Save as..." msgid "_Save as..."
msgstr "_Enregistrer sous..." msgstr "_Enregistrer sous..."
#: ../src/editor.c:101 #: ../src/editor.c:104
msgid "_Close" msgid "_Close"
msgstr "_Fermer" msgstr "_Fermer"
#: ../src/editor.c:108 #: ../src/editor.c:111
msgid "_Undo" msgid "_Undo"
msgstr "_Annuler" msgstr "_Annuler"
#: ../src/editor.c:110 #: ../src/editor.c:113
msgid "_Redo" msgid "_Redo"
msgstr "_Rétablir" msgstr "_Rétablir"
#: ../src/editor.c:112 #: ../src/editor.c:115
msgid "_Cut" msgid "_Cut"
msgstr "Co_uper" msgstr "Co_uper"
#: ../src/editor.c:114 #: ../src/editor.c:117
msgid "_Copy" msgid "_Copy"
msgstr "_Copier" msgstr "_Copier"
#: ../src/editor.c:116 #: ../src/editor.c:119
msgid "_Paste" msgid "_Paste"
msgstr "C_oller" msgstr "C_oller"
#: ../src/editor.c:119 #: ../src/editor.c:122
msgid "Select _all" msgid "Select _all"
msgstr "Sélectionner _tout" msgstr "Sélectionner _tout"
#: ../src/editor.c:126 #: ../src/editor.c:129
msgid "_Unselect all" msgid "_Unselect all"
msgstr "Tout _désélectionner" msgstr "Tout _désélectionner"
#: ../src/editor.c:128 #: ../src/editor.c:131
msgid "_Find" msgid "_Find"
msgstr "_Rechercher" msgstr "_Rechercher"
#: ../src/editor.c:131 #: ../src/editor.c:134
msgid "_Preferences" msgid "_Preferences"
msgstr "_Préférences" msgstr "_Préférences"
#: ../src/editor.c:138 #: ../src/editor.c:141
msgid "_File..." msgid "_File..."
msgstr "_Fichier..." msgstr "_Fichier..."
#: ../src/editor.c:144 #: ../src/editor.c:147
msgid "_About" msgid "_About"
msgstr "À _propos" msgstr "À _propos"
#: ../src/editor.c:155 #: ../src/editor.c:158
msgid "_File" msgid "_File"
msgstr "_Fichier" msgstr "_Fichier"
#: ../src/editor.c:156 #: ../src/editor.c:159
msgid "_Edit" msgid "_Edit"
msgstr "É_dition" msgstr "É_dition"
#: ../src/editor.c:157 #: ../src/editor.c:160
msgid "_Insert" msgid "_Insert"
msgstr "_Insertion" msgstr "_Insertion"
#: ../src/editor.c:158 #: ../src/editor.c:161
msgid "_Help" msgid "_Help"
msgstr "_Aide" msgstr "_Aide"
#: ../src/editor.c:165 #: ../src/editor.c:168
msgid "New" msgid "New"
msgstr "Nouveau" msgstr "Nouveau"
#: ../src/editor.c:166 #: ../src/editor.c:169
msgid "Open" msgid "Open"
msgstr "Ouvrir" msgstr "Ouvrir"
#: ../src/editor.c:168 #: ../src/editor.c:171
msgid "Save" msgid "Save"
msgstr "Enregistrer" msgstr "Enregistrer"
#: ../src/editor.c:169 #: ../src/editor.c:172
msgid "Save as" msgid "Save as"
msgstr "Enregistrer sous" msgstr "Enregistrer sous"
#: ../src/editor.c:172 #: ../src/editor.c:175
msgid "Cut" msgid "Cut"
msgstr "Couper" msgstr "Couper"
#: ../src/editor.c:173 #: ../src/editor.c:176
msgid "Copy" msgid "Copy"
msgstr "Copier" msgstr "Copier"
#: ../src/editor.c:174 #: ../src/editor.c:177
msgid "Paste" msgid "Paste"
msgstr "Coller" msgstr "Coller"
#: ../src/editor.c:177 #: ../src/editor.c:180
msgid "Preferences" msgid "Preferences"
msgstr "Préférences" msgstr "Préférences"
#: ../src/editor.c:189 #: ../src/editor.c:192
msgid "none" msgid "none"
msgstr "aucun" msgstr "aucun"
#: ../src/editor.c:190 #: ../src/editor.c:193
msgid "characters" msgid "characters"
msgstr "caractères" msgstr "caractères"
#: ../src/editor.c:191 #: ../src/editor.c:194
msgid "words" msgid "words"
msgstr "mots" msgstr "mots"
#: ../src/editor.c:192 #: ../src/editor.c:195
msgid "words then characters" msgid "words then characters"
msgstr "mots puis caractères" msgstr "mots puis caractères"
#: ../src/editor.c:275 #: ../src/editor.c:278
msgid "Text editor - " msgid "Text editor - "
msgstr "Éditeur de texte - " msgstr "Éditeur de texte - "
#: ../src/editor.c:276 #: ../src/editor.c:279
msgid "(Untitled)" msgid "(Untitled)"
msgstr "(Sans titre)" msgstr "(Sans titre)"
#: ../src/editor.c:389 #: ../src/editor.c:392
msgid "translator-credits" msgid "translator-credits"
msgstr "" msgstr ""
"Calimero <calimeroteknik@free.fr>\n" "Calimero <calimeroteknik@free.fr>\n"
"Pierre Pronchery <khorben@defora.org>" "Pierre Pronchery <khorben@defora.org>"
#: ../src/editor.c:425 #: ../src/editor.c:428
msgid "Could not save configuration" msgid "Could not save configuration"
msgstr "Erreur lors de la sauvegarde de la configuration" msgstr "Erreur lors de la sauvegarde de la configuration"
#: ../src/editor.c:439 ../src/editor.c:444 #: ../src/editor.c:445 ../src/editor.c:454 ../src/editor.c:884
#: ../src/editor.c:889
msgid "Question"
msgstr ""
#: ../src/editor.c:470 ../src/editor.c:475
msgid "Error" msgid "Error"
msgstr "Erreur" msgstr "Erreur"
#: ../src/editor.c:471 ../src/editor.c:481 ../src/editor.c:709 #: ../src/editor.c:497 ../src/editor.c:721
#: ../src/editor.c:723 ../src/editor.c:876 ../src/editor.c:881
msgid "Warning"
msgstr "Avertissement"
#: ../src/editor.c:475
msgid "" msgid ""
"There are unsaved changes.\n" "There are unsaved changes.\n"
"Discard or save them?" "Discard or save them?"
@ -179,79 +179,71 @@ msgstr ""
"Il y a des changements non enregistrés.\n" "Il y a des changements non enregistrés.\n"
"Abandonner ou enregistrer ?" "Abandonner ou enregistrer ?"
#: ../src/editor.c:539 #: ../src/editor.c:557
msgid "Find text" msgid "Find text"
msgstr "Rechercher" msgstr "Rechercher"
#: ../src/editor.c:550 #: ../src/editor.c:568
msgid "Text:" msgid "Text:"
msgstr "Texte :" msgstr "Texte :"
#: ../src/editor.c:557 #: ../src/editor.c:575
msgid "Case-sensitive" msgid "Case-sensitive"
msgstr "Sensible à la casse" msgstr "Sensible à la casse"
#: ../src/editor.c:559 #: ../src/editor.c:577
msgid "Wrap" msgid "Wrap"
msgstr "Boucler" msgstr "Boucler"
#: ../src/editor.c:582 #: ../src/editor.c:600
msgid "Text not found" msgid "Text not found"
msgstr "Texte non trouvé" msgstr "Texte non trouvé"
#: ../src/editor.c:661 #: ../src/editor.c:679
msgid "Insert file..." msgid "Insert file..."
msgstr "Insérer un fichier..." msgstr "Insérer un fichier..."
#: ../src/editor.c:667 ../src/editor.c:790 #: ../src/editor.c:685 ../src/editor.c:798
msgid "Text files" msgid "Text files"
msgstr "Fichiers texte" msgstr "Fichiers texte"
#: ../src/editor.c:671 ../src/editor.c:794 #: ../src/editor.c:689 ../src/editor.c:802
msgid "All files" msgid "All files"
msgstr "Tous les fichiers" msgstr "Tous les fichiers"
#: ../src/editor.c:713 #: ../src/editor.c:727
msgid ""
"There are unsaved changes.\n"
"Are you sure you want to discard them?"
msgstr ""
"Il y a des changements non enregistrés.\n"
"Êtes-vous sûr de vouloir les annuler ?"
#: ../src/editor.c:720
msgid "Discard" msgid "Discard"
msgstr "Annuler" msgstr "Annuler"
#: ../src/editor.c:784 #: ../src/editor.c:792
msgid "Open file..." msgid "Open file..."
msgstr "Ouvrir un fichier..." msgstr "Ouvrir un fichier..."
#: ../src/editor.c:852 #: ../src/editor.c:860
msgid "Partial write" msgid "Partial write"
msgstr "Écriture partielle" msgstr "Écriture partielle"
#: ../src/editor.c:880 #: ../src/editor.c:888
msgid "This file already exists. Overwrite?" msgid "This file already exists. Overwrite?"
msgstr "Le fichier existe déjà. L'écraser ?" msgstr "Le fichier existe déjà. L'écraser ?"
#: ../src/editor.c:889 #: ../src/editor.c:897
msgid "Allocation error" msgid "Allocation error"
msgstr "Erreur d'allocation" msgstr "Erreur d'allocation"
#: ../src/editor.c:904 #: ../src/editor.c:912
msgid "Save as..." msgid "Save as..."
msgstr "Enregistrer sous..." msgstr "Enregistrer sous..."
#: ../src/editor.c:961 #: ../src/editor.c:969
msgid "Text editor preferences" msgid "Text editor preferences"
msgstr "Préférences de l'éditeur de texte" msgstr "Préférences de l'éditeur de texte"
#: ../src/editor.c:978 #: ../src/editor.c:986
msgid "Font:" msgid "Font:"
msgstr "Police :" msgstr "Police :"
#: ../src/editor.c:988 #: ../src/editor.c:996
msgid "Wrap mode:" msgid "Wrap mode:"
msgstr "Retour à la ligne :" msgstr "Retour à la ligne :"

128
po/it.po
View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Editor 0.1.1\n" "Project-Id-Version: Editor 0.1.1\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-10-25 15:13+0200\n" "POT-Creation-Date: 2011-12-05 06:02-0500\n"
"PO-Revision-Date: 2010-04-09 16:43+0200\n" "PO-Revision-Date: 2010-04-09 16:43+0200\n"
"Last-Translator: Pierre Pronchery <khorben@defora.org>\n" "Last-Translator: Pierre Pronchery <khorben@defora.org>\n"
"Language-Team: Italian\n" "Language-Team: Italian\n"
@ -17,236 +17,230 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: ../src/editor.c:91 #: ../src/editor.c:94
msgid "_New" msgid "_New"
msgstr "" msgstr ""
#: ../src/editor.c:93 #: ../src/editor.c:96
msgid "_Open" msgid "_Open"
msgstr "" msgstr ""
#: ../src/editor.c:96 #: ../src/editor.c:99
msgid "_Save" msgid "_Save"
msgstr "" msgstr ""
#: ../src/editor.c:98 #: ../src/editor.c:101
msgid "_Save as..." msgid "_Save as..."
msgstr "" msgstr ""
#: ../src/editor.c:101 #: ../src/editor.c:104
msgid "_Close" msgid "_Close"
msgstr "" msgstr ""
#: ../src/editor.c:108 #: ../src/editor.c:111
msgid "_Undo" msgid "_Undo"
msgstr "" msgstr ""
#: ../src/editor.c:110 #: ../src/editor.c:113
msgid "_Redo" msgid "_Redo"
msgstr "" msgstr ""
#: ../src/editor.c:112 #: ../src/editor.c:115
msgid "_Cut" msgid "_Cut"
msgstr "" msgstr ""
#: ../src/editor.c:114 #: ../src/editor.c:117
msgid "_Copy" msgid "_Copy"
msgstr "" msgstr ""
#: ../src/editor.c:116 #: ../src/editor.c:119
msgid "_Paste" msgid "_Paste"
msgstr "" msgstr ""
#: ../src/editor.c:119 #: ../src/editor.c:122
msgid "Select _all" msgid "Select _all"
msgstr "" msgstr ""
#: ../src/editor.c:126 #: ../src/editor.c:129
msgid "_Unselect all" msgid "_Unselect all"
msgstr "" msgstr ""
#: ../src/editor.c:128 #: ../src/editor.c:131
msgid "_Find" msgid "_Find"
msgstr "" msgstr ""
#: ../src/editor.c:131 #: ../src/editor.c:134
msgid "_Preferences" msgid "_Preferences"
msgstr "" msgstr ""
#: ../src/editor.c:138 #: ../src/editor.c:141
msgid "_File..." msgid "_File..."
msgstr "" msgstr ""
#: ../src/editor.c:144 #: ../src/editor.c:147
msgid "_About" msgid "_About"
msgstr "" msgstr ""
#: ../src/editor.c:155 #: ../src/editor.c:158
msgid "_File" msgid "_File"
msgstr "" msgstr ""
#: ../src/editor.c:156 #: ../src/editor.c:159
msgid "_Edit" msgid "_Edit"
msgstr "" msgstr ""
#: ../src/editor.c:157 #: ../src/editor.c:160
msgid "_Insert" msgid "_Insert"
msgstr "" msgstr ""
#: ../src/editor.c:158 #: ../src/editor.c:161
msgid "_Help" msgid "_Help"
msgstr "" msgstr ""
#: ../src/editor.c:165 #: ../src/editor.c:168
msgid "New" msgid "New"
msgstr "" msgstr ""
#: ../src/editor.c:166 #: ../src/editor.c:169
msgid "Open" msgid "Open"
msgstr "" msgstr ""
#: ../src/editor.c:168 #: ../src/editor.c:171
msgid "Save" msgid "Save"
msgstr "" msgstr ""
#: ../src/editor.c:169 #: ../src/editor.c:172
msgid "Save as" msgid "Save as"
msgstr "" msgstr ""
#: ../src/editor.c:172 #: ../src/editor.c:175
msgid "Cut" msgid "Cut"
msgstr "" msgstr ""
#: ../src/editor.c:173 #: ../src/editor.c:176
msgid "Copy" msgid "Copy"
msgstr "" msgstr ""
#: ../src/editor.c:174 #: ../src/editor.c:177
msgid "Paste" msgid "Paste"
msgstr "" msgstr ""
#: ../src/editor.c:177 #: ../src/editor.c:180
msgid "Preferences" msgid "Preferences"
msgstr "" msgstr ""
#: ../src/editor.c:189 #: ../src/editor.c:192
msgid "none" msgid "none"
msgstr "" msgstr ""
#: ../src/editor.c:190 #: ../src/editor.c:193
msgid "characters" msgid "characters"
msgstr "" msgstr ""
#: ../src/editor.c:191 #: ../src/editor.c:194
msgid "words" msgid "words"
msgstr "" msgstr ""
#: ../src/editor.c:192 #: ../src/editor.c:195
msgid "words then characters" msgid "words then characters"
msgstr "" msgstr ""
#: ../src/editor.c:275 #: ../src/editor.c:278
msgid "Text editor - " msgid "Text editor - "
msgstr "" msgstr ""
#: ../src/editor.c:276 #: ../src/editor.c:279
msgid "(Untitled)" msgid "(Untitled)"
msgstr "" msgstr ""
#: ../src/editor.c:389 #: ../src/editor.c:392
msgid "translator-credits" msgid "translator-credits"
msgstr "" msgstr ""
#: ../src/editor.c:425 #: ../src/editor.c:428
msgid "Could not save configuration" msgid "Could not save configuration"
msgstr "" msgstr ""
#: ../src/editor.c:439 ../src/editor.c:444 #: ../src/editor.c:445 ../src/editor.c:454 ../src/editor.c:884
#: ../src/editor.c:889
msgid "Question"
msgstr ""
#: ../src/editor.c:470 ../src/editor.c:475
msgid "Error" msgid "Error"
msgstr "" msgstr ""
#: ../src/editor.c:471 ../src/editor.c:481 ../src/editor.c:709 #: ../src/editor.c:497 ../src/editor.c:721
#: ../src/editor.c:723 ../src/editor.c:876 ../src/editor.c:881
msgid "Warning"
msgstr ""
#: ../src/editor.c:475
msgid "" msgid ""
"There are unsaved changes.\n" "There are unsaved changes.\n"
"Discard or save them?" "Discard or save them?"
msgstr "" msgstr ""
#: ../src/editor.c:539 #: ../src/editor.c:557
msgid "Find text" msgid "Find text"
msgstr "" msgstr ""
#: ../src/editor.c:550 #: ../src/editor.c:568
msgid "Text:" msgid "Text:"
msgstr "" msgstr ""
#: ../src/editor.c:557 #: ../src/editor.c:575
msgid "Case-sensitive" msgid "Case-sensitive"
msgstr "" msgstr ""
#: ../src/editor.c:559 #: ../src/editor.c:577
msgid "Wrap" msgid "Wrap"
msgstr "" msgstr ""
#: ../src/editor.c:582 #: ../src/editor.c:600
msgid "Text not found" msgid "Text not found"
msgstr "" msgstr ""
#: ../src/editor.c:661 #: ../src/editor.c:679
msgid "Insert file..." msgid "Insert file..."
msgstr "" msgstr ""
#: ../src/editor.c:667 ../src/editor.c:790 #: ../src/editor.c:685 ../src/editor.c:798
msgid "Text files" msgid "Text files"
msgstr "" msgstr ""
#: ../src/editor.c:671 ../src/editor.c:794 #: ../src/editor.c:689 ../src/editor.c:802
msgid "All files" msgid "All files"
msgstr "" msgstr ""
#: ../src/editor.c:713 #: ../src/editor.c:727
msgid ""
"There are unsaved changes.\n"
"Are you sure you want to discard them?"
msgstr ""
#: ../src/editor.c:720
msgid "Discard" msgid "Discard"
msgstr "" msgstr ""
#: ../src/editor.c:784 #: ../src/editor.c:792
msgid "Open file..." msgid "Open file..."
msgstr "" msgstr ""
#: ../src/editor.c:852 #: ../src/editor.c:860
msgid "Partial write" msgid "Partial write"
msgstr "" msgstr ""
#: ../src/editor.c:880 #: ../src/editor.c:888
msgid "This file already exists. Overwrite?" msgid "This file already exists. Overwrite?"
msgstr "" msgstr ""
#: ../src/editor.c:889 #: ../src/editor.c:897
msgid "Allocation error" msgid "Allocation error"
msgstr "" msgstr ""
#: ../src/editor.c:904 #: ../src/editor.c:912
msgid "Save as..." msgid "Save as..."
msgstr "" msgstr ""
#: ../src/editor.c:961 #: ../src/editor.c:969
msgid "Text editor preferences" msgid "Text editor preferences"
msgstr "" msgstr ""
#: ../src/editor.c:978 #: ../src/editor.c:986
msgid "Font:" msgid "Font:"
msgstr "" msgstr ""
#: ../src/editor.c:988 #: ../src/editor.c:996
msgid "Wrap mode:" msgid "Wrap mode:"
msgstr "" msgstr ""

View File

@ -14,6 +14,9 @@ static char const _license[] =
"\n" "\n"
"You should have received a copy of the GNU General Public License\n" "You should have received a copy of the GNU General Public License\n"
"along with this program. If not, see <http://www.gnu.org/licenses/>.\n"; "along with this program. If not, see <http://www.gnu.org/licenses/>.\n";
/* TODO:
* - move the "find" dialog over the status bar (and in Surfer too, and use a
* GtkCombo box with the history of what was searched for already) */
@ -427,6 +430,34 @@ void editor_config_save(Editor * editor)
} }
/* editor_confirm */
int editor_confirm(Editor * editor, char const * message, ...)
{
GtkWidget * dialog;
va_list ap;
char const * action;
int res;
dialog = gtk_message_dialog_new(GTK_WINDOW(editor->window),
GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_QUESTION,
GTK_BUTTONS_NONE,
# if GTK_CHECK_VERSION(2, 6, 0)
"%s", _("Question"));
gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog),
# endif
"%s", message);
va_start(ap, message);
while((action = va_arg(ap, char const *)) != NULL)
gtk_dialog_add_button(GTK_DIALOG(dialog),
action, va_arg(ap, int));
va_end(ap);
gtk_window_set_title(GTK_WINDOW(dialog), _("Question"));
res = gtk_dialog_run(GTK_DIALOG(dialog));
gtk_widget_destroy(dialog);
return res;
}
/* editor_error */ /* editor_error */
int editor_error(Editor * editor, char const * message, int ret) int editor_error(Editor * editor, char const * message, int ret)
{ {
@ -452,7 +483,6 @@ int editor_error(Editor * editor, char const * message, int ret)
/* editor_close */ /* editor_close */
gboolean editor_close(Editor * editor) gboolean editor_close(Editor * editor)
{ {
GtkWidget * dialog;
int res; int res;
#ifdef DEBUG #ifdef DEBUG
@ -464,23 +494,11 @@ gboolean editor_close(Editor * editor)
gtk_main_quit(); gtk_main_quit();
return FALSE; return FALSE;
} }
dialog = gtk_message_dialog_new(GTK_WINDOW(editor->window), res = editor_confirm(editor, _("There are unsaved changes.\n"
GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, "Discard or save them?"),
GTK_MESSAGE_WARNING, GTK_BUTTONS_NONE, "%s", GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
#if GTK_CHECK_VERSION(2, 6, 0) GTK_STOCK_DISCARD, GTK_RESPONSE_REJECT,
_("Warning")); GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT, NULL);
gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog),
"%s",
#endif
_("There are unsaved changes.\n"
"Discard or save them?"));
gtk_dialog_add_buttons(GTK_DIALOG(dialog), GTK_STOCK_CANCEL,
GTK_RESPONSE_CANCEL, GTK_STOCK_DISCARD,
GTK_RESPONSE_REJECT, GTK_STOCK_SAVE,
GTK_RESPONSE_ACCEPT, NULL);
gtk_window_set_title(GTK_WINDOW(dialog), _("Warning"));
res = gtk_dialog_run(GTK_DIALOG(dialog));
gtk_widget_destroy(dialog);
if(res == GTK_RESPONSE_CANCEL) if(res == GTK_RESPONSE_CANCEL)
return TRUE; return TRUE;
else if(res == GTK_RESPONSE_ACCEPT && editor_save(editor) != TRUE) else if(res == GTK_RESPONSE_ACCEPT && editor_save(editor) != TRUE)
@ -686,7 +704,6 @@ int editor_insert_file_dialog(Editor * editor)
/* editor_open */ /* editor_open */
void editor_open(Editor * editor, char const * filename) void editor_open(Editor * editor, char const * filename)
{ {
GtkWidget * dialog;
int res; int res;
FILE * fp; FILE * fp;
GtkTextBuffer * tbuf; GtkTextBuffer * tbuf;
@ -701,29 +718,19 @@ void editor_open(Editor * editor, char const * filename)
if(gtk_text_buffer_get_modified(gtk_text_view_get_buffer(GTK_TEXT_VIEW( if(gtk_text_buffer_get_modified(gtk_text_view_get_buffer(GTK_TEXT_VIEW(
editor->view))) == TRUE) editor->view))) == TRUE)
{ {
dialog = gtk_message_dialog_new(GTK_WINDOW(editor->window), res = editor_confirm(editor, _("There are unsaved changes.\n"
GTK_DIALOG_MODAL "Discard or save them?"),
| GTK_DIALOG_DESTROY_WITH_PARENT, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_MESSAGE_WARNING, GTK_BUTTONS_NONE, "%s",
#if GTK_CHECK_VERSION(2, 6, 0)
_("Warning"));
gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(
dialog), "%s",
#endif
_("There are unsaved changes.\n"
"Are you sure you want to discard them?"));
gtk_dialog_add_buttons(GTK_DIALOG(dialog), GTK_STOCK_CANCEL,
GTK_RESPONSE_CANCEL,
#if GTK_CHECK_VERSION(2, 12, 0) #if GTK_CHECK_VERSION(2, 12, 0)
GTK_STOCK_DISCARD, GTK_STOCK_DISCARD, GTK_RESPONSE_REJECT,
#else #else
_("Discard"), _("Discard"), GTK_RESPONSE_REJECT,
#endif #endif
GTK_RESPONSE_CLOSE, NULL); GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT,
gtk_window_set_title(GTK_WINDOW(dialog), _("Warning")); NULL);
res = gtk_dialog_run(GTK_DIALOG(dialog)); if(res == GTK_RESPONSE_ACCEPT && editor_save(editor) != TRUE)
gtk_widget_destroy(dialog); return;
if(res != GTK_RESPONSE_CLOSE) else if(res != GTK_RESPONSE_CLOSE)
return; return;
} }
tbuf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(editor->view)); tbuf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(editor->view));
@ -734,6 +741,7 @@ void editor_open(Editor * editor, char const * filename)
gtk_text_buffer_set_modified(tbuf, FALSE); gtk_text_buffer_set_modified(tbuf, FALSE);
return; return;
} }
/* FIXME use a GIOChannel instead (with a modal GtkDialog) */
if((fp = fopen(filename, "r")) == NULL) if((fp = fopen(filename, "r")) == NULL)
{ {
snprintf(buf, sizeof(buf), "%s: %s", filename, strerror(errno)); snprintf(buf, sizeof(buf), "%s: %s", filename, strerror(errno));
@ -871,14 +879,14 @@ gboolean editor_save_as(Editor * editor, char const * filename)
dialog = gtk_message_dialog_new(GTK_WINDOW(editor->window), dialog = gtk_message_dialog_new(GTK_WINDOW(editor->window),
GTK_DIALOG_MODAL GTK_DIALOG_MODAL
| GTK_DIALOG_DESTROY_WITH_PARENT, | GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_WARNING, GTK_BUTTONS_YES_NO, "%s", GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, "%s",
#if GTK_CHECK_VERSION(2, 6, 0) #if GTK_CHECK_VERSION(2, 6, 0)
_("Warning")); _("Question"));
gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG( gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(
dialog), "%s", dialog), "%s",
#endif #endif
_("This file already exists. Overwrite?")); _("This file already exists. Overwrite?"));
gtk_window_set_title(GTK_WINDOW(dialog), _("Warning")); gtk_window_set_title(GTK_WINDOW(dialog), _("Question"));
ret = gtk_dialog_run(GTK_DIALOG(dialog)); ret = gtk_dialog_run(GTK_DIALOG(dialog));
gtk_widget_destroy(dialog); gtk_widget_destroy(dialog);
if(ret == GTK_RESPONSE_NO) if(ret == GTK_RESPONSE_NO)

View File

@ -43,6 +43,7 @@ void editor_about(Editor * editor);
void editor_config_load(Editor * editor); void editor_config_load(Editor * editor);
void editor_config_save(Editor * editor); void editor_config_save(Editor * editor);
int editor_confirm(Editor * editor, char const * message, ...);
int editor_error(Editor * editor, char const * message, int ret); int editor_error(Editor * editor, char const * message, int ret);
gboolean editor_close(Editor * editor); gboolean editor_close(Editor * editor);