diff --git a/po/de.po b/po/de.po index 5286622..222d9f2 100644 --- a/po/de.po +++ b/po/de.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Editor 0.1.1\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-12-05 06:02-0500\n" +"POT-Creation-Date: 2011-12-07 12:38+0100\n" "PO-Revision-Date: 2010-04-07 22:05+0200\n" "Last-Translator: Pierre Pronchery \n" "Language-Team: German\n" @@ -16,230 +16,230 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: ../src/editor.c:94 +#: ../src/editor.c:95 msgid "_New" msgstr "_Neu" -#: ../src/editor.c:96 +#: ../src/editor.c:97 msgid "_Open" msgstr "_Offnen" -#: ../src/editor.c:99 +#: ../src/editor.c:100 msgid "_Save" msgstr "" -#: ../src/editor.c:101 +#: ../src/editor.c:102 msgid "_Save as..." msgstr "" -#: ../src/editor.c:104 +#: ../src/editor.c:105 msgid "_Close" msgstr "_Schliessen" -#: ../src/editor.c:111 +#: ../src/editor.c:112 msgid "_Undo" msgstr "" -#: ../src/editor.c:113 +#: ../src/editor.c:114 msgid "_Redo" msgstr "" -#: ../src/editor.c:115 +#: ../src/editor.c:116 msgid "_Cut" msgstr "" -#: ../src/editor.c:117 +#: ../src/editor.c:118 msgid "_Copy" msgstr "" -#: ../src/editor.c:119 +#: ../src/editor.c:120 msgid "_Paste" msgstr "" -#: ../src/editor.c:122 +#: ../src/editor.c:123 msgid "Select _all" msgstr "" -#: ../src/editor.c:129 +#: ../src/editor.c:130 msgid "_Unselect all" msgstr "" -#: ../src/editor.c:131 +#: ../src/editor.c:132 msgid "_Find" msgstr "" -#: ../src/editor.c:134 +#: ../src/editor.c:135 msgid "_Preferences" msgstr "_Einstellungen" -#: ../src/editor.c:141 +#: ../src/editor.c:142 msgid "_File..." msgstr "_Datei..." -#: ../src/editor.c:147 +#: ../src/editor.c:148 msgid "_About" msgstr "_Info" -#: ../src/editor.c:158 +#: ../src/editor.c:159 msgid "_File" msgstr "_Datei" -#: ../src/editor.c:159 +#: ../src/editor.c:160 msgid "_Edit" msgstr "_Bearbeitung" -#: ../src/editor.c:160 +#: ../src/editor.c:161 msgid "_Insert" msgstr "" -#: ../src/editor.c:161 +#: ../src/editor.c:162 msgid "_Help" msgstr "_Hilfe" -#: ../src/editor.c:168 +#: ../src/editor.c:169 msgid "New" msgstr "" -#: ../src/editor.c:169 +#: ../src/editor.c:170 msgid "Open" msgstr "" -#: ../src/editor.c:171 +#: ../src/editor.c:172 msgid "Save" msgstr "" -#: ../src/editor.c:172 +#: ../src/editor.c:173 msgid "Save as" msgstr "" -#: ../src/editor.c:175 +#: ../src/editor.c:176 msgid "Cut" msgstr "" -#: ../src/editor.c:176 +#: ../src/editor.c:177 msgid "Copy" msgstr "" -#: ../src/editor.c:177 +#: ../src/editor.c:178 msgid "Paste" msgstr "" -#: ../src/editor.c:180 +#: ../src/editor.c:181 msgid "Preferences" msgstr "Einstellungen" -#: ../src/editor.c:192 +#: ../src/editor.c:193 msgid "none" msgstr "" -#: ../src/editor.c:193 +#: ../src/editor.c:194 msgid "characters" msgstr "" -#: ../src/editor.c:194 +#: ../src/editor.c:195 msgid "words" msgstr "" -#: ../src/editor.c:195 +#: ../src/editor.c:196 msgid "words then characters" msgstr "" -#: ../src/editor.c:278 +#: ../src/editor.c:279 msgid "Text editor - " msgstr "" -#: ../src/editor.c:279 +#: ../src/editor.c:280 msgid "(Untitled)" msgstr "" -#: ../src/editor.c:392 +#: ../src/editor.c:393 msgid "translator-credits" msgstr "Pierre Pronchery " -#: ../src/editor.c:428 +#: ../src/editor.c:429 msgid "Could not save configuration" msgstr "" -#: ../src/editor.c:445 ../src/editor.c:454 ../src/editor.c:884 -#: ../src/editor.c:889 +#: ../src/editor.c:446 ../src/editor.c:455 ../src/editor.c:914 +#: ../src/editor.c:919 msgid "Question" msgstr "" -#: ../src/editor.c:470 ../src/editor.c:475 +#: ../src/editor.c:471 ../src/editor.c:476 msgid "Error" msgstr "Fehler" -#: ../src/editor.c:497 ../src/editor.c:721 +#: ../src/editor.c:498 ../src/editor.c:751 msgid "" "There are unsaved changes.\n" "Discard or save them?" msgstr "" -#: ../src/editor.c:557 +#: ../src/editor.c:561 msgid "Find text" msgstr "" -#: ../src/editor.c:568 +#: ../src/editor.c:572 msgid "Text:" msgstr "Text:" -#: ../src/editor.c:575 +#: ../src/editor.c:583 msgid "Case-sensitive" msgstr "" -#: ../src/editor.c:577 +#: ../src/editor.c:585 msgid "Wrap" msgstr "" -#: ../src/editor.c:600 +#: ../src/editor.c:628 msgid "Text not found" msgstr "" -#: ../src/editor.c:679 +#: ../src/editor.c:709 msgid "Insert file..." msgstr "" -#: ../src/editor.c:685 ../src/editor.c:798 +#: ../src/editor.c:715 ../src/editor.c:828 msgid "Text files" msgstr "" -#: ../src/editor.c:689 ../src/editor.c:802 +#: ../src/editor.c:719 ../src/editor.c:832 msgid "All files" msgstr "" -#: ../src/editor.c:727 +#: ../src/editor.c:757 msgid "Discard" msgstr "" -#: ../src/editor.c:792 +#: ../src/editor.c:822 msgid "Open file..." msgstr "Offnen..." -#: ../src/editor.c:860 +#: ../src/editor.c:890 msgid "Partial write" msgstr "" -#: ../src/editor.c:888 +#: ../src/editor.c:918 msgid "This file already exists. Overwrite?" msgstr "" -#: ../src/editor.c:897 +#: ../src/editor.c:927 msgid "Allocation error" msgstr "" -#: ../src/editor.c:912 +#: ../src/editor.c:942 msgid "Save as..." msgstr "" -#: ../src/editor.c:969 +#: ../src/editor.c:999 msgid "Text editor preferences" msgstr "Text Editor Einstellungen" -#: ../src/editor.c:986 +#: ../src/editor.c:1016 msgid "Font:" msgstr "" -#: ../src/editor.c:996 +#: ../src/editor.c:1026 msgid "Wrap mode:" msgstr "" diff --git a/po/es.po b/po/es.po index 9070f40..01d8985 100644 --- a/po/es.po +++ b/po/es.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Editor 0.1.1\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-12-05 06:02-0500\n" +"POT-Creation-Date: 2011-12-07 12:38+0100\n" "PO-Revision-Date: 2010-04-07 22:07+0200\n" "Last-Translator: Pierre Pronchery \n" "Language-Team: Spanish\n" @@ -16,230 +16,230 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: ../src/editor.c:94 +#: ../src/editor.c:95 msgid "_New" msgstr "" -#: ../src/editor.c:96 +#: ../src/editor.c:97 msgid "_Open" msgstr "" -#: ../src/editor.c:99 +#: ../src/editor.c:100 msgid "_Save" msgstr "" -#: ../src/editor.c:101 +#: ../src/editor.c:102 msgid "_Save as..." msgstr "" -#: ../src/editor.c:104 +#: ../src/editor.c:105 msgid "_Close" msgstr "" -#: ../src/editor.c:111 +#: ../src/editor.c:112 msgid "_Undo" msgstr "" -#: ../src/editor.c:113 +#: ../src/editor.c:114 msgid "_Redo" msgstr "" -#: ../src/editor.c:115 +#: ../src/editor.c:116 msgid "_Cut" msgstr "" -#: ../src/editor.c:117 +#: ../src/editor.c:118 msgid "_Copy" msgstr "" -#: ../src/editor.c:119 +#: ../src/editor.c:120 msgid "_Paste" msgstr "" -#: ../src/editor.c:122 +#: ../src/editor.c:123 msgid "Select _all" msgstr "" -#: ../src/editor.c:129 +#: ../src/editor.c:130 msgid "_Unselect all" msgstr "" -#: ../src/editor.c:131 +#: ../src/editor.c:132 msgid "_Find" msgstr "" -#: ../src/editor.c:134 +#: ../src/editor.c:135 msgid "_Preferences" msgstr "_Preferencias" -#: ../src/editor.c:141 +#: ../src/editor.c:142 msgid "_File..." msgstr "" -#: ../src/editor.c:147 +#: ../src/editor.c:148 msgid "_About" msgstr "" -#: ../src/editor.c:158 +#: ../src/editor.c:159 msgid "_File" msgstr "" -#: ../src/editor.c:159 +#: ../src/editor.c:160 msgid "_Edit" msgstr "" -#: ../src/editor.c:160 +#: ../src/editor.c:161 msgid "_Insert" msgstr "" -#: ../src/editor.c:161 +#: ../src/editor.c:162 msgid "_Help" msgstr "" -#: ../src/editor.c:168 +#: ../src/editor.c:169 msgid "New" msgstr "" -#: ../src/editor.c:169 +#: ../src/editor.c:170 msgid "Open" msgstr "" -#: ../src/editor.c:171 +#: ../src/editor.c:172 msgid "Save" msgstr "" -#: ../src/editor.c:172 +#: ../src/editor.c:173 msgid "Save as" msgstr "" -#: ../src/editor.c:175 +#: ../src/editor.c:176 msgid "Cut" msgstr "" -#: ../src/editor.c:176 +#: ../src/editor.c:177 msgid "Copy" msgstr "" -#: ../src/editor.c:177 +#: ../src/editor.c:178 msgid "Paste" msgstr "" -#: ../src/editor.c:180 +#: ../src/editor.c:181 msgid "Preferences" msgstr "" -#: ../src/editor.c:192 +#: ../src/editor.c:193 msgid "none" msgstr "" -#: ../src/editor.c:193 +#: ../src/editor.c:194 msgid "characters" msgstr "" -#: ../src/editor.c:194 +#: ../src/editor.c:195 msgid "words" msgstr "" -#: ../src/editor.c:195 +#: ../src/editor.c:196 msgid "words then characters" msgstr "" -#: ../src/editor.c:278 +#: ../src/editor.c:279 msgid "Text editor - " msgstr "" -#: ../src/editor.c:279 +#: ../src/editor.c:280 msgid "(Untitled)" msgstr "" -#: ../src/editor.c:392 +#: ../src/editor.c:393 msgid "translator-credits" msgstr "" -#: ../src/editor.c:428 +#: ../src/editor.c:429 msgid "Could not save configuration" msgstr "" -#: ../src/editor.c:445 ../src/editor.c:454 ../src/editor.c:884 -#: ../src/editor.c:889 +#: ../src/editor.c:446 ../src/editor.c:455 ../src/editor.c:914 +#: ../src/editor.c:919 msgid "Question" msgstr "" -#: ../src/editor.c:470 ../src/editor.c:475 +#: ../src/editor.c:471 ../src/editor.c:476 msgid "Error" msgstr "" -#: ../src/editor.c:497 ../src/editor.c:721 +#: ../src/editor.c:498 ../src/editor.c:751 msgid "" "There are unsaved changes.\n" "Discard or save them?" msgstr "" -#: ../src/editor.c:557 +#: ../src/editor.c:561 msgid "Find text" msgstr "" -#: ../src/editor.c:568 +#: ../src/editor.c:572 msgid "Text:" msgstr "" -#: ../src/editor.c:575 +#: ../src/editor.c:583 msgid "Case-sensitive" msgstr "" -#: ../src/editor.c:577 +#: ../src/editor.c:585 msgid "Wrap" msgstr "" -#: ../src/editor.c:600 +#: ../src/editor.c:628 msgid "Text not found" msgstr "" -#: ../src/editor.c:679 +#: ../src/editor.c:709 msgid "Insert file..." msgstr "" -#: ../src/editor.c:685 ../src/editor.c:798 +#: ../src/editor.c:715 ../src/editor.c:828 msgid "Text files" msgstr "" -#: ../src/editor.c:689 ../src/editor.c:802 +#: ../src/editor.c:719 ../src/editor.c:832 msgid "All files" msgstr "" -#: ../src/editor.c:727 +#: ../src/editor.c:757 msgid "Discard" msgstr "" -#: ../src/editor.c:792 +#: ../src/editor.c:822 msgid "Open file..." msgstr "" -#: ../src/editor.c:860 +#: ../src/editor.c:890 msgid "Partial write" msgstr "" -#: ../src/editor.c:888 +#: ../src/editor.c:918 msgid "This file already exists. Overwrite?" msgstr "" -#: ../src/editor.c:897 +#: ../src/editor.c:927 msgid "Allocation error" msgstr "" -#: ../src/editor.c:912 +#: ../src/editor.c:942 msgid "Save as..." msgstr "" -#: ../src/editor.c:969 +#: ../src/editor.c:999 msgid "Text editor preferences" msgstr "" -#: ../src/editor.c:986 +#: ../src/editor.c:1016 msgid "Font:" msgstr "" -#: ../src/editor.c:996 +#: ../src/editor.c:1026 msgid "Wrap mode:" msgstr "" diff --git a/po/fr.po b/po/fr.po index ba054d6..56acd9e 100644 --- a/po/fr.po +++ b/po/fr.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Editor 0.1.1\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-12-05 06:02-0500\n" +"POT-Creation-Date: 2011-12-07 12:38+0100\n" "PO-Revision-Date: 2010-04-11 12:32+0200\n" "Last-Translator: Calimero \n" "Language-Team: French\n" @@ -16,162 +16,162 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" -#: ../src/editor.c:94 +#: ../src/editor.c:95 msgid "_New" msgstr "_Nouveau" -#: ../src/editor.c:96 +#: ../src/editor.c:97 msgid "_Open" msgstr "_Ouvrir" -#: ../src/editor.c:99 +#: ../src/editor.c:100 msgid "_Save" msgstr "_Enregistrer" -#: ../src/editor.c:101 +#: ../src/editor.c:102 msgid "_Save as..." msgstr "_Enregistrer sous..." -#: ../src/editor.c:104 +#: ../src/editor.c:105 msgid "_Close" msgstr "_Fermer" -#: ../src/editor.c:111 +#: ../src/editor.c:112 msgid "_Undo" msgstr "_Annuler" -#: ../src/editor.c:113 +#: ../src/editor.c:114 msgid "_Redo" msgstr "_Rétablir" -#: ../src/editor.c:115 +#: ../src/editor.c:116 msgid "_Cut" msgstr "Co_uper" -#: ../src/editor.c:117 +#: ../src/editor.c:118 msgid "_Copy" msgstr "_Copier" -#: ../src/editor.c:119 +#: ../src/editor.c:120 msgid "_Paste" msgstr "C_oller" -#: ../src/editor.c:122 +#: ../src/editor.c:123 msgid "Select _all" msgstr "Sélectionner _tout" -#: ../src/editor.c:129 +#: ../src/editor.c:130 msgid "_Unselect all" msgstr "Tout _désélectionner" -#: ../src/editor.c:131 +#: ../src/editor.c:132 msgid "_Find" msgstr "_Rechercher" -#: ../src/editor.c:134 +#: ../src/editor.c:135 msgid "_Preferences" msgstr "_Préférences" -#: ../src/editor.c:141 +#: ../src/editor.c:142 msgid "_File..." msgstr "_Fichier..." -#: ../src/editor.c:147 +#: ../src/editor.c:148 msgid "_About" msgstr "À _propos" -#: ../src/editor.c:158 +#: ../src/editor.c:159 msgid "_File" msgstr "_Fichier" -#: ../src/editor.c:159 +#: ../src/editor.c:160 msgid "_Edit" msgstr "É_dition" -#: ../src/editor.c:160 +#: ../src/editor.c:161 msgid "_Insert" msgstr "_Insertion" -#: ../src/editor.c:161 +#: ../src/editor.c:162 msgid "_Help" msgstr "_Aide" -#: ../src/editor.c:168 +#: ../src/editor.c:169 msgid "New" msgstr "Nouveau" -#: ../src/editor.c:169 +#: ../src/editor.c:170 msgid "Open" msgstr "Ouvrir" -#: ../src/editor.c:171 +#: ../src/editor.c:172 msgid "Save" msgstr "Enregistrer" -#: ../src/editor.c:172 +#: ../src/editor.c:173 msgid "Save as" msgstr "Enregistrer sous" -#: ../src/editor.c:175 +#: ../src/editor.c:176 msgid "Cut" msgstr "Couper" -#: ../src/editor.c:176 +#: ../src/editor.c:177 msgid "Copy" msgstr "Copier" -#: ../src/editor.c:177 +#: ../src/editor.c:178 msgid "Paste" msgstr "Coller" -#: ../src/editor.c:180 +#: ../src/editor.c:181 msgid "Preferences" msgstr "Préférences" -#: ../src/editor.c:192 +#: ../src/editor.c:193 msgid "none" msgstr "aucun" -#: ../src/editor.c:193 +#: ../src/editor.c:194 msgid "characters" msgstr "caractères" -#: ../src/editor.c:194 +#: ../src/editor.c:195 msgid "words" msgstr "mots" -#: ../src/editor.c:195 +#: ../src/editor.c:196 msgid "words then characters" msgstr "mots puis caractères" -#: ../src/editor.c:278 +#: ../src/editor.c:279 msgid "Text editor - " msgstr "Éditeur de texte - " -#: ../src/editor.c:279 +#: ../src/editor.c:280 msgid "(Untitled)" msgstr "(Sans titre)" -#: ../src/editor.c:392 +#: ../src/editor.c:393 msgid "translator-credits" msgstr "" "Calimero \n" "Pierre Pronchery " -#: ../src/editor.c:428 +#: ../src/editor.c:429 msgid "Could not save configuration" msgstr "Erreur lors de la sauvegarde de la configuration" -#: ../src/editor.c:445 ../src/editor.c:454 ../src/editor.c:884 -#: ../src/editor.c:889 +#: ../src/editor.c:446 ../src/editor.c:455 ../src/editor.c:914 +#: ../src/editor.c:919 msgid "Question" -msgstr "" +msgstr "Question" -#: ../src/editor.c:470 ../src/editor.c:475 +#: ../src/editor.c:471 ../src/editor.c:476 msgid "Error" msgstr "Erreur" -#: ../src/editor.c:497 ../src/editor.c:721 +#: ../src/editor.c:498 ../src/editor.c:751 msgid "" "There are unsaved changes.\n" "Discard or save them?" @@ -179,71 +179,71 @@ msgstr "" "Il y a des changements non enregistrés.\n" "Abandonner ou enregistrer ?" -#: ../src/editor.c:557 +#: ../src/editor.c:561 msgid "Find text" msgstr "Rechercher" -#: ../src/editor.c:568 +#: ../src/editor.c:572 msgid "Text:" msgstr "Texte :" -#: ../src/editor.c:575 +#: ../src/editor.c:583 msgid "Case-sensitive" msgstr "Sensible à la casse" -#: ../src/editor.c:577 +#: ../src/editor.c:585 msgid "Wrap" msgstr "Boucler" -#: ../src/editor.c:600 +#: ../src/editor.c:628 msgid "Text not found" msgstr "Texte non trouvé" -#: ../src/editor.c:679 +#: ../src/editor.c:709 msgid "Insert file..." msgstr "Insérer un fichier..." -#: ../src/editor.c:685 ../src/editor.c:798 +#: ../src/editor.c:715 ../src/editor.c:828 msgid "Text files" msgstr "Fichiers texte" -#: ../src/editor.c:689 ../src/editor.c:802 +#: ../src/editor.c:719 ../src/editor.c:832 msgid "All files" msgstr "Tous les fichiers" -#: ../src/editor.c:727 +#: ../src/editor.c:757 msgid "Discard" msgstr "Annuler" -#: ../src/editor.c:792 +#: ../src/editor.c:822 msgid "Open file..." msgstr "Ouvrir un fichier..." -#: ../src/editor.c:860 +#: ../src/editor.c:890 msgid "Partial write" msgstr "Écriture partielle" -#: ../src/editor.c:888 +#: ../src/editor.c:918 msgid "This file already exists. Overwrite?" msgstr "Le fichier existe déjà. L'écraser ?" -#: ../src/editor.c:897 +#: ../src/editor.c:927 msgid "Allocation error" msgstr "Erreur d'allocation" -#: ../src/editor.c:912 +#: ../src/editor.c:942 msgid "Save as..." msgstr "Enregistrer sous..." -#: ../src/editor.c:969 +#: ../src/editor.c:999 msgid "Text editor preferences" msgstr "Préférences de l'éditeur de texte" -#: ../src/editor.c:986 +#: ../src/editor.c:1016 msgid "Font:" msgstr "Police :" -#: ../src/editor.c:996 +#: ../src/editor.c:1026 msgid "Wrap mode:" msgstr "Retour à la ligne :" diff --git a/po/it.po b/po/it.po index 38fd78c..3a86221 100644 --- a/po/it.po +++ b/po/it.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Editor 0.1.1\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-12-05 06:02-0500\n" +"POT-Creation-Date: 2011-12-07 12:38+0100\n" "PO-Revision-Date: 2010-04-09 16:43+0200\n" "Last-Translator: Pierre Pronchery \n" "Language-Team: Italian\n" @@ -17,230 +17,230 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: ../src/editor.c:94 +#: ../src/editor.c:95 msgid "_New" msgstr "" -#: ../src/editor.c:96 +#: ../src/editor.c:97 msgid "_Open" msgstr "" -#: ../src/editor.c:99 +#: ../src/editor.c:100 msgid "_Save" msgstr "" -#: ../src/editor.c:101 +#: ../src/editor.c:102 msgid "_Save as..." msgstr "" -#: ../src/editor.c:104 +#: ../src/editor.c:105 msgid "_Close" msgstr "" -#: ../src/editor.c:111 +#: ../src/editor.c:112 msgid "_Undo" msgstr "" -#: ../src/editor.c:113 +#: ../src/editor.c:114 msgid "_Redo" msgstr "" -#: ../src/editor.c:115 +#: ../src/editor.c:116 msgid "_Cut" msgstr "" -#: ../src/editor.c:117 +#: ../src/editor.c:118 msgid "_Copy" msgstr "" -#: ../src/editor.c:119 +#: ../src/editor.c:120 msgid "_Paste" msgstr "" -#: ../src/editor.c:122 +#: ../src/editor.c:123 msgid "Select _all" msgstr "" -#: ../src/editor.c:129 +#: ../src/editor.c:130 msgid "_Unselect all" msgstr "" -#: ../src/editor.c:131 +#: ../src/editor.c:132 msgid "_Find" msgstr "" -#: ../src/editor.c:134 +#: ../src/editor.c:135 msgid "_Preferences" msgstr "" -#: ../src/editor.c:141 +#: ../src/editor.c:142 msgid "_File..." msgstr "" -#: ../src/editor.c:147 +#: ../src/editor.c:148 msgid "_About" msgstr "" -#: ../src/editor.c:158 +#: ../src/editor.c:159 msgid "_File" msgstr "" -#: ../src/editor.c:159 +#: ../src/editor.c:160 msgid "_Edit" msgstr "" -#: ../src/editor.c:160 +#: ../src/editor.c:161 msgid "_Insert" msgstr "" -#: ../src/editor.c:161 +#: ../src/editor.c:162 msgid "_Help" msgstr "" -#: ../src/editor.c:168 +#: ../src/editor.c:169 msgid "New" msgstr "" -#: ../src/editor.c:169 +#: ../src/editor.c:170 msgid "Open" msgstr "" -#: ../src/editor.c:171 +#: ../src/editor.c:172 msgid "Save" msgstr "" -#: ../src/editor.c:172 +#: ../src/editor.c:173 msgid "Save as" msgstr "" -#: ../src/editor.c:175 +#: ../src/editor.c:176 msgid "Cut" msgstr "" -#: ../src/editor.c:176 +#: ../src/editor.c:177 msgid "Copy" msgstr "" -#: ../src/editor.c:177 +#: ../src/editor.c:178 msgid "Paste" msgstr "" -#: ../src/editor.c:180 +#: ../src/editor.c:181 msgid "Preferences" msgstr "" -#: ../src/editor.c:192 +#: ../src/editor.c:193 msgid "none" msgstr "" -#: ../src/editor.c:193 +#: ../src/editor.c:194 msgid "characters" msgstr "" -#: ../src/editor.c:194 +#: ../src/editor.c:195 msgid "words" msgstr "" -#: ../src/editor.c:195 +#: ../src/editor.c:196 msgid "words then characters" msgstr "" -#: ../src/editor.c:278 +#: ../src/editor.c:279 msgid "Text editor - " msgstr "" -#: ../src/editor.c:279 +#: ../src/editor.c:280 msgid "(Untitled)" msgstr "" -#: ../src/editor.c:392 +#: ../src/editor.c:393 msgid "translator-credits" msgstr "" -#: ../src/editor.c:428 +#: ../src/editor.c:429 msgid "Could not save configuration" msgstr "" -#: ../src/editor.c:445 ../src/editor.c:454 ../src/editor.c:884 -#: ../src/editor.c:889 +#: ../src/editor.c:446 ../src/editor.c:455 ../src/editor.c:914 +#: ../src/editor.c:919 msgid "Question" msgstr "" -#: ../src/editor.c:470 ../src/editor.c:475 +#: ../src/editor.c:471 ../src/editor.c:476 msgid "Error" msgstr "" -#: ../src/editor.c:497 ../src/editor.c:721 +#: ../src/editor.c:498 ../src/editor.c:751 msgid "" "There are unsaved changes.\n" "Discard or save them?" msgstr "" -#: ../src/editor.c:557 +#: ../src/editor.c:561 msgid "Find text" msgstr "" -#: ../src/editor.c:568 +#: ../src/editor.c:572 msgid "Text:" msgstr "" -#: ../src/editor.c:575 +#: ../src/editor.c:583 msgid "Case-sensitive" msgstr "" -#: ../src/editor.c:577 +#: ../src/editor.c:585 msgid "Wrap" msgstr "" -#: ../src/editor.c:600 +#: ../src/editor.c:628 msgid "Text not found" msgstr "" -#: ../src/editor.c:679 +#: ../src/editor.c:709 msgid "Insert file..." msgstr "" -#: ../src/editor.c:685 ../src/editor.c:798 +#: ../src/editor.c:715 ../src/editor.c:828 msgid "Text files" msgstr "" -#: ../src/editor.c:689 ../src/editor.c:802 +#: ../src/editor.c:719 ../src/editor.c:832 msgid "All files" msgstr "" -#: ../src/editor.c:727 +#: ../src/editor.c:757 msgid "Discard" msgstr "" -#: ../src/editor.c:792 +#: ../src/editor.c:822 msgid "Open file..." msgstr "" -#: ../src/editor.c:860 +#: ../src/editor.c:890 msgid "Partial write" msgstr "" -#: ../src/editor.c:888 +#: ../src/editor.c:918 msgid "This file already exists. Overwrite?" msgstr "" -#: ../src/editor.c:897 +#: ../src/editor.c:927 msgid "Allocation error" msgstr "" -#: ../src/editor.c:912 +#: ../src/editor.c:942 msgid "Save as..." msgstr "" -#: ../src/editor.c:969 +#: ../src/editor.c:999 msgid "Text editor preferences" msgstr "" -#: ../src/editor.c:986 +#: ../src/editor.c:1016 msgid "Font:" msgstr "" -#: ../src/editor.c:996 +#: ../src/editor.c:1026 msgid "Wrap mode:" msgstr "" diff --git a/src/editor.c b/src/editor.c index 346cb62..781cb13 100644 --- a/src/editor.c +++ b/src/editor.c @@ -15,8 +15,8 @@ static char const _license[] = "You should have received a copy of the GNU General Public License\n" "along with this program. If not, see .\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) */ + * - consider using GtkSourceView also/instead + * - move the "find" dialog over the status bar (and in Surfer too) */ @@ -60,6 +60,7 @@ struct _Editor GtkWidget * pr_wrap; /* find */ GtkWidget * fi_dialog; + GtkListStore * fi_store; GtkWidget * fi_text; GtkWidget * fi_case; GtkWidget * fi_wrap; @@ -541,10 +542,13 @@ static void _on_find_response(GtkWidget * widget, gint response, gpointer data); void editor_find(Editor * editor, char const * text) { + GtkWidget * entry; + if(editor->fi_dialog == NULL) _find_dialog(editor); + entry = gtk_bin_get_child(GTK_BIN(editor->fi_text)); if(text != NULL) - gtk_entry_set_text(GTK_ENTRY(editor->fi_text), text); + gtk_entry_set_text(GTK_ENTRY(entry), text); gtk_window_present(GTK_WINDOW(editor->fi_dialog)); } @@ -567,9 +571,13 @@ static void _find_dialog(Editor * editor) hbox = gtk_hbox_new(FALSE, 0); widget = gtk_label_new(_("Text:")); gtk_box_pack_start(GTK_BOX(hbox), widget, FALSE, TRUE, 0); - editor->fi_text = gtk_entry_new(); - g_signal_connect(G_OBJECT(editor->fi_text), "activate", G_CALLBACK( - _on_find_activate), editor); + editor->fi_store = gtk_list_store_new(1, G_TYPE_STRING); + editor->fi_text = gtk_combo_box_new_with_model_and_entry(GTK_TREE_MODEL( + editor->fi_store)); + gtk_combo_box_set_entry_text_column(GTK_COMBO_BOX(editor->fi_text), 0); + widget = gtk_bin_get_child(GTK_BIN(editor->fi_text)); + g_signal_connect(widget, "activate", G_CALLBACK(_on_find_activate), + editor); gtk_box_pack_start(GTK_BOX(hbox), editor->fi_text, TRUE, TRUE, 4); gtk_box_pack_start(GTK_BOX(vbox), hbox, TRUE, TRUE, 4); editor->fi_case = gtk_check_button_new_with_label(_("Case-sensitive")); @@ -585,12 +593,32 @@ static void _on_find_activate(GtkWidget * widget, gpointer data) { Editor * editor = data; char const * text; + GtkTreeModel * model = GTK_TREE_MODEL(editor->fi_store); + GtkTreeIter iter; + gboolean valid; + char * p; + int res; gboolean sensitive; gboolean wrap; if((text = gtk_entry_get_text(GTK_ENTRY(widget))) == NULL || strlen(text) == 0) return; + /* only append the text currently searched if not already known */ + for(valid = gtk_tree_model_get_iter_first(model, &iter); valid == TRUE; + valid = gtk_tree_model_iter_next(model, &iter)) + { + gtk_tree_model_get(model, &iter, 0, &p, -1); + res = strcmp(text, p); + free(p); + if(res == 0) + break; + } + if(valid == FALSE) + { + gtk_list_store_append(editor->fi_store, &iter); + gtk_list_store_set(editor->fi_store, &iter, 0, text, -1); + } sensitive = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON( editor->fi_case)); wrap = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON( @@ -603,6 +631,7 @@ static void _on_find_activate(GtkWidget * widget, gpointer data) static void _on_find_response(GtkWidget * widget, gint response, gpointer data) { Editor * editor = data; + GtkWidget * entry; if(response != GTK_RESPONSE_ACCEPT) { @@ -611,7 +640,8 @@ static void _on_find_response(GtkWidget * widget, gint response, gpointer data) editor->fi_dialog = NULL; return; } - _on_find_activate(editor->fi_text, editor); + entry = gtk_bin_get_child(GTK_BIN(editor->fi_text)); + _on_find_activate(entry, editor); }