diff --git a/ChangeLog b/ChangeLog index 0e9b4e9b7..11583c6ff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,10 +1,12 @@ WeeChat - Wee Enhanced Environment for Chat =========================================== -ChangeLog - 2007-08-01 +ChangeLog - 2007-08-06 Version 0.2.6 (under dev!): + * added key for setting unread marker on all buffers (default: + ctrl-S + ctrl-U) (task 7180) * fixed nick prefix display on servers that doesn't support all prefixes (bug #20025) * fixed terminal encoding detection when NLS is disabled (bug #20646) diff --git a/doc/de/key_functions.xml b/doc/de/key_functions.xml index 9fa1ba163..f367db38f 100644 --- a/doc/de/key_functions.xml +++ b/doc/de/key_functions.xml @@ -185,6 +185,10 @@ scroll_unread scrolle zur ersten, ungelesenen Zeile im Puffer + + set_unread + set unread marker for all buffers + hotlist_clear Hotlist leeren diff --git a/doc/de/weechat.de.xml b/doc/de/weechat.de.xml index 8407bc38a..8e8634ccb 100644 --- a/doc/de/weechat.de.xml +++ b/doc/de/weechat.de.xml @@ -502,7 +502,7 @@ along with this program. If not, see . Strg + C dann C - Insrer code for colored text. + Insert code for colored text. @@ -512,13 +512,13 @@ along with this program. If not, see . - Ctrl + C dann R + Strg + C dann R Insert code for reverse color. - Ctrl + C dann U + Strg + C dann U Insert code for underlined text. @@ -548,6 +548,13 @@ along with this program. If not, see . (zwei Mal: suche nach dem genauen Text) + + Strg + S dann Strg + U + + + Set unread marker on all buffers + + Strg + T diff --git a/doc/en/key_functions.xml b/doc/en/key_functions.xml index 6eab937fd..8fc9922ff 100644 --- a/doc/en/key_functions.xml +++ b/doc/en/key_functions.xml @@ -185,6 +185,10 @@ scroll_unread scroll to first unread line in buffer + + set_unread + set unread marker for all buffers + hotlist_clear clear hotlist diff --git a/doc/en/weechat.en.xml b/doc/en/weechat.en.xml index fd931e2dd..049ace3ef 100644 --- a/doc/en/weechat.en.xml +++ b/doc/en/weechat.en.xml @@ -496,7 +496,7 @@ along with this program. If not, see . Ctrl + C then C - Insrer code for colored text. + Insert code for colored text. @@ -542,6 +542,12 @@ along with this program. If not, see . (two times: search exact text) + + Ctrl + S then Ctrl + U + + Set unread marker on all buffers + + Ctrl + T diff --git a/doc/fr/key_functions.xml b/doc/fr/key_functions.xml index 95d87c9a8..6097554b6 100644 --- a/doc/fr/key_functions.xml +++ b/doc/fr/key_functions.xml @@ -185,6 +185,10 @@ scroll_unread faire dfiler jusqu' la premire ligne non lue du tampon + + set_unread + set unread marker for all buffers + hotlist_clear effacer la liste d'activit diff --git a/doc/fr/weechat.fr.xml b/doc/fr/weechat.fr.xml index edf48da68..013bdc616 100644 --- a/doc/fr/weechat.fr.xml +++ b/doc/fr/weechat.fr.xml @@ -551,6 +551,13 @@ along with this program. If not, see . (deux appuis successifs pour rechercher du texte exact) + + Ctrl + S puis Ctrl + U + + Positionner le marqueur de donnes non lues sur tous les + tampons + + Ctrl + T diff --git a/po/cs.po b/po/cs.po index 87dd3ce4c..c6cbd4b3d 100644 --- a/po/cs.po +++ b/po/cs.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.2.6-cvs\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2007-07-19 01:23+0200\n" +"POT-Creation-Date: 2007-08-06 11:23+0200\n" "PO-Revision-Date: 2007-07-18 17:44+0200\n" "Last-Translator: Jiri Golembiovsky \n" "Language-Team: weechat-dev \n" @@ -2584,40 +2584,45 @@ msgid "scroll to first unread line in buffer" msgstr "přesunout na první nepřečtenout řádku v bufferu" #: src/gui/gui-keyboard.c:140 +#, fuzzy +msgid "set unread marker on all buffers" +msgstr "nevalidní délka pro buffer" + +#: src/gui/gui-keyboard.c:142 msgid "clear hotlist" msgstr "vyčisti hotlist" -#: src/gui/gui-keyboard.c:142 +#: src/gui/gui-keyboard.c:144 msgid "clear infobar" msgstr "vyčisti infobar" -#: src/gui/gui-keyboard.c:144 +#: src/gui/gui-keyboard.c:146 msgid "refresh screen" msgstr "obnov obrazovku" -#: src/gui/gui-keyboard.c:146 +#: src/gui/gui-keyboard.c:148 msgid "grab a key" msgstr "zachytit klávesu" -#: src/gui/gui-keyboard.c:148 +#: src/gui/gui-keyboard.c:150 msgid "insert a string in command line" msgstr "vložit řetězec na řádku" -#: src/gui/gui-keyboard.c:150 +#: src/gui/gui-keyboard.c:152 msgid "search text in buffer history" msgstr "hledání textu v historii bufferu" -#: src/gui/gui-keyboard.c:478 src/common/command.c:2465 +#: src/gui/gui-keyboard.c:480 src/common/command.c:2465 #, c-format msgid "%s unable to bind key \"%s\"\n" msgstr "%s nemohu napojit kalávesu \"%s\"\n" -#: src/gui/gui-keyboard.c:506 +#: src/gui/gui-keyboard.c:508 #, c-format msgid "%s unable to bind key \"%s\" (invalid function name: \"%s\")\n" msgstr "%s nemohu napojit kalávesu \"%s\" (nevalidní jméno funkce: \"%s\")\n" -#: src/gui/gui-keyboard.c:520 +#: src/gui/gui-keyboard.c:522 #, c-format msgid "%s not enough memory for key binding\n" msgstr "%s nedostatek paměti pro klávesovou zkratku\n" @@ -4453,11 +4458,11 @@ msgstr "%sVítejte do %s%s%s, %s\n" msgid "compiled on" msgstr "kompilováno" -#: src/common/weechat.h:59 +#: src/common/weechat.h:60 msgid "WeeChat Error:" msgstr "WeeChat chyba:" -#: src/common/weechat.h:60 +#: src/common/weechat.h:61 msgid "WeeChat Warning:" msgstr "WeeChat Upozornění:" diff --git a/po/de.po b/po/de.po index c57e34d33..47c16f9dd 100644 --- a/po/de.po +++ b/po/de.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.2.6-cvs\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2007-07-19 01:23+0200\n" +"POT-Creation-Date: 2007-08-06 11:23+0200\n" "PO-Revision-Date: 2007-07-18 17:44+0200\n" "Last-Translator: Thomas Schuetz \n" "Language-Team: weechat-dev \n" @@ -2595,41 +2595,46 @@ msgid "scroll to first unread line in buffer" msgstr "scrolle zur ersten, ungelesenen Zeile im Puffer" #: src/gui/gui-keyboard.c:140 +#, fuzzy +msgid "set unread marker on all buffers" +msgstr "Fehlerhafte Pufferlänge" + +#: src/gui/gui-keyboard.c:142 msgid "clear hotlist" msgstr "Hotlist leeren" -#: src/gui/gui-keyboard.c:142 +#: src/gui/gui-keyboard.c:144 msgid "clear infobar" msgstr "Infobar leeren" -#: src/gui/gui-keyboard.c:144 +#: src/gui/gui-keyboard.c:146 msgid "refresh screen" msgstr "Bild neu aufbauen" -#: src/gui/gui-keyboard.c:146 +#: src/gui/gui-keyboard.c:148 msgid "grab a key" msgstr "Tastencode ermitteln und einfügen" -#: src/gui/gui-keyboard.c:148 +#: src/gui/gui-keyboard.c:150 msgid "insert a string in command line" msgstr "füge eine Zeichenkette in der Befehlszeile ein" -#: src/gui/gui-keyboard.c:150 +#: src/gui/gui-keyboard.c:152 msgid "search text in buffer history" msgstr "suche Text im Pufferverlauf" -#: src/gui/gui-keyboard.c:478 src/common/command.c:2465 +#: src/gui/gui-keyboard.c:480 src/common/command.c:2465 #, c-format msgid "%s unable to bind key \"%s\"\n" msgstr "%s kann die Taste \"%s\" nicht zuordnen\n" -#: src/gui/gui-keyboard.c:506 +#: src/gui/gui-keyboard.c:508 #, c-format msgid "%s unable to bind key \"%s\" (invalid function name: \"%s\")\n" msgstr "" "%s kann die Taste \"%s\" nicht zuornen (ungültiger Funktionsname: \"%s\")\n" -#: src/gui/gui-keyboard.c:520 +#: src/gui/gui-keyboard.c:522 #, c-format msgid "%s not enough memory for key binding\n" msgstr "%s nicht genügend Speicher für Tastenzuordnung\n" @@ -4490,11 +4495,11 @@ msgstr "%sWillkommen in %s%s%s, %s\n" msgid "compiled on" msgstr "kompiliert am" -#: src/common/weechat.h:59 +#: src/common/weechat.h:60 msgid "WeeChat Error:" msgstr "WeeChat-Fehler:" -#: src/common/weechat.h:60 +#: src/common/weechat.h:61 msgid "WeeChat Warning:" msgstr "WeeChat-Warnung:" diff --git a/po/es.po b/po/es.po index 75f3f85a1..d420a82ab 100644 --- a/po/es.po +++ b/po/es.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.2.6-cvs\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2007-07-19 01:23+0200\n" +"POT-Creation-Date: 2007-08-06 11:23+0200\n" "PO-Revision-Date: 2007-07-18 17:44+0200\n" "Last-Translator: Roberto Gonzlez Cardenete \n" "Language-Team: weechat-dev \n" @@ -2632,43 +2632,48 @@ msgid "scroll to first unread line in buffer" msgstr "desplazarse a la primera lnea sin leer en el bfer" #: src/gui/gui-keyboard.c:140 +#, fuzzy +msgid "set unread marker on all buffers" +msgstr "longitud invlida para un bfer" + +#: src/gui/gui-keyboard.c:142 msgid "clear hotlist" msgstr "limpiar hotlist" -#: src/gui/gui-keyboard.c:142 +#: src/gui/gui-keyboard.c:144 msgid "clear infobar" msgstr "limpiar barra de informacin" -#: src/gui/gui-keyboard.c:144 +#: src/gui/gui-keyboard.c:146 msgid "refresh screen" msgstr "recargar la pantalla" -#: src/gui/gui-keyboard.c:146 +#: src/gui/gui-keyboard.c:148 msgid "grab a key" msgstr "capturar una clave" -#: src/gui/gui-keyboard.c:148 +#: src/gui/gui-keyboard.c:150 msgid "insert a string in command line" msgstr "" -#: src/gui/gui-keyboard.c:150 +#: src/gui/gui-keyboard.c:152 #, fuzzy msgid "search text in buffer history" msgstr "sesin: cargando historial del bfer\n" -#: src/gui/gui-keyboard.c:478 src/common/command.c:2465 +#: src/gui/gui-keyboard.c:480 src/common/command.c:2465 #, c-format msgid "%s unable to bind key \"%s\"\n" msgstr "%s No ha sido posible atar la clave \"%s\"\n" -#: src/gui/gui-keyboard.c:506 +#: src/gui/gui-keyboard.c:508 #, c-format msgid "%s unable to bind key \"%s\" (invalid function name: \"%s\")\n" msgstr "" "%s No ha sido posible atar la clave \"%s\" (nombre de funcin invlido: \"%s" "\")\n" -#: src/gui/gui-keyboard.c:520 +#: src/gui/gui-keyboard.c:522 #, c-format msgid "%s not enough memory for key binding\n" msgstr "%s no hay suficiente memoria para atar la clave\n" @@ -4521,11 +4526,11 @@ msgstr "%sBienvenido a %s%s%s, %s\n" msgid "compiled on" msgstr "compilado en" -#: src/common/weechat.h:59 +#: src/common/weechat.h:60 msgid "WeeChat Error:" msgstr "Error WeeChat:" -#: src/common/weechat.h:60 +#: src/common/weechat.h:61 msgid "WeeChat Warning:" msgstr "Advertencia WeeChat:" diff --git a/po/fr.po b/po/fr.po index 0d66be0d3..f012348c3 100644 --- a/po/fr.po +++ b/po/fr.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.2.6-cvs\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2007-07-19 01:23+0200\n" -"PO-Revision-Date: 2007-07-19 01:24+0200\n" +"POT-Creation-Date: 2007-08-06 11:23+0200\n" +"PO-Revision-Date: 2007-08-06 11:23+0200\n" "Last-Translator: FlashCode \n" "Language-Team: weechat-dev \n" "MIME-Version: 1.0\n" @@ -2607,41 +2607,45 @@ msgid "scroll to first unread line in buffer" msgstr "faire défiler jusqu'à la première ligne non lue du tampon" #: src/gui/gui-keyboard.c:140 +msgid "set unread marker on all buffers" +msgstr "positionner le marqueur de données non lues sur tous les tampons" + +#: src/gui/gui-keyboard.c:142 msgid "clear hotlist" msgstr "effacer la liste d'activité" -#: src/gui/gui-keyboard.c:142 +#: src/gui/gui-keyboard.c:144 msgid "clear infobar" msgstr "effacer la barre d'infos" -#: src/gui/gui-keyboard.c:144 +#: src/gui/gui-keyboard.c:146 msgid "refresh screen" msgstr "rafraîchir l'écran" -#: src/gui/gui-keyboard.c:146 +#: src/gui/gui-keyboard.c:148 msgid "grab a key" msgstr "capturer une touche" -#: src/gui/gui-keyboard.c:148 +#: src/gui/gui-keyboard.c:150 msgid "insert a string in command line" msgstr "insérer une chaîne dans la ligne de commande" -#: src/gui/gui-keyboard.c:150 +#: src/gui/gui-keyboard.c:152 msgid "search text in buffer history" msgstr "recherche de texte dans l'historique du tampon" -#: src/gui/gui-keyboard.c:478 src/common/command.c:2465 +#: src/gui/gui-keyboard.c:480 src/common/command.c:2465 #, c-format msgid "%s unable to bind key \"%s\"\n" msgstr "%s impossible de créer la touche \"%s\"\n" -#: src/gui/gui-keyboard.c:506 +#: src/gui/gui-keyboard.c:508 #, c-format msgid "%s unable to bind key \"%s\" (invalid function name: \"%s\")\n" msgstr "" "%s impossible de créer la touche \"%s\" (nom fonction incorrect: \"%s\")\n" -#: src/gui/gui-keyboard.c:520 +#: src/gui/gui-keyboard.c:522 #, c-format msgid "%s not enough memory for key binding\n" msgstr "%s pas assez de mémoire pour la touche\n" @@ -4529,11 +4533,11 @@ msgstr "%sBienvenue dans %s%s%s, %s\n" msgid "compiled on" msgstr "compilé le" -#: src/common/weechat.h:59 +#: src/common/weechat.h:60 msgid "WeeChat Error:" msgstr "Erreur WeeChat:" -#: src/common/weechat.h:60 +#: src/common/weechat.h:61 msgid "WeeChat Warning:" msgstr "Avertissement WeeChat:" diff --git a/po/hu.po b/po/hu.po index 54396efc4..523d3623d 100644 --- a/po/hu.po +++ b/po/hu.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.2.6-cvs\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2007-07-19 01:23+0200\n" +"POT-Creation-Date: 2007-08-06 11:23+0200\n" "PO-Revision-Date: 2007-06-07 18:02+0200\n" "Last-Translator: Andras Voroskoi \n" "Language-Team: weechat-dev \n" @@ -2591,43 +2591,48 @@ msgid "scroll to first unread line in buffer" msgstr "ugrás az első olvasatlan sorra a pufferben" #: src/gui/gui-keyboard.c:140 +#, fuzzy +msgid "set unread marker on all buffers" +msgstr "érvénytelen pufferhossz" + +#: src/gui/gui-keyboard.c:142 msgid "clear hotlist" msgstr "hotlist törlése" -#: src/gui/gui-keyboard.c:142 +#: src/gui/gui-keyboard.c:144 msgid "clear infobar" msgstr "információs pult törlése" -#: src/gui/gui-keyboard.c:144 +#: src/gui/gui-keyboard.c:146 msgid "refresh screen" msgstr "képernyő frissítése" -#: src/gui/gui-keyboard.c:146 +#: src/gui/gui-keyboard.c:148 msgid "grab a key" msgstr "vállasszon billentyűt" -#: src/gui/gui-keyboard.c:148 +#: src/gui/gui-keyboard.c:150 msgid "insert a string in command line" msgstr "" -#: src/gui/gui-keyboard.c:150 +#: src/gui/gui-keyboard.c:152 #, fuzzy msgid "search text in buffer history" msgstr "folyamat: puffertörténet betöltése\n" -#: src/gui/gui-keyboard.c:478 src/common/command.c:2465 +#: src/gui/gui-keyboard.c:480 src/common/command.c:2465 #, c-format msgid "%s unable to bind key \"%s\"\n" msgstr "%s nem sikerült a(z) \"%s\" billentyűt hozzárendelni\n" -#: src/gui/gui-keyboard.c:506 +#: src/gui/gui-keyboard.c:508 #, c-format msgid "%s unable to bind key \"%s\" (invalid function name: \"%s\")\n" msgstr "" "%s nem sikerült a(z) \"%s\" billentyűt hozzárendelni (érvénytelen " "funkciónév: \"%s\")\n" -#: src/gui/gui-keyboard.c:520 +#: src/gui/gui-keyboard.c:522 #, c-format msgid "%s not enough memory for key binding\n" msgstr "%s nincs elég memória a billentyűhozzárendeléshez\n" @@ -4473,11 +4478,11 @@ msgstr "%sÜdvözöli a %s%s%s, %s\n" msgid "compiled on" msgstr "lefordítva:" -#: src/common/weechat.h:59 +#: src/common/weechat.h:60 msgid "WeeChat Error:" msgstr "WeeChat Hiba:" -#: src/common/weechat.h:60 +#: src/common/weechat.h:61 msgid "WeeChat Warning:" msgstr "WeeChat Figyelmeztetés:" diff --git a/po/ru.po b/po/ru.po index 3a231922c..ab9aa6124 100644 --- a/po/ru.po +++ b/po/ru.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.2.6-cvs\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2007-07-19 01:23+0200\n" +"POT-Creation-Date: 2007-08-06 11:23+0200\n" "PO-Revision-Date: 2007-07-18 17:44+0200\n" "Last-Translator: Pavel Shevchuk \n" "Language-Team: weechat-dev \n" @@ -2573,42 +2573,47 @@ msgid "scroll to first unread line in buffer" msgstr "перейти к первой непрочитанной строчке буфера" #: src/gui/gui-keyboard.c:140 +#, fuzzy +msgid "set unread marker on all buffers" +msgstr "некорректная длина буфера" + +#: src/gui/gui-keyboard.c:142 msgid "clear hotlist" msgstr "очистить хотлист" -#: src/gui/gui-keyboard.c:142 +#: src/gui/gui-keyboard.c:144 msgid "clear infobar" msgstr "очистить информационную панель" -#: src/gui/gui-keyboard.c:144 +#: src/gui/gui-keyboard.c:146 msgid "refresh screen" msgstr "обновить экран" -#: src/gui/gui-keyboard.c:146 +#: src/gui/gui-keyboard.c:148 msgid "grab a key" msgstr "захватить клавишу" -#: src/gui/gui-keyboard.c:148 +#: src/gui/gui-keyboard.c:150 msgid "insert a string in command line" msgstr "вставить строку в поле ввода" -#: src/gui/gui-keyboard.c:150 +#: src/gui/gui-keyboard.c:152 msgid "search text in buffer history" msgstr "поиск текста в истории буфера" -#: src/gui/gui-keyboard.c:478 src/common/command.c:2465 +#: src/gui/gui-keyboard.c:480 src/common/command.c:2465 #, c-format msgid "%s unable to bind key \"%s\"\n" msgstr "%s не могу установить клавишу \"%s\"\n" -#: src/gui/gui-keyboard.c:506 +#: src/gui/gui-keyboard.c:508 #, c-format msgid "%s unable to bind key \"%s\" (invalid function name: \"%s\")\n" msgstr "" "%s не могу установить клавишу \"%s\" (некорректное название функции: \"%s" "\")\n" -#: src/gui/gui-keyboard.c:520 +#: src/gui/gui-keyboard.c:522 #, c-format msgid "%s not enough memory for key binding\n" msgstr "%s недостаточно памяти для установки клавиши\n" @@ -4459,11 +4464,11 @@ msgstr "%sДобро пожаловать в %s%s%s, %s\n" msgid "compiled on" msgstr "собран:" -#: src/common/weechat.h:59 +#: src/common/weechat.h:60 msgid "WeeChat Error:" msgstr "Ошибка WeeChat:" -#: src/common/weechat.h:60 +#: src/common/weechat.h:61 msgid "WeeChat Warning:" msgstr "Предупреждение WeeChat:" diff --git a/po/weechat.pot b/po/weechat.pot index 99700485e..1a4fd3c02 100644 --- a/po/weechat.pot +++ b/po/weechat.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2007-07-19 01:23+0200\n" +"POT-Creation-Date: 2007-08-06 11:23+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -2440,40 +2440,44 @@ msgid "scroll to first unread line in buffer" msgstr "" #: src/gui/gui-keyboard.c:140 -msgid "clear hotlist" +msgid "set unread marker on all buffers" msgstr "" #: src/gui/gui-keyboard.c:142 -msgid "clear infobar" +msgid "clear hotlist" msgstr "" #: src/gui/gui-keyboard.c:144 -msgid "refresh screen" +msgid "clear infobar" msgstr "" #: src/gui/gui-keyboard.c:146 -msgid "grab a key" +msgid "refresh screen" msgstr "" #: src/gui/gui-keyboard.c:148 -msgid "insert a string in command line" +msgid "grab a key" msgstr "" #: src/gui/gui-keyboard.c:150 +msgid "insert a string in command line" +msgstr "" + +#: src/gui/gui-keyboard.c:152 msgid "search text in buffer history" msgstr "" -#: src/gui/gui-keyboard.c:478 src/common/command.c:2465 +#: src/gui/gui-keyboard.c:480 src/common/command.c:2465 #, c-format msgid "%s unable to bind key \"%s\"\n" msgstr "" -#: src/gui/gui-keyboard.c:506 +#: src/gui/gui-keyboard.c:508 #, c-format msgid "%s unable to bind key \"%s\" (invalid function name: \"%s\")\n" msgstr "" -#: src/gui/gui-keyboard.c:520 +#: src/gui/gui-keyboard.c:522 #, c-format msgid "%s not enough memory for key binding\n" msgstr "" @@ -4128,11 +4132,11 @@ msgstr "" msgid "compiled on" msgstr "" -#: src/common/weechat.h:59 +#: src/common/weechat.h:60 msgid "WeeChat Error:" msgstr "" -#: src/common/weechat.h:60 +#: src/common/weechat.h:61 msgid "WeeChat Warning:" msgstr "" diff --git a/src/gui/curses/gui-curses-keyboard.c b/src/gui/curses/gui-curses-keyboard.c index feb86e28f..a04463b40 100644 --- a/src/gui/curses/gui-curses-keyboard.c +++ b/src/gui/curses/gui-curses-keyboard.c @@ -108,6 +108,7 @@ gui_keyboard_default_bindings () gui_keyboard_bind ( /* m-r */ "meta-r", "delete_line"); gui_keyboard_bind ( /* m-s */ "meta-s", "switch_server"); gui_keyboard_bind ( /* m-u */ "meta-u", "scroll_unread"); + gui_keyboard_bind ( /* ^S^U */ "ctrl-Sctrl-U", "set_unread"); gui_keyboard_bind ( /* ^R */ "ctrl-R", "search_text"); gui_keyboard_bind ( /* ^Cb */ "ctrl-Cb", "insert \\x02"); gui_keyboard_bind ( /* ^Cc */ "ctrl-Cc", "insert \\x03"); diff --git a/src/gui/gui-action.c b/src/gui/gui-action.c index 46871117b..34e4d1ab1 100644 --- a/src/gui/gui-action.c +++ b/src/gui/gui-action.c @@ -1398,6 +1398,35 @@ gui_action_scroll_unread (t_gui_window *window, char *args) } } +/* + * gui_action_set_unread: set unread marker for all buffers + */ + +void +gui_action_set_unread (t_gui_window *window, char *args) +{ + t_gui_window *ptr_win; + t_gui_buffer *ptr_buffer; + + /* make C compiler happy */ + (void) window; + (void) args; + + /* set read marker for all standard buffers */ + for (ptr_buffer = gui_buffers; ptr_buffer; + ptr_buffer = ptr_buffer->next_buffer) + { + if (ptr_buffer->type == BUFFER_TYPE_STANDARD) + ptr_buffer->last_read_line = ptr_buffer->last_line; + } + + /* refresh all windows */ + for (ptr_win = gui_windows; ptr_win; ptr_win = ptr_win->next_window) + { + gui_window_redraw_buffer (ptr_win->buffer); + } +} + /* * gui_action_hotlist_clear: clear hotlist */ diff --git a/src/gui/gui-keyboard.c b/src/gui/gui-keyboard.c index 396d85100..c4d3f0991 100644 --- a/src/gui/gui-keyboard.c +++ b/src/gui/gui-keyboard.c @@ -136,6 +136,8 @@ t_gui_key_function gui_key_functions[] = N_("scroll to next highlight in buffer") }, { "scroll_unread", gui_action_scroll_unread, N_("scroll to first unread line in buffer") }, + { "set_unread", gui_action_set_unread, + N_("set unread marker on all buffers") }, { "hotlist_clear", gui_action_hotlist_clear, N_("clear hotlist") }, { "infobar_clear", gui_action_infobar_clear, diff --git a/src/gui/gui.h b/src/gui/gui.h index 79167cb07..640c68eea 100644 --- a/src/gui/gui.h +++ b/src/gui/gui.h @@ -164,6 +164,7 @@ extern void gui_action_switch_server (t_gui_window *, char *); extern void gui_action_scroll_previous_highlight (t_gui_window *, char *); extern void gui_action_scroll_next_highlight (t_gui_window *, char *); extern void gui_action_scroll_unread (t_gui_window *, char *); +extern void gui_action_set_unread (t_gui_window *, char *); extern void gui_action_hotlist_clear (t_gui_window *, char *); extern void gui_action_infobar_clear (t_gui_window *, char *); extern void gui_action_refresh_screen (t_gui_window *, char *); diff --git a/weechat/ChangeLog b/weechat/ChangeLog index 0e9b4e9b7..11583c6ff 100644 --- a/weechat/ChangeLog +++ b/weechat/ChangeLog @@ -1,10 +1,12 @@ WeeChat - Wee Enhanced Environment for Chat =========================================== -ChangeLog - 2007-08-01 +ChangeLog - 2007-08-06 Version 0.2.6 (under dev!): + * added key for setting unread marker on all buffers (default: + ctrl-S + ctrl-U) (task 7180) * fixed nick prefix display on servers that doesn't support all prefixes (bug #20025) * fixed terminal encoding detection when NLS is disabled (bug #20646) diff --git a/weechat/doc/de/key_functions.xml b/weechat/doc/de/key_functions.xml index 9fa1ba163..f367db38f 100644 --- a/weechat/doc/de/key_functions.xml +++ b/weechat/doc/de/key_functions.xml @@ -185,6 +185,10 @@ scroll_unread scrolle zur ersten, ungelesenen Zeile im Puffer + + set_unread + set unread marker for all buffers + hotlist_clear Hotlist leeren diff --git a/weechat/doc/de/weechat.de.xml b/weechat/doc/de/weechat.de.xml index 8407bc38a..8e8634ccb 100644 --- a/weechat/doc/de/weechat.de.xml +++ b/weechat/doc/de/weechat.de.xml @@ -502,7 +502,7 @@ along with this program. If not, see . Strg + C dann C - Insrer code for colored text. + Insert code for colored text. @@ -512,13 +512,13 @@ along with this program. If not, see . - Ctrl + C dann R + Strg + C dann R Insert code for reverse color. - Ctrl + C dann U + Strg + C dann U Insert code for underlined text. @@ -548,6 +548,13 @@ along with this program. If not, see . (zwei Mal: suche nach dem genauen Text) + + Strg + S dann Strg + U + + + Set unread marker on all buffers + + Strg + T diff --git a/weechat/doc/en/key_functions.xml b/weechat/doc/en/key_functions.xml index 6eab937fd..8fc9922ff 100644 --- a/weechat/doc/en/key_functions.xml +++ b/weechat/doc/en/key_functions.xml @@ -185,6 +185,10 @@ scroll_unread scroll to first unread line in buffer + + set_unread + set unread marker for all buffers + hotlist_clear clear hotlist diff --git a/weechat/doc/en/weechat.en.xml b/weechat/doc/en/weechat.en.xml index fd931e2dd..049ace3ef 100644 --- a/weechat/doc/en/weechat.en.xml +++ b/weechat/doc/en/weechat.en.xml @@ -496,7 +496,7 @@ along with this program. If not, see . Ctrl + C then C - Insrer code for colored text. + Insert code for colored text. @@ -542,6 +542,12 @@ along with this program. If not, see . (two times: search exact text) + + Ctrl + S then Ctrl + U + + Set unread marker on all buffers + + Ctrl + T diff --git a/weechat/doc/fr/key_functions.xml b/weechat/doc/fr/key_functions.xml index 95d87c9a8..6097554b6 100644 --- a/weechat/doc/fr/key_functions.xml +++ b/weechat/doc/fr/key_functions.xml @@ -185,6 +185,10 @@ scroll_unread faire dfiler jusqu' la premire ligne non lue du tampon + + set_unread + set unread marker for all buffers + hotlist_clear effacer la liste d'activit diff --git a/weechat/doc/fr/weechat.fr.xml b/weechat/doc/fr/weechat.fr.xml index edf48da68..013bdc616 100644 --- a/weechat/doc/fr/weechat.fr.xml +++ b/weechat/doc/fr/weechat.fr.xml @@ -551,6 +551,13 @@ along with this program. If not, see . (deux appuis successifs pour rechercher du texte exact) + + Ctrl + S puis Ctrl + U + + Positionner le marqueur de donnes non lues sur tous les + tampons + + Ctrl + T diff --git a/weechat/po/cs.po b/weechat/po/cs.po index 87dd3ce4c..c6cbd4b3d 100644 --- a/weechat/po/cs.po +++ b/weechat/po/cs.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.2.6-cvs\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2007-07-19 01:23+0200\n" +"POT-Creation-Date: 2007-08-06 11:23+0200\n" "PO-Revision-Date: 2007-07-18 17:44+0200\n" "Last-Translator: Jiri Golembiovsky \n" "Language-Team: weechat-dev \n" @@ -2584,40 +2584,45 @@ msgid "scroll to first unread line in buffer" msgstr "přesunout na první nepřečtenout řádku v bufferu" #: src/gui/gui-keyboard.c:140 +#, fuzzy +msgid "set unread marker on all buffers" +msgstr "nevalidní délka pro buffer" + +#: src/gui/gui-keyboard.c:142 msgid "clear hotlist" msgstr "vyčisti hotlist" -#: src/gui/gui-keyboard.c:142 +#: src/gui/gui-keyboard.c:144 msgid "clear infobar" msgstr "vyčisti infobar" -#: src/gui/gui-keyboard.c:144 +#: src/gui/gui-keyboard.c:146 msgid "refresh screen" msgstr "obnov obrazovku" -#: src/gui/gui-keyboard.c:146 +#: src/gui/gui-keyboard.c:148 msgid "grab a key" msgstr "zachytit klávesu" -#: src/gui/gui-keyboard.c:148 +#: src/gui/gui-keyboard.c:150 msgid "insert a string in command line" msgstr "vložit řetězec na řádku" -#: src/gui/gui-keyboard.c:150 +#: src/gui/gui-keyboard.c:152 msgid "search text in buffer history" msgstr "hledání textu v historii bufferu" -#: src/gui/gui-keyboard.c:478 src/common/command.c:2465 +#: src/gui/gui-keyboard.c:480 src/common/command.c:2465 #, c-format msgid "%s unable to bind key \"%s\"\n" msgstr "%s nemohu napojit kalávesu \"%s\"\n" -#: src/gui/gui-keyboard.c:506 +#: src/gui/gui-keyboard.c:508 #, c-format msgid "%s unable to bind key \"%s\" (invalid function name: \"%s\")\n" msgstr "%s nemohu napojit kalávesu \"%s\" (nevalidní jméno funkce: \"%s\")\n" -#: src/gui/gui-keyboard.c:520 +#: src/gui/gui-keyboard.c:522 #, c-format msgid "%s not enough memory for key binding\n" msgstr "%s nedostatek paměti pro klávesovou zkratku\n" @@ -4453,11 +4458,11 @@ msgstr "%sVítejte do %s%s%s, %s\n" msgid "compiled on" msgstr "kompilováno" -#: src/common/weechat.h:59 +#: src/common/weechat.h:60 msgid "WeeChat Error:" msgstr "WeeChat chyba:" -#: src/common/weechat.h:60 +#: src/common/weechat.h:61 msgid "WeeChat Warning:" msgstr "WeeChat Upozornění:" diff --git a/weechat/po/de.po b/weechat/po/de.po index c57e34d33..47c16f9dd 100644 --- a/weechat/po/de.po +++ b/weechat/po/de.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.2.6-cvs\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2007-07-19 01:23+0200\n" +"POT-Creation-Date: 2007-08-06 11:23+0200\n" "PO-Revision-Date: 2007-07-18 17:44+0200\n" "Last-Translator: Thomas Schuetz \n" "Language-Team: weechat-dev \n" @@ -2595,41 +2595,46 @@ msgid "scroll to first unread line in buffer" msgstr "scrolle zur ersten, ungelesenen Zeile im Puffer" #: src/gui/gui-keyboard.c:140 +#, fuzzy +msgid "set unread marker on all buffers" +msgstr "Fehlerhafte Pufferlänge" + +#: src/gui/gui-keyboard.c:142 msgid "clear hotlist" msgstr "Hotlist leeren" -#: src/gui/gui-keyboard.c:142 +#: src/gui/gui-keyboard.c:144 msgid "clear infobar" msgstr "Infobar leeren" -#: src/gui/gui-keyboard.c:144 +#: src/gui/gui-keyboard.c:146 msgid "refresh screen" msgstr "Bild neu aufbauen" -#: src/gui/gui-keyboard.c:146 +#: src/gui/gui-keyboard.c:148 msgid "grab a key" msgstr "Tastencode ermitteln und einfügen" -#: src/gui/gui-keyboard.c:148 +#: src/gui/gui-keyboard.c:150 msgid "insert a string in command line" msgstr "füge eine Zeichenkette in der Befehlszeile ein" -#: src/gui/gui-keyboard.c:150 +#: src/gui/gui-keyboard.c:152 msgid "search text in buffer history" msgstr "suche Text im Pufferverlauf" -#: src/gui/gui-keyboard.c:478 src/common/command.c:2465 +#: src/gui/gui-keyboard.c:480 src/common/command.c:2465 #, c-format msgid "%s unable to bind key \"%s\"\n" msgstr "%s kann die Taste \"%s\" nicht zuordnen\n" -#: src/gui/gui-keyboard.c:506 +#: src/gui/gui-keyboard.c:508 #, c-format msgid "%s unable to bind key \"%s\" (invalid function name: \"%s\")\n" msgstr "" "%s kann die Taste \"%s\" nicht zuornen (ungültiger Funktionsname: \"%s\")\n" -#: src/gui/gui-keyboard.c:520 +#: src/gui/gui-keyboard.c:522 #, c-format msgid "%s not enough memory for key binding\n" msgstr "%s nicht genügend Speicher für Tastenzuordnung\n" @@ -4490,11 +4495,11 @@ msgstr "%sWillkommen in %s%s%s, %s\n" msgid "compiled on" msgstr "kompiliert am" -#: src/common/weechat.h:59 +#: src/common/weechat.h:60 msgid "WeeChat Error:" msgstr "WeeChat-Fehler:" -#: src/common/weechat.h:60 +#: src/common/weechat.h:61 msgid "WeeChat Warning:" msgstr "WeeChat-Warnung:" diff --git a/weechat/po/es.po b/weechat/po/es.po index 75f3f85a1..d420a82ab 100644 --- a/weechat/po/es.po +++ b/weechat/po/es.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.2.6-cvs\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2007-07-19 01:23+0200\n" +"POT-Creation-Date: 2007-08-06 11:23+0200\n" "PO-Revision-Date: 2007-07-18 17:44+0200\n" "Last-Translator: Roberto Gonzlez Cardenete \n" "Language-Team: weechat-dev \n" @@ -2632,43 +2632,48 @@ msgid "scroll to first unread line in buffer" msgstr "desplazarse a la primera lnea sin leer en el bfer" #: src/gui/gui-keyboard.c:140 +#, fuzzy +msgid "set unread marker on all buffers" +msgstr "longitud invlida para un bfer" + +#: src/gui/gui-keyboard.c:142 msgid "clear hotlist" msgstr "limpiar hotlist" -#: src/gui/gui-keyboard.c:142 +#: src/gui/gui-keyboard.c:144 msgid "clear infobar" msgstr "limpiar barra de informacin" -#: src/gui/gui-keyboard.c:144 +#: src/gui/gui-keyboard.c:146 msgid "refresh screen" msgstr "recargar la pantalla" -#: src/gui/gui-keyboard.c:146 +#: src/gui/gui-keyboard.c:148 msgid "grab a key" msgstr "capturar una clave" -#: src/gui/gui-keyboard.c:148 +#: src/gui/gui-keyboard.c:150 msgid "insert a string in command line" msgstr "" -#: src/gui/gui-keyboard.c:150 +#: src/gui/gui-keyboard.c:152 #, fuzzy msgid "search text in buffer history" msgstr "sesin: cargando historial del bfer\n" -#: src/gui/gui-keyboard.c:478 src/common/command.c:2465 +#: src/gui/gui-keyboard.c:480 src/common/command.c:2465 #, c-format msgid "%s unable to bind key \"%s\"\n" msgstr "%s No ha sido posible atar la clave \"%s\"\n" -#: src/gui/gui-keyboard.c:506 +#: src/gui/gui-keyboard.c:508 #, c-format msgid "%s unable to bind key \"%s\" (invalid function name: \"%s\")\n" msgstr "" "%s No ha sido posible atar la clave \"%s\" (nombre de funcin invlido: \"%s" "\")\n" -#: src/gui/gui-keyboard.c:520 +#: src/gui/gui-keyboard.c:522 #, c-format msgid "%s not enough memory for key binding\n" msgstr "%s no hay suficiente memoria para atar la clave\n" @@ -4521,11 +4526,11 @@ msgstr "%sBienvenido a %s%s%s, %s\n" msgid "compiled on" msgstr "compilado en" -#: src/common/weechat.h:59 +#: src/common/weechat.h:60 msgid "WeeChat Error:" msgstr "Error WeeChat:" -#: src/common/weechat.h:60 +#: src/common/weechat.h:61 msgid "WeeChat Warning:" msgstr "Advertencia WeeChat:" diff --git a/weechat/po/fr.po b/weechat/po/fr.po index 0d66be0d3..f012348c3 100644 --- a/weechat/po/fr.po +++ b/weechat/po/fr.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.2.6-cvs\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2007-07-19 01:23+0200\n" -"PO-Revision-Date: 2007-07-19 01:24+0200\n" +"POT-Creation-Date: 2007-08-06 11:23+0200\n" +"PO-Revision-Date: 2007-08-06 11:23+0200\n" "Last-Translator: FlashCode \n" "Language-Team: weechat-dev \n" "MIME-Version: 1.0\n" @@ -2607,41 +2607,45 @@ msgid "scroll to first unread line in buffer" msgstr "faire défiler jusqu'à la première ligne non lue du tampon" #: src/gui/gui-keyboard.c:140 +msgid "set unread marker on all buffers" +msgstr "positionner le marqueur de données non lues sur tous les tampons" + +#: src/gui/gui-keyboard.c:142 msgid "clear hotlist" msgstr "effacer la liste d'activité" -#: src/gui/gui-keyboard.c:142 +#: src/gui/gui-keyboard.c:144 msgid "clear infobar" msgstr "effacer la barre d'infos" -#: src/gui/gui-keyboard.c:144 +#: src/gui/gui-keyboard.c:146 msgid "refresh screen" msgstr "rafraîchir l'écran" -#: src/gui/gui-keyboard.c:146 +#: src/gui/gui-keyboard.c:148 msgid "grab a key" msgstr "capturer une touche" -#: src/gui/gui-keyboard.c:148 +#: src/gui/gui-keyboard.c:150 msgid "insert a string in command line" msgstr "insérer une chaîne dans la ligne de commande" -#: src/gui/gui-keyboard.c:150 +#: src/gui/gui-keyboard.c:152 msgid "search text in buffer history" msgstr "recherche de texte dans l'historique du tampon" -#: src/gui/gui-keyboard.c:478 src/common/command.c:2465 +#: src/gui/gui-keyboard.c:480 src/common/command.c:2465 #, c-format msgid "%s unable to bind key \"%s\"\n" msgstr "%s impossible de créer la touche \"%s\"\n" -#: src/gui/gui-keyboard.c:506 +#: src/gui/gui-keyboard.c:508 #, c-format msgid "%s unable to bind key \"%s\" (invalid function name: \"%s\")\n" msgstr "" "%s impossible de créer la touche \"%s\" (nom fonction incorrect: \"%s\")\n" -#: src/gui/gui-keyboard.c:520 +#: src/gui/gui-keyboard.c:522 #, c-format msgid "%s not enough memory for key binding\n" msgstr "%s pas assez de mémoire pour la touche\n" @@ -4529,11 +4533,11 @@ msgstr "%sBienvenue dans %s%s%s, %s\n" msgid "compiled on" msgstr "compilé le" -#: src/common/weechat.h:59 +#: src/common/weechat.h:60 msgid "WeeChat Error:" msgstr "Erreur WeeChat:" -#: src/common/weechat.h:60 +#: src/common/weechat.h:61 msgid "WeeChat Warning:" msgstr "Avertissement WeeChat:" diff --git a/weechat/po/hu.po b/weechat/po/hu.po index 54396efc4..523d3623d 100644 --- a/weechat/po/hu.po +++ b/weechat/po/hu.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.2.6-cvs\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2007-07-19 01:23+0200\n" +"POT-Creation-Date: 2007-08-06 11:23+0200\n" "PO-Revision-Date: 2007-06-07 18:02+0200\n" "Last-Translator: Andras Voroskoi \n" "Language-Team: weechat-dev \n" @@ -2591,43 +2591,48 @@ msgid "scroll to first unread line in buffer" msgstr "ugrás az első olvasatlan sorra a pufferben" #: src/gui/gui-keyboard.c:140 +#, fuzzy +msgid "set unread marker on all buffers" +msgstr "érvénytelen pufferhossz" + +#: src/gui/gui-keyboard.c:142 msgid "clear hotlist" msgstr "hotlist törlése" -#: src/gui/gui-keyboard.c:142 +#: src/gui/gui-keyboard.c:144 msgid "clear infobar" msgstr "információs pult törlése" -#: src/gui/gui-keyboard.c:144 +#: src/gui/gui-keyboard.c:146 msgid "refresh screen" msgstr "képernyő frissítése" -#: src/gui/gui-keyboard.c:146 +#: src/gui/gui-keyboard.c:148 msgid "grab a key" msgstr "vállasszon billentyűt" -#: src/gui/gui-keyboard.c:148 +#: src/gui/gui-keyboard.c:150 msgid "insert a string in command line" msgstr "" -#: src/gui/gui-keyboard.c:150 +#: src/gui/gui-keyboard.c:152 #, fuzzy msgid "search text in buffer history" msgstr "folyamat: puffertörténet betöltése\n" -#: src/gui/gui-keyboard.c:478 src/common/command.c:2465 +#: src/gui/gui-keyboard.c:480 src/common/command.c:2465 #, c-format msgid "%s unable to bind key \"%s\"\n" msgstr "%s nem sikerült a(z) \"%s\" billentyűt hozzárendelni\n" -#: src/gui/gui-keyboard.c:506 +#: src/gui/gui-keyboard.c:508 #, c-format msgid "%s unable to bind key \"%s\" (invalid function name: \"%s\")\n" msgstr "" "%s nem sikerült a(z) \"%s\" billentyűt hozzárendelni (érvénytelen " "funkciónév: \"%s\")\n" -#: src/gui/gui-keyboard.c:520 +#: src/gui/gui-keyboard.c:522 #, c-format msgid "%s not enough memory for key binding\n" msgstr "%s nincs elég memória a billentyűhozzárendeléshez\n" @@ -4473,11 +4478,11 @@ msgstr "%sÜdvözöli a %s%s%s, %s\n" msgid "compiled on" msgstr "lefordítva:" -#: src/common/weechat.h:59 +#: src/common/weechat.h:60 msgid "WeeChat Error:" msgstr "WeeChat Hiba:" -#: src/common/weechat.h:60 +#: src/common/weechat.h:61 msgid "WeeChat Warning:" msgstr "WeeChat Figyelmeztetés:" diff --git a/weechat/po/ru.po b/weechat/po/ru.po index 3a231922c..ab9aa6124 100644 --- a/weechat/po/ru.po +++ b/weechat/po/ru.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.2.6-cvs\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2007-07-19 01:23+0200\n" +"POT-Creation-Date: 2007-08-06 11:23+0200\n" "PO-Revision-Date: 2007-07-18 17:44+0200\n" "Last-Translator: Pavel Shevchuk \n" "Language-Team: weechat-dev \n" @@ -2573,42 +2573,47 @@ msgid "scroll to first unread line in buffer" msgstr "перейти к первой непрочитанной строчке буфера" #: src/gui/gui-keyboard.c:140 +#, fuzzy +msgid "set unread marker on all buffers" +msgstr "некорректная длина буфера" + +#: src/gui/gui-keyboard.c:142 msgid "clear hotlist" msgstr "очистить хотлист" -#: src/gui/gui-keyboard.c:142 +#: src/gui/gui-keyboard.c:144 msgid "clear infobar" msgstr "очистить информационную панель" -#: src/gui/gui-keyboard.c:144 +#: src/gui/gui-keyboard.c:146 msgid "refresh screen" msgstr "обновить экран" -#: src/gui/gui-keyboard.c:146 +#: src/gui/gui-keyboard.c:148 msgid "grab a key" msgstr "захватить клавишу" -#: src/gui/gui-keyboard.c:148 +#: src/gui/gui-keyboard.c:150 msgid "insert a string in command line" msgstr "вставить строку в поле ввода" -#: src/gui/gui-keyboard.c:150 +#: src/gui/gui-keyboard.c:152 msgid "search text in buffer history" msgstr "поиск текста в истории буфера" -#: src/gui/gui-keyboard.c:478 src/common/command.c:2465 +#: src/gui/gui-keyboard.c:480 src/common/command.c:2465 #, c-format msgid "%s unable to bind key \"%s\"\n" msgstr "%s не могу установить клавишу \"%s\"\n" -#: src/gui/gui-keyboard.c:506 +#: src/gui/gui-keyboard.c:508 #, c-format msgid "%s unable to bind key \"%s\" (invalid function name: \"%s\")\n" msgstr "" "%s не могу установить клавишу \"%s\" (некорректное название функции: \"%s" "\")\n" -#: src/gui/gui-keyboard.c:520 +#: src/gui/gui-keyboard.c:522 #, c-format msgid "%s not enough memory for key binding\n" msgstr "%s недостаточно памяти для установки клавиши\n" @@ -4459,11 +4464,11 @@ msgstr "%sДобро пожаловать в %s%s%s, %s\n" msgid "compiled on" msgstr "собран:" -#: src/common/weechat.h:59 +#: src/common/weechat.h:60 msgid "WeeChat Error:" msgstr "Ошибка WeeChat:" -#: src/common/weechat.h:60 +#: src/common/weechat.h:61 msgid "WeeChat Warning:" msgstr "Предупреждение WeeChat:" diff --git a/weechat/po/weechat.pot b/weechat/po/weechat.pot index 99700485e..1a4fd3c02 100644 --- a/weechat/po/weechat.pot +++ b/weechat/po/weechat.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2007-07-19 01:23+0200\n" +"POT-Creation-Date: 2007-08-06 11:23+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -2440,40 +2440,44 @@ msgid "scroll to first unread line in buffer" msgstr "" #: src/gui/gui-keyboard.c:140 -msgid "clear hotlist" +msgid "set unread marker on all buffers" msgstr "" #: src/gui/gui-keyboard.c:142 -msgid "clear infobar" +msgid "clear hotlist" msgstr "" #: src/gui/gui-keyboard.c:144 -msgid "refresh screen" +msgid "clear infobar" msgstr "" #: src/gui/gui-keyboard.c:146 -msgid "grab a key" +msgid "refresh screen" msgstr "" #: src/gui/gui-keyboard.c:148 -msgid "insert a string in command line" +msgid "grab a key" msgstr "" #: src/gui/gui-keyboard.c:150 +msgid "insert a string in command line" +msgstr "" + +#: src/gui/gui-keyboard.c:152 msgid "search text in buffer history" msgstr "" -#: src/gui/gui-keyboard.c:478 src/common/command.c:2465 +#: src/gui/gui-keyboard.c:480 src/common/command.c:2465 #, c-format msgid "%s unable to bind key \"%s\"\n" msgstr "" -#: src/gui/gui-keyboard.c:506 +#: src/gui/gui-keyboard.c:508 #, c-format msgid "%s unable to bind key \"%s\" (invalid function name: \"%s\")\n" msgstr "" -#: src/gui/gui-keyboard.c:520 +#: src/gui/gui-keyboard.c:522 #, c-format msgid "%s not enough memory for key binding\n" msgstr "" @@ -4128,11 +4132,11 @@ msgstr "" msgid "compiled on" msgstr "" -#: src/common/weechat.h:59 +#: src/common/weechat.h:60 msgid "WeeChat Error:" msgstr "" -#: src/common/weechat.h:60 +#: src/common/weechat.h:61 msgid "WeeChat Warning:" msgstr "" diff --git a/weechat/src/gui/curses/gui-curses-keyboard.c b/weechat/src/gui/curses/gui-curses-keyboard.c index feb86e28f..a04463b40 100644 --- a/weechat/src/gui/curses/gui-curses-keyboard.c +++ b/weechat/src/gui/curses/gui-curses-keyboard.c @@ -108,6 +108,7 @@ gui_keyboard_default_bindings () gui_keyboard_bind ( /* m-r */ "meta-r", "delete_line"); gui_keyboard_bind ( /* m-s */ "meta-s", "switch_server"); gui_keyboard_bind ( /* m-u */ "meta-u", "scroll_unread"); + gui_keyboard_bind ( /* ^S^U */ "ctrl-Sctrl-U", "set_unread"); gui_keyboard_bind ( /* ^R */ "ctrl-R", "search_text"); gui_keyboard_bind ( /* ^Cb */ "ctrl-Cb", "insert \\x02"); gui_keyboard_bind ( /* ^Cc */ "ctrl-Cc", "insert \\x03"); diff --git a/weechat/src/gui/gui-action.c b/weechat/src/gui/gui-action.c index 46871117b..34e4d1ab1 100644 --- a/weechat/src/gui/gui-action.c +++ b/weechat/src/gui/gui-action.c @@ -1398,6 +1398,35 @@ gui_action_scroll_unread (t_gui_window *window, char *args) } } +/* + * gui_action_set_unread: set unread marker for all buffers + */ + +void +gui_action_set_unread (t_gui_window *window, char *args) +{ + t_gui_window *ptr_win; + t_gui_buffer *ptr_buffer; + + /* make C compiler happy */ + (void) window; + (void) args; + + /* set read marker for all standard buffers */ + for (ptr_buffer = gui_buffers; ptr_buffer; + ptr_buffer = ptr_buffer->next_buffer) + { + if (ptr_buffer->type == BUFFER_TYPE_STANDARD) + ptr_buffer->last_read_line = ptr_buffer->last_line; + } + + /* refresh all windows */ + for (ptr_win = gui_windows; ptr_win; ptr_win = ptr_win->next_window) + { + gui_window_redraw_buffer (ptr_win->buffer); + } +} + /* * gui_action_hotlist_clear: clear hotlist */ diff --git a/weechat/src/gui/gui-keyboard.c b/weechat/src/gui/gui-keyboard.c index 396d85100..c4d3f0991 100644 --- a/weechat/src/gui/gui-keyboard.c +++ b/weechat/src/gui/gui-keyboard.c @@ -136,6 +136,8 @@ t_gui_key_function gui_key_functions[] = N_("scroll to next highlight in buffer") }, { "scroll_unread", gui_action_scroll_unread, N_("scroll to first unread line in buffer") }, + { "set_unread", gui_action_set_unread, + N_("set unread marker on all buffers") }, { "hotlist_clear", gui_action_hotlist_clear, N_("clear hotlist") }, { "infobar_clear", gui_action_infobar_clear, diff --git a/weechat/src/gui/gui.h b/weechat/src/gui/gui.h index 79167cb07..640c68eea 100644 --- a/weechat/src/gui/gui.h +++ b/weechat/src/gui/gui.h @@ -164,6 +164,7 @@ extern void gui_action_switch_server (t_gui_window *, char *); extern void gui_action_scroll_previous_highlight (t_gui_window *, char *); extern void gui_action_scroll_next_highlight (t_gui_window *, char *); extern void gui_action_scroll_unread (t_gui_window *, char *); +extern void gui_action_set_unread (t_gui_window *, char *); extern void gui_action_hotlist_clear (t_gui_window *, char *); extern void gui_action_infobar_clear (t_gui_window *, char *); extern void gui_action_refresh_screen (t_gui_window *, char *);