Also actually added "Copy" and "Cut" to the edit menu

This commit is contained in:
Pierre Pronchery 2011-01-26 00:24:41 +00:00
parent 441eaaf4dc
commit b196898e02
8 changed files with 200 additions and 150 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-01-26 01:17+0100\n" "POT-Creation-Date: 2011-01-26 01:23+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"
@ -16,11 +16,11 @@ 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/callbacks.c:76 #: ../src/callbacks.c:94
msgid "Text editor preferences" msgid "Text editor preferences"
msgstr "Text Editor Einstellungen" msgstr "Text Editor Einstellungen"
#: ../src/callbacks.c:93 #: ../src/callbacks.c:111
msgid "Font:" msgid "Font:"
msgstr "" msgstr ""
@ -56,140 +56,140 @@ msgstr ""
msgid "_Cut" msgid "_Cut"
msgstr "" msgstr ""
#: ../src/editor.c:86 #: ../src/editor.c:87
msgid "_Copy" msgid "_Copy"
msgstr "" msgstr ""
#: ../src/editor.c:87 #: ../src/editor.c:89
msgid "_Paste" msgid "_Paste"
msgstr "" msgstr ""
#: ../src/editor.c:90 #: ../src/editor.c:92
msgid "Select _all" msgid "Select _all"
msgstr "" msgstr ""
#: ../src/editor.c:97 #: ../src/editor.c:99
msgid "_Unselect all" msgid "_Unselect all"
msgstr "" msgstr ""
#: ../src/editor.c:99 #: ../src/editor.c:101
msgid "_Find" msgid "_Find"
msgstr "" msgstr ""
#: ../src/editor.c:102 #: ../src/editor.c:104
msgid "_Preferences" msgid "_Preferences"
msgstr "_Einstellungen" msgstr "_Einstellungen"
#: ../src/editor.c:109 #: ../src/editor.c:111
msgid "_About" msgid "_About"
msgstr "_Info" msgstr "_Info"
#: ../src/editor.c:120 #: ../src/editor.c:122
msgid "_File" msgid "_File"
msgstr "_Datei" msgstr "_Datei"
#: ../src/editor.c:121 #: ../src/editor.c:123
msgid "_Edit" msgid "_Edit"
msgstr "_Bearbeitung" msgstr "_Bearbeitung"
#: ../src/editor.c:122 #: ../src/editor.c:124
msgid "_Help" msgid "_Help"
msgstr "_Hilfe" msgstr "_Hilfe"
#: ../src/editor.c:129 #: ../src/editor.c:131
msgid "New" msgid "New"
msgstr "" msgstr ""
#: ../src/editor.c:130 #: ../src/editor.c:132
msgid "Open" msgid "Open"
msgstr "" msgstr ""
#: ../src/editor.c:132 #: ../src/editor.c:134
msgid "Save" msgid "Save"
msgstr "" msgstr ""
#: ../src/editor.c:133 #: ../src/editor.c:135
msgid "Save as" msgid "Save as"
msgstr "" msgstr ""
#: ../src/editor.c:137 #: ../src/editor.c:139
msgid "Preferences" msgid "Preferences"
msgstr "Einstellungen" msgstr "Einstellungen"
#: ../src/editor.c:228 #: ../src/editor.c:230
msgid "Text editor - " msgid "Text editor - "
msgstr "" msgstr ""
#: ../src/editor.c:229 #: ../src/editor.c:231
msgid "(Untitled)" msgid "(Untitled)"
msgstr "" msgstr ""
#: ../src/editor.c:342 #: ../src/editor.c:344
msgid "Could not save configuration" msgid "Could not save configuration"
msgstr "" msgstr ""
#: ../src/editor.c:356 ../src/editor.c:361 #: ../src/editor.c:358 ../src/editor.c:363
msgid "Error" msgid "Error"
msgstr "Fehler" msgstr "Fehler"
#: ../src/editor.c:388 ../src/editor.c:398 ../src/editor.c:510 #: ../src/editor.c:390 ../src/editor.c:400 ../src/editor.c:538
#: ../src/editor.c:524 ../src/editor.c:664 ../src/editor.c:669 #: ../src/editor.c:552 ../src/editor.c:692 ../src/editor.c:697
msgid "Warning" msgid "Warning"
msgstr "Achtung" msgstr "Achtung"
#: ../src/editor.c:392 #: ../src/editor.c:394
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:430 #: ../src/editor.c:458
msgid "Find text" msgid "Find text"
msgstr "" msgstr ""
#: ../src/editor.c:437 #: ../src/editor.c:465
msgid "Text:" msgid "Text:"
msgstr "Text:" msgstr "Text:"
#: ../src/editor.c:444 #: ../src/editor.c:472
msgid "Case-sensitive" msgid "Case-sensitive"
msgstr "" msgstr ""
#: ../src/editor.c:446 #: ../src/editor.c:474
msgid "Wrap" msgid "Wrap"
msgstr "" msgstr ""
#: ../src/editor.c:469 #: ../src/editor.c:497
msgid "Text not found" msgid "Text not found"
msgstr "" msgstr ""
#: ../src/editor.c:514 #: ../src/editor.c:542
msgid "" msgid ""
"There are unsaved changes.\n" "There are unsaved changes.\n"
"Are you sure you want to discard them?" "Are you sure you want to discard them?"
msgstr "" msgstr ""
#: ../src/editor.c:521 #: ../src/editor.c:549
msgid "Discard" msgid "Discard"
msgstr "" msgstr ""
#: ../src/editor.c:580 #: ../src/editor.c:608
msgid "Open file..." msgid "Open file..."
msgstr "Offnen..." msgstr "Offnen..."
#: ../src/editor.c:640 #: ../src/editor.c:668
msgid "Partial write" msgid "Partial write"
msgstr "" msgstr ""
#: ../src/editor.c:668 #: ../src/editor.c:696
msgid "This file already exists. Overwrite?" msgid "This file already exists. Overwrite?"
msgstr "" msgstr ""
#: ../src/editor.c:677 #: ../src/editor.c:705
msgid "Allocation error" msgid "Allocation error"
msgstr "" msgstr ""
#: ../src/editor.c:692 #: ../src/editor.c:720
msgid "Save as..." msgid "Save as..."
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-01-26 01:17+0100\n" "POT-Creation-Date: 2011-01-26 01:23+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"
@ -16,11 +16,11 @@ 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/callbacks.c:76 #: ../src/callbacks.c:94
msgid "Text editor preferences" msgid "Text editor preferences"
msgstr "" msgstr ""
#: ../src/callbacks.c:93 #: ../src/callbacks.c:111
msgid "Font:" msgid "Font:"
msgstr "" msgstr ""
@ -56,140 +56,140 @@ msgstr ""
msgid "_Cut" msgid "_Cut"
msgstr "" msgstr ""
#: ../src/editor.c:86 #: ../src/editor.c:87
msgid "_Copy" msgid "_Copy"
msgstr "" msgstr ""
#: ../src/editor.c:87 #: ../src/editor.c:89
msgid "_Paste" msgid "_Paste"
msgstr "" msgstr ""
#: ../src/editor.c:90 #: ../src/editor.c:92
msgid "Select _all" msgid "Select _all"
msgstr "" msgstr ""
#: ../src/editor.c:97 #: ../src/editor.c:99
msgid "_Unselect all" msgid "_Unselect all"
msgstr "" msgstr ""
#: ../src/editor.c:99 #: ../src/editor.c:101
msgid "_Find" msgid "_Find"
msgstr "" msgstr ""
#: ../src/editor.c:102 #: ../src/editor.c:104
msgid "_Preferences" msgid "_Preferences"
msgstr "_Preferencias" msgstr "_Preferencias"
#: ../src/editor.c:109 #: ../src/editor.c:111
msgid "_About" msgid "_About"
msgstr "" msgstr ""
#: ../src/editor.c:120 #: ../src/editor.c:122
msgid "_File" msgid "_File"
msgstr "" msgstr ""
#: ../src/editor.c:121 #: ../src/editor.c:123
msgid "_Edit" msgid "_Edit"
msgstr "" msgstr ""
#: ../src/editor.c:122 #: ../src/editor.c:124
msgid "_Help" msgid "_Help"
msgstr "" msgstr ""
#: ../src/editor.c:129 #: ../src/editor.c:131
msgid "New" msgid "New"
msgstr "" msgstr ""
#: ../src/editor.c:130 #: ../src/editor.c:132
msgid "Open" msgid "Open"
msgstr "" msgstr ""
#: ../src/editor.c:132 #: ../src/editor.c:134
msgid "Save" msgid "Save"
msgstr "" msgstr ""
#: ../src/editor.c:133 #: ../src/editor.c:135
msgid "Save as" msgid "Save as"
msgstr "" msgstr ""
#: ../src/editor.c:137 #: ../src/editor.c:139
msgid "Preferences" msgid "Preferences"
msgstr "" msgstr ""
#: ../src/editor.c:228 #: ../src/editor.c:230
msgid "Text editor - " msgid "Text editor - "
msgstr "" msgstr ""
#: ../src/editor.c:229 #: ../src/editor.c:231
msgid "(Untitled)" msgid "(Untitled)"
msgstr "" msgstr ""
#: ../src/editor.c:342 #: ../src/editor.c:344
msgid "Could not save configuration" msgid "Could not save configuration"
msgstr "" msgstr ""
#: ../src/editor.c:356 ../src/editor.c:361 #: ../src/editor.c:358 ../src/editor.c:363
msgid "Error" msgid "Error"
msgstr "" msgstr ""
#: ../src/editor.c:388 ../src/editor.c:398 ../src/editor.c:510 #: ../src/editor.c:390 ../src/editor.c:400 ../src/editor.c:538
#: ../src/editor.c:524 ../src/editor.c:664 ../src/editor.c:669 #: ../src/editor.c:552 ../src/editor.c:692 ../src/editor.c:697
msgid "Warning" msgid "Warning"
msgstr "" msgstr ""
#: ../src/editor.c:392 #: ../src/editor.c:394
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:430 #: ../src/editor.c:458
msgid "Find text" msgid "Find text"
msgstr "" msgstr ""
#: ../src/editor.c:437 #: ../src/editor.c:465
msgid "Text:" msgid "Text:"
msgstr "" msgstr ""
#: ../src/editor.c:444 #: ../src/editor.c:472
msgid "Case-sensitive" msgid "Case-sensitive"
msgstr "" msgstr ""
#: ../src/editor.c:446 #: ../src/editor.c:474
msgid "Wrap" msgid "Wrap"
msgstr "" msgstr ""
#: ../src/editor.c:469 #: ../src/editor.c:497
msgid "Text not found" msgid "Text not found"
msgstr "" msgstr ""
#: ../src/editor.c:514 #: ../src/editor.c:542
msgid "" msgid ""
"There are unsaved changes.\n" "There are unsaved changes.\n"
"Are you sure you want to discard them?" "Are you sure you want to discard them?"
msgstr "" msgstr ""
#: ../src/editor.c:521 #: ../src/editor.c:549
msgid "Discard" msgid "Discard"
msgstr "" msgstr ""
#: ../src/editor.c:580 #: ../src/editor.c:608
msgid "Open file..." msgid "Open file..."
msgstr "" msgstr ""
#: ../src/editor.c:640 #: ../src/editor.c:668
msgid "Partial write" msgid "Partial write"
msgstr "" msgstr ""
#: ../src/editor.c:668 #: ../src/editor.c:696
msgid "This file already exists. Overwrite?" msgid "This file already exists. Overwrite?"
msgstr "" msgstr ""
#: ../src/editor.c:677 #: ../src/editor.c:705
msgid "Allocation error" msgid "Allocation error"
msgstr "" msgstr ""
#: ../src/editor.c:692 #: ../src/editor.c:720
msgid "Save as..." msgid "Save as..."
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-01-26 01:17+0100\n" "POT-Creation-Date: 2011-01-26 01:23+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"
@ -16,11 +16,11 @@ 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/callbacks.c:76 #: ../src/callbacks.c:94
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/callbacks.c:93 #: ../src/callbacks.c:111
msgid "Font:" msgid "Font:"
msgstr "Police :" msgstr "Police :"
@ -56,88 +56,88 @@ msgstr "_Rétablir"
msgid "_Cut" msgid "_Cut"
msgstr "Co_uper" msgstr "Co_uper"
#: ../src/editor.c:86 #: ../src/editor.c:87
msgid "_Copy" msgid "_Copy"
msgstr "_Copier" msgstr "_Copier"
#: ../src/editor.c:87 #: ../src/editor.c:89
msgid "_Paste" msgid "_Paste"
msgstr "C_oller" msgstr "C_oller"
#: ../src/editor.c:90 #: ../src/editor.c:92
msgid "Select _all" msgid "Select _all"
msgstr "Sélectionner _tout" msgstr "Sélectionner _tout"
#: ../src/editor.c:97 #: ../src/editor.c:99
msgid "_Unselect all" msgid "_Unselect all"
msgstr "Tout _désélectionner" msgstr "Tout _désélectionner"
#: ../src/editor.c:99 #: ../src/editor.c:101
msgid "_Find" msgid "_Find"
msgstr "_Rechercher" msgstr "_Rechercher"
#: ../src/editor.c:102 #: ../src/editor.c:104
msgid "_Preferences" msgid "_Preferences"
msgstr "_Préférences" msgstr "_Préférences"
#: ../src/editor.c:109 #: ../src/editor.c:111
msgid "_About" msgid "_About"
msgstr "À _propos" msgstr "À _propos"
#: ../src/editor.c:120 #: ../src/editor.c:122
msgid "_File" msgid "_File"
msgstr "_Fichier" msgstr "_Fichier"
#: ../src/editor.c:121 #: ../src/editor.c:123
msgid "_Edit" msgid "_Edit"
msgstr "É_dition" msgstr "É_dition"
#: ../src/editor.c:122 #: ../src/editor.c:124
msgid "_Help" msgid "_Help"
msgstr "_Aide" msgstr "_Aide"
#: ../src/editor.c:129 #: ../src/editor.c:131
msgid "New" msgid "New"
msgstr "Nouveau" msgstr "Nouveau"
#: ../src/editor.c:130 #: ../src/editor.c:132
msgid "Open" msgid "Open"
msgstr "Ouvrir" msgstr "Ouvrir"
#: ../src/editor.c:132 #: ../src/editor.c:134
msgid "Save" msgid "Save"
msgstr "Enregistrer" msgstr "Enregistrer"
#: ../src/editor.c:133 #: ../src/editor.c:135
msgid "Save as" msgid "Save as"
msgstr "Enregistrer sous" msgstr "Enregistrer sous"
#: ../src/editor.c:137 #: ../src/editor.c:139
msgid "Preferences" msgid "Preferences"
msgstr "Préférences" msgstr "Préférences"
#: ../src/editor.c:228 #: ../src/editor.c:230
msgid "Text editor - " msgid "Text editor - "
msgstr "Éditeur de texte - " msgstr "Éditeur de texte - "
#: ../src/editor.c:229 #: ../src/editor.c:231
msgid "(Untitled)" msgid "(Untitled)"
msgstr "(Sans titre)" msgstr "(Sans titre)"
#: ../src/editor.c:342 #: ../src/editor.c:344
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:356 ../src/editor.c:361 #: ../src/editor.c:358 ../src/editor.c:363
msgid "Error" msgid "Error"
msgstr "Erreur" msgstr "Erreur"
#: ../src/editor.c:388 ../src/editor.c:398 ../src/editor.c:510 #: ../src/editor.c:390 ../src/editor.c:400 ../src/editor.c:538
#: ../src/editor.c:524 ../src/editor.c:664 ../src/editor.c:669 #: ../src/editor.c:552 ../src/editor.c:692 ../src/editor.c:697
msgid "Warning" msgid "Warning"
msgstr "Avertissement" msgstr "Avertissement"
#: ../src/editor.c:392 #: ../src/editor.c:394
msgid "" msgid ""
"There are unsaved changes.\n" "There are unsaved changes.\n"
"Discard or save them?" "Discard or save them?"
@ -145,27 +145,27 @@ msgstr ""
"Il y a des changements non enregistrés.\n" "Il y a des changements non enregistrés.\n"
"Ignorer ou sauvegarder ?" "Ignorer ou sauvegarder ?"
#: ../src/editor.c:430 #: ../src/editor.c:458
msgid "Find text" msgid "Find text"
msgstr "Rechercher" msgstr "Rechercher"
#: ../src/editor.c:437 #: ../src/editor.c:465
msgid "Text:" msgid "Text:"
msgstr "Texte :" msgstr "Texte :"
#: ../src/editor.c:444 #: ../src/editor.c:472
msgid "Case-sensitive" msgid "Case-sensitive"
msgstr "Sensible à la casse" msgstr "Sensible à la casse"
#: ../src/editor.c:446 #: ../src/editor.c:474
msgid "Wrap" msgid "Wrap"
msgstr "Boucler" msgstr "Boucler"
#: ../src/editor.c:469 #: ../src/editor.c:497
msgid "Text not found" msgid "Text not found"
msgstr "Texte non trouvé" msgstr "Texte non trouvé"
#: ../src/editor.c:514 #: ../src/editor.c:542
msgid "" msgid ""
"There are unsaved changes.\n" "There are unsaved changes.\n"
"Are you sure you want to discard them?" "Are you sure you want to discard them?"
@ -173,27 +173,27 @@ msgstr ""
"Il y a des changements non enregistrés.\n" "Il y a des changements non enregistrés.\n"
"Êtes-vous sûr de vouloir les annuler ?" "Êtes-vous sûr de vouloir les annuler ?"
#: ../src/editor.c:521 #: ../src/editor.c:549
msgid "Discard" msgid "Discard"
msgstr "Annuler" msgstr "Annuler"
#: ../src/editor.c:580 #: ../src/editor.c:608
msgid "Open file..." msgid "Open file..."
msgstr "Ouvrir un fichier..." msgstr "Ouvrir un fichier..."
#: ../src/editor.c:640 #: ../src/editor.c:668
msgid "Partial write" msgid "Partial write"
msgstr "Écriture partielle" msgstr "Écriture partielle"
#: ../src/editor.c:668 #: ../src/editor.c:696
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:677 #: ../src/editor.c:705
msgid "Allocation error" msgid "Allocation error"
msgstr "Erreur d'allocation" msgstr "Erreur d'allocation"
#: ../src/editor.c:692 #: ../src/editor.c:720
msgid "Save as..." msgid "Save as..."
msgstr "Enregistrer sous..." msgstr "Enregistrer sous..."

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-01-26 01:17+0100\n" "POT-Creation-Date: 2011-01-26 01:23+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"
@ -17,11 +17,11 @@ 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/callbacks.c:76 #: ../src/callbacks.c:94
msgid "Text editor preferences" msgid "Text editor preferences"
msgstr "" msgstr ""
#: ../src/callbacks.c:93 #: ../src/callbacks.c:111
msgid "Font:" msgid "Font:"
msgstr "" msgstr ""
@ -57,140 +57,140 @@ msgstr ""
msgid "_Cut" msgid "_Cut"
msgstr "" msgstr ""
#: ../src/editor.c:86 #: ../src/editor.c:87
msgid "_Copy" msgid "_Copy"
msgstr "" msgstr ""
#: ../src/editor.c:87 #: ../src/editor.c:89
msgid "_Paste" msgid "_Paste"
msgstr "" msgstr ""
#: ../src/editor.c:90 #: ../src/editor.c:92
msgid "Select _all" msgid "Select _all"
msgstr "" msgstr ""
#: ../src/editor.c:97 #: ../src/editor.c:99
msgid "_Unselect all" msgid "_Unselect all"
msgstr "" msgstr ""
#: ../src/editor.c:99 #: ../src/editor.c:101
msgid "_Find" msgid "_Find"
msgstr "" msgstr ""
#: ../src/editor.c:102 #: ../src/editor.c:104
msgid "_Preferences" msgid "_Preferences"
msgstr "" msgstr ""
#: ../src/editor.c:109 #: ../src/editor.c:111
msgid "_About" msgid "_About"
msgstr "" msgstr ""
#: ../src/editor.c:120 #: ../src/editor.c:122
msgid "_File" msgid "_File"
msgstr "" msgstr ""
#: ../src/editor.c:121 #: ../src/editor.c:123
msgid "_Edit" msgid "_Edit"
msgstr "" msgstr ""
#: ../src/editor.c:122 #: ../src/editor.c:124
msgid "_Help" msgid "_Help"
msgstr "" msgstr ""
#: ../src/editor.c:129 #: ../src/editor.c:131
msgid "New" msgid "New"
msgstr "" msgstr ""
#: ../src/editor.c:130 #: ../src/editor.c:132
msgid "Open" msgid "Open"
msgstr "" msgstr ""
#: ../src/editor.c:132 #: ../src/editor.c:134
msgid "Save" msgid "Save"
msgstr "" msgstr ""
#: ../src/editor.c:133 #: ../src/editor.c:135
msgid "Save as" msgid "Save as"
msgstr "" msgstr ""
#: ../src/editor.c:137 #: ../src/editor.c:139
msgid "Preferences" msgid "Preferences"
msgstr "" msgstr ""
#: ../src/editor.c:228 #: ../src/editor.c:230
msgid "Text editor - " msgid "Text editor - "
msgstr "" msgstr ""
#: ../src/editor.c:229 #: ../src/editor.c:231
msgid "(Untitled)" msgid "(Untitled)"
msgstr "" msgstr ""
#: ../src/editor.c:342 #: ../src/editor.c:344
msgid "Could not save configuration" msgid "Could not save configuration"
msgstr "" msgstr ""
#: ../src/editor.c:356 ../src/editor.c:361 #: ../src/editor.c:358 ../src/editor.c:363
msgid "Error" msgid "Error"
msgstr "" msgstr ""
#: ../src/editor.c:388 ../src/editor.c:398 ../src/editor.c:510 #: ../src/editor.c:390 ../src/editor.c:400 ../src/editor.c:538
#: ../src/editor.c:524 ../src/editor.c:664 ../src/editor.c:669 #: ../src/editor.c:552 ../src/editor.c:692 ../src/editor.c:697
msgid "Warning" msgid "Warning"
msgstr "" msgstr ""
#: ../src/editor.c:392 #: ../src/editor.c:394
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:430 #: ../src/editor.c:458
msgid "Find text" msgid "Find text"
msgstr "" msgstr ""
#: ../src/editor.c:437 #: ../src/editor.c:465
msgid "Text:" msgid "Text:"
msgstr "" msgstr ""
#: ../src/editor.c:444 #: ../src/editor.c:472
msgid "Case-sensitive" msgid "Case-sensitive"
msgstr "" msgstr ""
#: ../src/editor.c:446 #: ../src/editor.c:474
msgid "Wrap" msgid "Wrap"
msgstr "" msgstr ""
#: ../src/editor.c:469 #: ../src/editor.c:497
msgid "Text not found" msgid "Text not found"
msgstr "" msgstr ""
#: ../src/editor.c:514 #: ../src/editor.c:542
msgid "" msgid ""
"There are unsaved changes.\n" "There are unsaved changes.\n"
"Are you sure you want to discard them?" "Are you sure you want to discard them?"
msgstr "" msgstr ""
#: ../src/editor.c:521 #: ../src/editor.c:549
msgid "Discard" msgid "Discard"
msgstr "" msgstr ""
#: ../src/editor.c:580 #: ../src/editor.c:608
msgid "Open file..." msgid "Open file..."
msgstr "" msgstr ""
#: ../src/editor.c:640 #: ../src/editor.c:668
msgid "Partial write" msgid "Partial write"
msgstr "" msgstr ""
#: ../src/editor.c:668 #: ../src/editor.c:696
msgid "This file already exists. Overwrite?" msgid "This file already exists. Overwrite?"
msgstr "" msgstr ""
#: ../src/editor.c:677 #: ../src/editor.c:705
msgid "Allocation error" msgid "Allocation error"
msgstr "" msgstr ""
#: ../src/editor.c:692 #: ../src/editor.c:720
msgid "Save as..." msgid "Save as..."
msgstr "" msgstr ""

