Code cleanup

This commit is contained in:
Pierre Pronchery 2011-12-07 11:50:58 +00:00
parent 8836f4e0a7
commit c1ed827161
5 changed files with 92 additions and 93 deletions

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-12-07 12:38+0100\n" "POT-Creation-Date: 2011-12-07 12:50+0100\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"
@ -160,86 +160,86 @@ msgstr "Pierre Pronchery <khorben@defora.org>"
msgid "Could not save configuration" msgid "Could not save configuration"
msgstr "" msgstr ""
#: ../src/editor.c:446 ../src/editor.c:455 ../src/editor.c:914 #: ../src/editor.c:446 ../src/editor.c:455 ../src/editor.c:913
#: ../src/editor.c:919 #: ../src/editor.c:918
msgid "Question" msgid "Question"
msgstr "" msgstr ""
#: ../src/editor.c:471 ../src/editor.c:476 #: ../src/editor.c:471 ../src/editor.c:475
msgid "Error" msgid "Error"
msgstr "Fehler" msgstr "Fehler"
#: ../src/editor.c:498 ../src/editor.c:751 #: ../src/editor.c:497 ../src/editor.c:750
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:561 #: ../src/editor.c:560
msgid "Find text" msgid "Find text"
msgstr "" msgstr ""
#: ../src/editor.c:572 #: ../src/editor.c:571
msgid "Text:" msgid "Text:"
msgstr "Text:" msgstr "Text:"
#: ../src/editor.c:583 #: ../src/editor.c:582
msgid "Case-sensitive" msgid "Case-sensitive"
msgstr "" msgstr ""
#: ../src/editor.c:585 #: ../src/editor.c:584
msgid "Wrap" msgid "Wrap"
msgstr "" msgstr ""
#: ../src/editor.c:628 #: ../src/editor.c:627
msgid "Text not found" msgid "Text not found"
msgstr "" msgstr ""
#: ../src/editor.c:709 #: ../src/editor.c:708
msgid "Insert file..." msgid "Insert file..."
msgstr "" msgstr ""
#: ../src/editor.c:715 ../src/editor.c:828 #: ../src/editor.c:714 ../src/editor.c:827
msgid "Text files" msgid "Text files"
msgstr "" msgstr ""
#: ../src/editor.c:719 ../src/editor.c:832 #: ../src/editor.c:718 ../src/editor.c:831
msgid "All files" msgid "All files"
msgstr "" msgstr ""
#: ../src/editor.c:757 #: ../src/editor.c:756
msgid "Discard" msgid "Discard"
msgstr "" msgstr ""
#: ../src/editor.c:822 #: ../src/editor.c:821
msgid "Open file..." msgid "Open file..."
msgstr "Offnen..." msgstr "Offnen..."
#: ../src/editor.c:890 #: ../src/editor.c:889
msgid "Partial write" msgid "Partial write"
msgstr "" msgstr ""
#: ../src/editor.c:918 #: ../src/editor.c:917
msgid "This file already exists. Overwrite?" msgid "This file already exists. Overwrite?"
msgstr "" msgstr ""
#: ../src/editor.c:927 #: ../src/editor.c:926
msgid "Allocation error" msgid "Allocation error"
msgstr "" msgstr ""
#: ../src/editor.c:942 #: ../src/editor.c:941
msgid "Save as..." msgid "Save as..."
msgstr "" msgstr ""
#: ../src/editor.c:999 #: ../src/editor.c:998
msgid "Text editor preferences" msgid "Text editor preferences"
msgstr "Text Editor Einstellungen" msgstr "Text Editor Einstellungen"
#: ../src/editor.c:1016 #: ../src/editor.c:1015
msgid "Font:" msgid "Font:"
msgstr "" msgstr ""
#: ../src/editor.c:1026 #: ../src/editor.c:1025
msgid "Wrap mode:" msgid "Wrap mode:"
msgstr "" msgstr ""

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-12-07 12:38+0100\n" "POT-Creation-Date: 2011-12-07 12:50+0100\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"
@ -160,86 +160,86 @@ msgstr ""
msgid "Could not save configuration" msgid "Could not save configuration"
msgstr "" msgstr ""
#: ../src/editor.c:446 ../src/editor.c:455 ../src/editor.c:914 #: ../src/editor.c:446 ../src/editor.c:455 ../src/editor.c:913
#: ../src/editor.c:919 #: ../src/editor.c:918
msgid "Question" msgid "Question"
msgstr "" msgstr ""
#: ../src/editor.c:471 ../src/editor.c:476 #: ../src/editor.c:471 ../src/editor.c:475
msgid "Error" msgid "Error"
msgstr "" msgstr ""
#: ../src/editor.c:498 ../src/editor.c:751 #: ../src/editor.c:497 ../src/editor.c:750
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:561 #: ../src/editor.c:560
msgid "Find text" msgid "Find text"
msgstr "" msgstr ""
#: ../src/editor.c:572 #: ../src/editor.c:571
msgid "Text:" msgid "Text:"
msgstr "" msgstr ""
#: ../src/editor.c:583 #: ../src/editor.c:582
msgid "Case-sensitive" msgid "Case-sensitive"
msgstr "" msgstr ""
#: ../src/editor.c:585 #: ../src/editor.c:584
msgid "Wrap" msgid "Wrap"
msgstr "" msgstr ""
#: ../src/editor.c:628 #: ../src/editor.c:627
msgid "Text not found" msgid "Text not found"
msgstr "" msgstr ""
#: ../src/editor.c:709 #: ../src/editor.c:708
msgid "Insert file..." msgid "Insert file..."
msgstr "" msgstr ""
#: ../src/editor.c:715 ../src/editor.c:828 #: ../src/editor.c:714 ../src/editor.c:827
msgid "Text files" msgid "Text files"
msgstr "" msgstr ""
#: ../src/editor.c:719 ../src/editor.c:832 #: ../src/editor.c:718 ../src/editor.c:831
msgid "All files" msgid "All files"
msgstr "" msgstr ""
#: ../src/editor.c:757 #: ../src/editor.c:756
msgid "Discard" msgid "Discard"
msgstr "" msgstr ""
#: ../src/editor.c:822 #: ../src/editor.c:821
msgid "Open file..." msgid "Open file..."
msgstr "" msgstr ""
#: ../src/editor.c:890 #: ../src/editor.c:889
msgid "Partial write" msgid "Partial write"
msgstr "" msgstr ""
#: ../src/editor.c:918 #: ../src/editor.c:917
msgid "This file already exists. Overwrite?" msgid "This file already exists. Overwrite?"
msgstr "" msgstr ""
#: ../src/editor.c:927 #: ../src/editor.c:926
msgid "Allocation error" msgid "Allocation error"
msgstr "" msgstr ""
#: ../src/editor.c:942 #: ../src/editor.c:941
msgid "Save as..." msgid "Save as..."
msgstr "" msgstr ""
#: ../src/editor.c:999 #: ../src/editor.c:998
msgid "Text editor preferences" msgid "Text editor preferences"
msgstr "" msgstr ""
#: ../src/editor.c:1016 #: ../src/editor.c:1015
msgid "Font:" msgid "Font:"
msgstr "" msgstr ""
#: ../src/editor.c:1026 #: ../src/editor.c:1025
msgid "Wrap mode:" msgid "Wrap mode:"
msgstr "" msgstr ""

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-12-07 12:38+0100\n" "POT-Creation-Date: 2011-12-07 12:50+0100\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"
@ -162,16 +162,16 @@ msgstr ""
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:446 ../src/editor.c:455 ../src/editor.c:914 #: ../src/editor.c:446 ../src/editor.c:455 ../src/editor.c:913
#: ../src/editor.c:919 #: ../src/editor.c:918
msgid "Question" msgid "Question"
msgstr "Question" msgstr "Question"
#: ../src/editor.c:471 ../src/editor.c:476 #: ../src/editor.c:471 ../src/editor.c:475
msgid "Error" msgid "Error"
msgstr "Erreur" msgstr "Erreur"
#: ../src/editor.c:498 ../src/editor.c:751 #: ../src/editor.c:497 ../src/editor.c:750
msgid "" msgid ""
"There are unsaved changes.\n" "There are unsaved changes.\n"
"Discard or save them?" "Discard or save them?"
@ -179,71 +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:561 #: ../src/editor.c:560
msgid "Find text" msgid "Find text"
msgstr "Rechercher" msgstr "Rechercher"
#: ../src/editor.c:572 #: ../src/editor.c:571
msgid "Text:" msgid "Text:"
msgstr "Texte :" msgstr "Texte :"
#: ../src/editor.c:583 #: ../src/editor.c:582
msgid "Case-sensitive" msgid "Case-sensitive"
msgstr "Sensible à la casse" msgstr "Sensible à la casse"
#: ../src/editor.c:585 #: ../src/editor.c:584
msgid "Wrap" msgid "Wrap"
msgstr "Boucler" msgstr "Boucler"
#: ../src/editor.c:628 #: ../src/editor.c:627
msgid "Text not found" msgid "Text not found"
msgstr "Texte non trouvé" msgstr "Texte non trouvé"
#: ../src/editor.c:709 #: ../src/editor.c:708
msgid "Insert file..." msgid "Insert file..."
msgstr "Insérer un fichier..." msgstr "Insérer un fichier..."
#: ../src/editor.c:715 ../src/editor.c:828 #: ../src/editor.c:714 ../src/editor.c:827
msgid "Text files" msgid "Text files"
msgstr "Fichiers texte" msgstr "Fichiers texte"
#: ../src/editor.c:719 ../src/editor.c:832 #: ../src/editor.c:718 ../src/editor.c:831
msgid "All files" msgid "All files"
msgstr "Tous les fichiers" msgstr "Tous les fichiers"
#: ../src/editor.c:757 #: ../src/editor.c:756
msgid "Discard" msgid "Discard"
msgstr "Annuler" msgstr "Annuler"
#: ../src/editor.c:822 #: ../src/editor.c:821
msgid "Open file..." msgid "Open file..."
msgstr "Ouvrir un fichier..." msgstr "Ouvrir un fichier..."
#: ../src/editor.c:890 #: ../src/editor.c:889
msgid "Partial write" msgid "Partial write"
msgstr "Écriture partielle" msgstr "Écriture partielle"
#: ../src/editor.c:918 #: ../src/editor.c:917
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:927 #: ../src/editor.c:926
msgid "Allocation error" msgid "Allocation error"
msgstr "Erreur d'allocation" msgstr "Erreur d'allocation"
#: ../src/editor.c:942 #: ../src/editor.c:941
msgid "Save as..." msgid "Save as..."
msgstr "Enregistrer sous..." msgstr "Enregistrer sous..."
#: ../src/editor.c:999 #: ../src/editor.c:998
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:1016 #: ../src/editor.c:1015
msgid "Font:" msgid "Font:"
msgstr "Police :" msgstr "Police :"
#: ../src/editor.c:1026 #: ../src/editor.c:1025
msgid "Wrap mode:" msgid "Wrap mode:"
msgstr "Retour à la ligne :" msgstr "Retour à la ligne :"

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-12-07 12:38+0100\n" "POT-Creation-Date: 2011-12-07 12:50+0100\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"
@ -161,86 +161,86 @@ msgstr ""
msgid "Could not save configuration" msgid "Could not save configuration"
msgstr "" msgstr ""
#: ../src/editor.c:446 ../src/editor.c:455 ../src/editor.c:914 #: ../src/editor.c:446 ../src/editor.c:455 ../src/editor.c:913
#: ../src/editor.c:919 #: ../src/editor.c:918
msgid "Question" msgid "Question"
msgstr "" msgstr ""
#: ../src/editor.c:471 ../src/editor.c:476 #: ../src/editor.c:471 ../src/editor.c:475
msgid "Error" msgid "Error"
msgstr "" msgstr ""
#: ../src/editor.c:498 ../src/editor.c:751 #: ../src/editor.c:497 ../src/editor.c:750
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:561 #: ../src/editor.c:560
msgid "Find text" msgid "Find text"
msgstr "" msgstr ""
#: ../src/editor.c:572 #: ../src/editor.c:571
msgid "Text:" msgid "Text:"
msgstr "" msgstr ""
#: ../src/editor.c:583 #: ../src/editor.c:582
msgid "Case-sensitive" msgid "Case-sensitive"
msgstr "" msgstr ""
#: ../src/editor.c:585 #: ../src/editor.c:584
msgid "Wrap" msgid "Wrap"
msgstr "" msgstr ""
#: ../src/editor.c:628 #: ../src/editor.c:627
msgid "Text not found" msgid "Text not found"
msgstr "" msgstr ""
#: ../src/editor.c:709 #: ../src/editor.c:708
msgid "Insert file..." msgid "Insert file..."
msgstr "" msgstr ""
#: ../src/editor.c:715 ../src/editor.c:828 #: ../src/editor.c:714 ../src/editor.c:827
msgid "Text files" msgid "Text files"
msgstr "" msgstr ""
#: ../src/editor.c:719 ../src/editor.c:832 #: ../src/editor.c:718 ../src/editor.c:831
msgid "All files" msgid "All files"
msgstr "" msgstr ""
#: ../src/editor.c:757 #: ../src/editor.c:756
msgid "Discard" msgid "Discard"
msgstr "" msgstr ""
#: ../src/editor.c:822 #: ../src/editor.c:821
msgid "Open file..." msgid "Open file..."
msgstr "" msgstr ""
#: ../src/editor.c:890 #: ../src/editor.c:889
msgid "Partial write" msgid "Partial write"
msgstr "" msgstr ""
#: ../src/editor.c:918 #: ../src/editor.c:917
msgid "This file already exists. Overwrite?" msgid "This file already exists. Overwrite?"
msgstr "" msgstr ""
#: ../src/editor.c:927 #: ../src/editor.c:926
msgid "Allocation error" msgid "Allocation error"
msgstr "" msgstr ""
#: ../src/editor.c:942 #: ../src/editor.c:941
msgid "Save as..." msgid "Save as..."
msgstr "" msgstr ""
#: ../src/editor.c:999 #: ../src/editor.c:998
msgid "Text editor preferences" msgid "Text editor preferences"
msgstr "" msgstr ""
#: ../src/editor.c:1016 #: ../src/editor.c:1015
msgid "Font:" msgid "Font:"
msgstr "" msgstr ""
#: ../src/editor.c:1026 #: ../src/editor.c:1025
msgid "Wrap mode:" msgid "Wrap mode:"
msgstr "" msgstr ""

View File

@ -465,14 +465,13 @@ int editor_error(Editor * editor, char const * message, int ret)
GtkWidget * dialog; GtkWidget * dialog;
dialog = gtk_message_dialog_new(GTK_WINDOW(editor->window), dialog = gtk_message_dialog_new(GTK_WINDOW(editor->window),
GTK_DIALOG_DESTROY_WITH_PARENT, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR,
GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, "%s", GTK_BUTTONS_CLOSE,
#if GTK_CHECK_VERSION(2, 6, 0) #if GTK_CHECK_VERSION(2, 6, 0)
_("Error")); "%s", _("Error"));
gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog), gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog),
"%s",
#endif #endif
message); "%s", message);
gtk_window_set_title(GTK_WINDOW(dialog), _("Error")); gtk_window_set_title(GTK_WINDOW(dialog), _("Error"));
g_signal_connect(G_OBJECT(dialog), "response", G_CALLBACK( g_signal_connect(G_OBJECT(dialog), "response", G_CALLBACK(
gtk_widget_destroy), NULL); gtk_widget_destroy), NULL);