From 9c35eb0defcb6982c7a442a75bf3075e012ea456 Mon Sep 17 00:00:00 2001 From: Chris Allegretta Date: Wed, 13 Sep 2000 14:24:52 +0000 Subject: [PATCH] Made insert key call do_insertfile() git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@219 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 1 + nano.c | 10 +++++++++- po/de.gmo | Bin 14937 -> 14937 bytes po/de.po | 24 ++++++++++++------------ po/es.gmo | Bin 17318 -> 17318 bytes po/es.po | 24 ++++++++++++------------ po/fi.gmo | Bin 13615 -> 13615 bytes po/fi.po | 24 ++++++++++++------------ po/fr.po | 24 ++++++++++++------------ po/id.gmo | Bin 13268 -> 13268 bytes po/id.po | 24 ++++++++++++------------ po/it.gmo | Bin 13045 -> 13045 bytes po/it.po | 24 ++++++++++++------------ po/nano.pot | 8 ++++---- 14 files changed, 86 insertions(+), 77 deletions(-) diff --git a/ChangeLog b/ChangeLog index cdfc4868..2424b629 100644 --- a/ChangeLog +++ b/ChangeLog @@ -18,6 +18,7 @@ CVS code - because we not longer use keypad() (see below). - Removed keypad() call because nano was not working with the keypad in many terms, which is very bad. + - Made insert key call do_insertfile(). do_toggle() - Rewrote function to allow NOHELP toggle to wotk on systems without a working resizewin(). New function window_init(). diff --git a/nano.c b/nano.c index d20c4f1e..3394731e 100644 --- a/nano.c +++ b/nano.c @@ -1949,20 +1949,28 @@ int main(int argc, char *argv[]) break; case '2': /* Alt-[-2-[0,1,3,4] = F9-F12 in many terms */ kbinput = wgetch(edit); - wgetch(edit); switch (kbinput) { case '0': kbinput = KEY_F(9); + wgetch(edit); break; case '1': kbinput = KEY_F(10); + wgetch(edit); break; case '3': kbinput = KEY_F(11); + wgetch(edit); break; case '4': kbinput = KEY_F(12); + wgetch(edit); break; + case 126: /* Hack, make insert key do something + usefile, like insert file */ + do_insertfile(); + keyhandled = 1; + break; #ifdef DEBUG default: fprintf(stderr, _("I got Alt-[-2-%c! (%d)\n"), diff --git a/po/de.gmo b/po/de.gmo index 59d6be470fb776fb183b8dc128a19729a6d23a0c..541435622d1e2df4ab8cb19f7fbca6e01bbc061e 100644 GIT binary patch delta 20 bcmcava\n" "Language-Team: German \n" @@ -710,52 +710,52 @@ msgstr "Kann Gr msgid "Cannot move bottom win" msgstr "Kann unteres Fenster nicht verschieben" -#: nano.c:1629 +#: nano.c:1631 #, c-format msgid "%s enable/disable" msgstr "" -#: nano.c:1641 +#: nano.c:1643 msgid "enabled" msgstr "" -#: nano.c:1642 +#: nano.c:1644 msgid "disabled" msgstr "" -#: nano.c:1870 +#: nano.c:1872 msgid "Main: set up windows\n" msgstr "Hauptprogramm: Fenster konfigurieren\n" -#: nano.c:1877 +#: nano.c:1879 msgid "Main: bottom win\n" msgstr "Hauptprogramm: unteres Fenster\n" -#: nano.c:1883 +#: nano.c:1885 msgid "Main: open file\n" msgstr "Hauptprogramm: Datei öffnen\n" -#: nano.c:1917 +#: nano.c:1919 #, fuzzy, c-format msgid "I got Alt-O-%c! (%d)\n" msgstr "Erhielt Alt-[-%c! (%d)\n" -#: nano.c:1941 +#: nano.c:1943 #, fuzzy, c-format msgid "I got Alt-[-1-%c! (%d)\n" msgstr "Erhielt Alt-[-%c! (%d)\n" -#: nano.c:1966 +#: nano.c:1968 #, fuzzy, c-format msgid "I got Alt-[-2-%c! (%d)\n" msgstr "Erhielt Alt-[-%c! (%d)\n" -#: nano.c:2014 +#: nano.c:2016 #, c-format msgid "I got Alt-[-%c! (%d)\n" msgstr "Erhielt Alt-[-%c! (%d)\n" -#: nano.c:2040 +#: nano.c:2042 #, c-format msgid "I got Alt-%c! (%d)\n" msgstr "Erhielt Alt-%c! (%d)\n" diff --git a/po/es.gmo b/po/es.gmo index 95829cbee77edd29be557436f100986d1e5c1873..56318585421773b986660249b7d8dcac22eb6cf7 100644 GIT binary patch delta 22 ecmZ41&bX|dal=b>c4GxY11kfI%^%daNdo|1j|de2 delta 22 ecmZ41&bX|dal=b>b|VEtODhA@%^%daNdo|1!U!4w diff --git a/po/es.po b/po/es.po index 46a7cbf7..7b2fca11 100644 --- a/po/es.po +++ b/po/es.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: 0.9.17\n" -"POT-Creation-Date: 2000-09-12 19:05-0400\n" +"POT-Creation-Date: 2000-09-13 10:08-0400\n" "PO-Revision-Date: 2000-09-07 12:14+0200\n" "Last-Translator: Jordi Mallach \n" "Language-Team: Spanish \n" @@ -701,52 +701,52 @@ msgstr "No se puede cambiar el tama msgid "Cannot move bottom win" msgstr "No se puede mover la ventana inferior" -#: nano.c:1629 +#: nano.c:1631 #, c-format msgid "%s enable/disable" msgstr "%s habilitar/deshabilitar" -#: nano.c:1641 +#: nano.c:1643 msgid "enabled" msgstr "habilitado" -#: nano.c:1642 +#: nano.c:1644 msgid "disabled" msgstr "deshabilitado" -#: nano.c:1870 +#: nano.c:1872 msgid "Main: set up windows\n" msgstr "Main: configurar las ventanas\n" -#: nano.c:1877 +#: nano.c:1879 msgid "Main: bottom win\n" msgstr "Main: ventana inferior\n" -#: nano.c:1883 +#: nano.c:1885 msgid "Main: open file\n" msgstr "Main: abrir fichero\n" -#: nano.c:1917 +#: nano.c:1919 #, fuzzy, c-format msgid "I got Alt-O-%c! (%d)\n" msgstr "Pillé Alt-[-%c! (%d)\n" -#: nano.c:1941 +#: nano.c:1943 #, fuzzy, c-format msgid "I got Alt-[-1-%c! (%d)\n" msgstr "Pillé Alt-[-%c! (%d)\n" -#: nano.c:1966 +#: nano.c:1968 #, fuzzy, c-format msgid "I got Alt-[-2-%c! (%d)\n" msgstr "Pillé Alt-[-%c! (%d)\n" -#: nano.c:2014 +#: nano.c:2016 #, c-format msgid "I got Alt-[-%c! (%d)\n" msgstr "Pillé Alt-[-%c! (%d)\n" -#: nano.c:2040 +#: nano.c:2042 #, c-format msgid "I got Alt-%c! (%d)\n" msgstr "Pillé Alt-%c! (%d)\n" diff --git a/po/fi.gmo b/po/fi.gmo index 64b4f3807cebe16fd96bd56dd7489e86561cf891..1d61ee5e09d5fcafdc42c95eaf1c8465ee3bdc31 100644 GIT binary patch delta 20 bcmZ3VwLWXZDg}091w#WX1B=ZY73xF)Q-}v3 delta 20 bcmZ3VwLWXZDg|~U1w%_K1JlhL73xF)Q@aNx diff --git a/po/fi.po b/po/fi.po index cb7daf33..fd7c5111 100644 --- a/po/fi.po +++ b/po/fi.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: nano 0.9.11\n" -"POT-Creation-Date: 2000-09-12 19:05-0400\n" +"POT-Creation-Date: 2000-09-13 10:08-0400\n" "PO-Revision-Date: 2000-06-21 23:08+03:00\n" "Last-Translator: Pauli Virtanen \n" "Language-Team: Finnish \n" @@ -701,52 +701,52 @@ msgstr "Alaikkunan kokoa ei voi muuttaa" msgid "Cannot move bottom win" msgstr "Alaikkunaa ei voi siirtää" -#: nano.c:1629 +#: nano.c:1631 #, c-format msgid "%s enable/disable" msgstr "" -#: nano.c:1641 +#: nano.c:1643 msgid "enabled" msgstr "" -#: nano.c:1642 +#: nano.c:1644 msgid "disabled" msgstr "" -#: nano.c:1870 +#: nano.c:1872 msgid "Main: set up windows\n" msgstr "Päätila: ikkunoiden asettelu\n" -#: nano.c:1877 +#: nano.c:1879 msgid "Main: bottom win\n" msgstr "Päätila: alaikkuna\n" -#: nano.c:1883 +#: nano.c:1885 msgid "Main: open file\n" msgstr "Päätila: avaa tiedosto\n" -#: nano.c:1917 +#: nano.c:1919 #, fuzzy, c-format msgid "I got Alt-O-%c! (%d)\n" msgstr "Vastaanotettu Alt-[-%c! (%d)\n" -#: nano.c:1941 +#: nano.c:1943 #, fuzzy, c-format msgid "I got Alt-[-1-%c! (%d)\n" msgstr "Vastaanotettu Alt-[-%c! (%d)\n" -#: nano.c:1966 +#: nano.c:1968 #, fuzzy, c-format msgid "I got Alt-[-2-%c! (%d)\n" msgstr "Vastaanotettu Alt-[-%c! (%d)\n" -#: nano.c:2014 +#: nano.c:2016 #, c-format msgid "I got Alt-[-%c! (%d)\n" msgstr "Vastaanotettu Alt-[-%c! (%d)\n" -#: nano.c:2040 +#: nano.c:2042 #, c-format msgid "I got Alt-%c! (%d)\n" msgstr "Vastaanotettu Alt-%c! (%d)\n" diff --git a/po/fr.po b/po/fr.po index f9e584c1..d6600760 100644 --- a/po/fr.po +++ b/po/fr.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: 0.8.9\n" -"POT-Creation-Date: 2000-09-12 19:05-0400\n" +"POT-Creation-Date: 2000-09-13 10:08-0400\n" "PO-Revision-Date: 2000-07-09 01:32+0100\n" "Last-Translator: Clement Laforet \n" "Language-Team: French \n" @@ -721,52 +721,52 @@ msgstr "Impossible de redimensionner la fen msgid "Cannot move bottom win" msgstr "Impossible de bouger la fenêtre du bas" -#: nano.c:1629 +#: nano.c:1631 #, c-format msgid "%s enable/disable" msgstr "" -#: nano.c:1641 +#: nano.c:1643 msgid "enabled" msgstr "" -#: nano.c:1642 +#: nano.c:1644 msgid "disabled" msgstr "" -#: nano.c:1870 +#: nano.c:1872 msgid "Main: set up windows\n" msgstr "Main: configuration des fenêtres\n" -#: nano.c:1877 +#: nano.c:1879 msgid "Main: bottom win\n" msgstr "Main: fenêtre du bas\n" -#: nano.c:1883 +#: nano.c:1885 msgid "Main: open file\n" msgstr "Main: ouvrir fichier\n" -#: nano.c:1917 +#: nano.c:1919 #, fuzzy, c-format msgid "I got Alt-O-%c! (%d)\n" msgstr "J'ai reçu Alt-[-%c! (%d)\n" -#: nano.c:1941 +#: nano.c:1943 #, fuzzy, c-format msgid "I got Alt-[-1-%c! (%d)\n" msgstr "J'ai reçu Alt-[-%c! (%d)\n" -#: nano.c:1966 +#: nano.c:1968 #, fuzzy, c-format msgid "I got Alt-[-2-%c! (%d)\n" msgstr "J'ai reçu Alt-[-%c! (%d)\n" -#: nano.c:2014 +#: nano.c:2016 #, c-format msgid "I got Alt-[-%c! (%d)\n" msgstr "J'ai reçu Alt-[-%c! (%d)\n" -#: nano.c:2040 +#: nano.c:2042 #, c-format msgid "I got Alt-%c! (%d)\n" msgstr "J'ai reçu Alt-%c! (%d)\n" diff --git a/po/id.gmo b/po/id.gmo index b3c2a972b645a71bfe22809bba2053275935d3eb..538ea3c518143c5e8449ade2df500f25186043ef 100644 GIT binary patch delta 20 bcmcbTekFawUwL+81w#WX1B=Zp3KxU{TUZBL delta 20 bcmcbTekFawUwL*T1w%_K1Jlhc3KxU{TZ;!@ diff --git a/po/id.po b/po/id.po index 7e439832..0abd5929 100644 --- a/po/id.po +++ b/po/id.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: nano-0.9.10\n" -"POT-Creation-Date: 2000-09-12 19:05-0400\n" +"POT-Creation-Date: 2000-09-13 10:08-0400\n" "PO-Revision-Date: 2000-06-08 20:56+07:00\n" "Last-Translator: Tedi Heriyanto \n" "Language-Team: Indonesian \n" @@ -700,52 +700,52 @@ msgstr "Tidak dapat mengganti ukuran jendela bawah" msgid "Cannot move bottom win" msgstr "Tidak dapat memindah jendela bawah" -#: nano.c:1629 +#: nano.c:1631 #, c-format msgid "%s enable/disable" msgstr "" -#: nano.c:1641 +#: nano.c:1643 msgid "enabled" msgstr "" -#: nano.c:1642 +#: nano.c:1644 msgid "disabled" msgstr "" -#: nano.c:1870 +#: nano.c:1872 msgid "Main: set up windows\n" msgstr "Main: menset jendela\n" -#: nano.c:1877 +#: nano.c:1879 msgid "Main: bottom win\n" msgstr "Main: jendela bawah\n" -#: nano.c:1883 +#: nano.c:1885 msgid "Main: open file\n" msgstr "Main: membuka file\n" -#: nano.c:1917 +#: nano.c:1919 #, fuzzy, c-format msgid "I got Alt-O-%c! (%d)\n" msgstr "Saya mendapat Alt-%c! (%d)\n" -#: nano.c:1941 +#: nano.c:1943 #, fuzzy, c-format msgid "I got Alt-[-1-%c! (%d)\n" msgstr "Saya mendapat Alt-%c! (%d)\n" -#: nano.c:1966 +#: nano.c:1968 #, fuzzy, c-format msgid "I got Alt-[-2-%c! (%d)\n" msgstr "Saya mendapat Alt-%c! (%d)\n" -#: nano.c:2014 +#: nano.c:2016 #, c-format msgid "I got Alt-[-%c! (%d)\n" msgstr "Saya mendapat Alt-%c! (%d)\n" -#: nano.c:2040 +#: nano.c:2042 #, c-format msgid "I got Alt-%c! (%d)\n" msgstr "Saya mendapat Alt-%c! (%d)\n" diff --git a/po/it.gmo b/po/it.gmo index b346fc302d3bcbdaa9af44693cc0d70ec804a45f..40f4fadf170b4899ab57dd71c23b2a4660fbb854 100644 GIT binary patch delta 20 ccmeyG`ZaaKCpmUw1w#WX1B=Z+<^Bi*0Apzgs{jB1 delta 20 ccmeyG`ZaaKCpmT_1w%_K1Jlhv<^Bi*0Arj8umAu6 diff --git a/po/it.po b/po/it.po index c87f5fcc..a657b639 100644 --- a/po/it.po +++ b/po/it.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: 0.8.7\n" -"POT-Creation-Date: 2000-09-12 19:05-0400\n" +"POT-Creation-Date: 2000-09-13 10:08-0400\n" "PO-Revision-Date: 2000-03-03 04:57+0100\n" "Last-Translator: Daniele Medri \n" "MIME-Version: 1.0\n" @@ -687,52 +687,52 @@ msgstr "Impossibile ridimensionare la finestra inferiore" msgid "Cannot move bottom win" msgstr "Impossibile spostare la finestra inferiore" -#: nano.c:1629 +#: nano.c:1631 #, c-format msgid "%s enable/disable" msgstr "" -#: nano.c:1641 +#: nano.c:1643 msgid "enabled" msgstr "" -#: nano.c:1642 +#: nano.c:1644 msgid "disabled" msgstr "" -#: nano.c:1870 +#: nano.c:1872 msgid "Main: set up windows\n" msgstr "Main: configura finestre\n" -#: nano.c:1877 +#: nano.c:1879 msgid "Main: bottom win\n" msgstr "Main: finestra inferiore\n" -#: nano.c:1883 +#: nano.c:1885 msgid "Main: open file\n" msgstr "Main: apri file\n" -#: nano.c:1917 +#: nano.c:1919 #, fuzzy, c-format msgid "I got Alt-O-%c! (%d)\n" msgstr "Premuto Alt-[-%c! (%d)\n" -#: nano.c:1941 +#: nano.c:1943 #, fuzzy, c-format msgid "I got Alt-[-1-%c! (%d)\n" msgstr "Premuto Alt-[-%c! (%d)\n" -#: nano.c:1966 +#: nano.c:1968 #, fuzzy, c-format msgid "I got Alt-[-2-%c! (%d)\n" msgstr "Premuto Alt-[-%c! (%d)\n" -#: nano.c:2014 +#: nano.c:2016 #, c-format msgid "I got Alt-[-%c! (%d)\n" msgstr "Premuto Alt-[-%c! (%d)\n" -#: nano.c:2040 +#: nano.c:2042 #, c-format msgid "I got Alt-%c! (%d)\n" msgstr "Premuto Alt-%c! (%d)\n" diff --git a/po/nano.pot b/po/nano.pot index 57e9418b..2f5125c5 100644 --- a/po/nano.pot +++ b/po/nano.pot @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2000-09-13 10:08-0400\n" +"POT-Creation-Date: 2000-09-13 10:30-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -710,17 +710,17 @@ msgstr "" msgid "I got Alt-[-1-%c! (%d)\n" msgstr "" -#: nano.c:1968 +#: nano.c:1976 #, c-format msgid "I got Alt-[-2-%c! (%d)\n" msgstr "" -#: nano.c:2016 +#: nano.c:2024 #, c-format msgid "I got Alt-[-%c! (%d)\n" msgstr "" -#: nano.c:2042 +#: nano.c:2050 #, c-format msgid "I got Alt-%c! (%d)\n" msgstr "" -- 2.39.5