View File

@ -33,6 +33,24 @@ gboolean on_closex(gpointer data)
} }
/* on_edit_copy */
void on_edit_copy(gpointer data)
{
Editor * editor = data;
editor_copy(editor);
}
/* on_edit_cut */
void on_edit_cut(gpointer data)
{
Editor * editor = data;
editor_cut(editor);
}
/* on_edit_find */ /* on_edit_find */
void on_edit_find(gpointer data) void on_edit_find(gpointer data)
{ {

View File

@ -23,6 +23,8 @@
/* functions */ /* functions */
gboolean on_closex(gpointer data); gboolean on_closex(gpointer data);
void on_edit_copy(gpointer data);
void on_edit_cut(gpointer data);
void on_edit_find(gpointer data); void on_edit_find(gpointer data);
void on_edit_paste(gpointer data); void on_edit_paste(gpointer data);
void on_edit_preferences(gpointer data); void on_edit_preferences(gpointer data);

View File

@ -82,8 +82,10 @@ static DesktopMenu _editor_menu_edit[] =
GDK_z }, GDK_z },
{ N_("_Redo"), NULL, GTK_STOCK_REDO, GDK_CONTROL_MASK, GDK_r }, { N_("_Redo"), NULL, GTK_STOCK_REDO, GDK_CONTROL_MASK, GDK_r },
{ "", NULL, NULL, 0, 0 }, { "", NULL, NULL, 0, 0 },
{ N_("_Cut"), NULL, GTK_STOCK_CUT, 0, 0 }, /* FIXME implement */ { N_("_Cut"), G_CALLBACK(on_edit_cut), GTK_STOCK_CUT, GDK_CONTROL_MASK,
{ N_("_Copy"), NULL, GTK_STOCK_COPY, 0, 0 }, /* FIXME implement */ GDK_x },
{ N_("_Copy"), G_CALLBACK(on_edit_copy), GTK_STOCK_COPY,
GDK_CONTROL_MASK, GDK_c },
{ N_("_Paste"), G_CALLBACK(on_edit_paste), GTK_STOCK_PASTE, { N_("_Paste"), G_CALLBACK(on_edit_paste), GTK_STOCK_PASTE,
GDK_CONTROL_MASK, GDK_v }, GDK_CONTROL_MASK, GDK_v },
{ "", NULL, NULL, 0, 0 }, { "", NULL, NULL, 0, 0 },
@ -407,6 +409,32 @@ gboolean editor_close(Editor * editor)
} }
/* editor_copy */
void editor_copy(Editor * editor)
{
GtkTextBuffer * buffer;
GtkClipboard * clipboard;
buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(editor->view));
clipboard = gtk_widget_get_clipboard(editor->view,
GDK_SELECTION_CLIPBOARD);
gtk_text_buffer_copy_clipboard(buffer, clipboard);
}
/* editor_cut */
void editor_cut(Editor * editor)
{
GtkTextBuffer * buffer;
GtkClipboard * clipboard;
buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(editor->view));
clipboard = gtk_widget_get_clipboard(editor->view,
GDK_SELECTION_CLIPBOARD);
gtk_text_buffer_cut_clipboard(buffer, clipboard, TRUE);
}
/* editor_find */ /* editor_find */
static void _find_dialog(Editor * editor); static void _find_dialog(Editor * editor);
static void _on_find_activate(GtkWidget * widget, gpointer data); static void _on_find_activate(GtkWidget * widget, gpointer data);

View File

@ -68,6 +68,8 @@ gboolean editor_close(Editor * editor);
void editor_open(Editor * editor, char const * filename); void editor_open(Editor * editor, char const * filename);
void editor_open_dialog(Editor * editor); void editor_open_dialog(Editor * editor);
void editor_copy(Editor * editor);
void editor_cut(Editor * editor);
void editor_paste(Editor * editor); void editor_paste(Editor * editor);
gboolean editor_save(Editor * editor); gboolean editor_save(Editor * editor);