1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 02:05:41 +02:00

Add signal "day_changed", allow date format in logger options path and mask (task #9430)

This commit is contained in:
Sebastien Helleu
2010-01-26 16:36:55 +01:00
parent aa41942ac1
commit 99bfdfd2ff
22 changed files with 463 additions and 171 deletions
+3 -1
View File
@@ -1,14 +1,16 @@
WeeChat ChangeLog
=================
FlashCode <flashcode@flashtux.org>
v0.3.2-dev, 2010-01-25
v0.3.2-dev, 2010-01-26
Version 0.3.2 (under dev!)
--------------------------
* core: add signal "day_changed"
* api: add missing infos in functions buffer_get_integer / buffer_get_string
and in buffer infolist
* irc: add options irc.look.smart_filter_join and irc.look.smart_filter_quit
* logger: allow date format in logger options path and mask (task #9430)
Version 0.3.1 (2010-01-23)
--------------------------
+2 -2
View File
@@ -9,7 +9,7 @@
** values: on, off (default value: off)
* *logger.file.mask*
** description: default file name mask for log files (format is "directory/to/file" or "file", without first "/" because "path" option is used to build complete path to file); local buffer variables are permitted
** description: default file name mask for log files (format is "directory/to/file" or "file", without first "/" because "path" option is used to build complete path to file); local buffer variables are permitted; date specifiers are permitted (see man strftime)
** type: string
** values: any string (default value: "$plugin.$name.weechatlog")
@@ -19,7 +19,7 @@
** values: on, off (default value: on)
* *logger.file.path*
** description: path for WeeChat log files ("%h" will be replaced by WeeChat home, "~/.weechat" by default)
** description: path for WeeChat log files; "%h" at beginning of string is replaced by WeeChat home ("~/.weechat" by default); date specifiers are permitted (see man strftime)
** type: string
** values: any string (default value: "%h/logs/")
+4 -1
View File
@@ -5389,7 +5389,7 @@ Arguments:
* 'signal': signal to catch, can begin or end with "*":
[width="80%",cols="^1,^3,^3,5",options="header"]
[width="100%",cols="^1,^3,^4,5",options="header"]
|========================================
| Plugin | Signal | Arguments | Description
@@ -5477,6 +5477,9 @@ Arguments:
| weechat | buffer_type_changed | pointer: buffer |
type of buffer changed
| weechat | day_changed | string: new date, format: "2010-01-31" |
day of system date has changed
| weechat | debug_dump | - |
dump request
+2 -2
View File
@@ -149,12 +149,12 @@
** valeurs: 1 .. 10080 (valeur par défaut: 5)
* *irc.look.smart_filter_join*
** description: enable smart filter for "join" messages
** description: activer le filtre intelligent pour les messages "join"
** type: booléen
** valeurs: on, off (valeur par défaut: on)
* *irc.look.smart_filter_quit*
** description: enable smart filter for "part" and "quit" messages
** description: activer le filtre intelligent pour les messages "part" et "quit"
** type: booléen
** valeurs: on, off (valeur par défaut: on)
+3 -3
View File
@@ -9,7 +9,7 @@
** valeurs: on, off (valeur par défaut: off)
* *logger.file.mask*
** description: masque de fichier par défaut pour les fichiers de log (le format est "repertoire/vers/fichier" ou "fichier", sans le premier "/" car l'option "path" est utilisée pour construire le chemin complet vers le fichier); les variables locales du tampon sont permises
** description: masque de fichier par défaut pour les fichiers de log (le format est "repertoire/vers/fichier" ou "fichier", sans le premier "/" car l'option "path" est utilisée pour construire le chemin complet vers le fichier); les variables locales du tampon sont permises; les caractères de formatage de date sont autorisés (voir man strftime)
** type: chaîne
** valeurs: toute chaîne (valeur par défaut: "$plugin.$name.weechatlog")
@@ -19,7 +19,7 @@
** valeurs: on, off (valeur par défaut: on)
* *logger.file.path*
** description: chemin pour les fichiers de log WeeChat ("%h" sera remplacé par le répertoire de base WeeChat, par défaut: "~/.weechat")
** description: chemin pour les fichiers de log WeeChat; "%h" au début de la chaîne est remplacé par le répertoire de base WeeChat (par défaut: "~/.weechat"); les caractères de formatage de date sont autorisés (voir man strftime)
** type: chaîne
** valeurs: toute chaîne (valeur par défaut: "%h/logs/")
@@ -29,7 +29,7 @@
** valeurs: toute chaîne (valeur par défaut: "_")
* *logger.file.time_format*
** description: format de date/heure utilisé dans les fichiers log (voir strftime(3) pour le format de date/heure)
** description: format de date/heure utilisé dans les fichiers log (voir man strftime pour le format de date/heure)
** type: chaîne
** valeurs: toute chaîne (valeur par défaut: "%Y-%m-%d %H:%M:%S")
+4 -1
View File
@@ -5462,7 +5462,7 @@ Paramètres :
* 'signal' : signal à intercepter, peut commencer ou se terminer par "*" :
[width="80%",cols="^1,^3,^3,5",options="header"]
[width="100%",cols="^1,^3,^4,5",options="header"]
|========================================
| Extension | Signal | Paramètres | Description
@@ -5550,6 +5550,9 @@ Paramètres :
| weechat | buffer_type_changed | pointeur : tampon |
type de tampon changé
| weechat | day_changed | chaîne : nouvelle date, format : "2010-01-31" |
le jour de la date système a changé
| weechat | debug_dump | - |
requête de "dump"
+2 -2
View File
@@ -9,7 +9,7 @@
** valori: on, off (valore predefinito: off)
* *logger.file.mask*
** descrizione: mask del nome file predefinito per i file di log (il formato è "cartella/per/file" oppure "file", senza la prima "/" perché l'opzione "path" è utilizzata per costruire il percorso completo del file); sono ammesse le variabili dei buffer locali
** descrizione: default file name mask for log files (format is "directory/to/file" or "file", without first "/" because "path" option is used to build complete path to file); local buffer variables are permitted; date specifiers are permitted (see man strftime)
** tipo: stringa
** valori: qualsiasi stringa (valore predefinito: "$plugin.$name.weechatlog")
@@ -19,7 +19,7 @@
** valori: on, off (valore predefinito: on)
* *logger.file.path*
** descrizione: percorso per i file di log di WeeChat ("%h" verrà sostituito dalla cartella home di WeeChat, predefinita è "~/.weechat)
** descrizione: path for WeeChat log files; "%h" at beginning of string is replaced by WeeChat home ("~/.weechat" by default); date specifiers are permitted (see man strftime)
** tipo: stringa
** valori: qualsiasi stringa (valore predefinito: "%h/logs/")
+15 -4
View File
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.2-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-01-18 10:29+0100\n"
"POT-Creation-Date: 2010-01-26 16:02+0100\n"
"PO-Revision-Date: 2010-01-23 11:56+0100\n"
"Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4132,6 +4132,13 @@ msgstr ""
msgid "delay for filtering join/part/quit messages (in minutes)"
msgstr "zpoždění pro filtrování zpráv join/part/quit (v minutách)"
#, fuzzy
msgid "enable smart filter for \"join\" messages"
msgstr "prefix pro zprávy připojení"
msgid "enable smart filter for \"part\" and \"quit\" messages"
msgstr ""
msgid ""
"display notices as private messages (if auto, use private buffer if found)"
msgstr ""
@@ -4987,17 +4994,21 @@ msgstr ""
msgid "use only lower case for log filenames"
msgstr "používat pouze malé písmena ve jménech logovacích souborů"
#, fuzzy
msgid ""
"path for WeeChat log files (\"%h\" will be replaced by WeeChat home, \"~/."
"weechat\" by default)"
"path for WeeChat log files; \"%h\" at beginning of string is replaced by "
"WeeChat home (\"~/.weechat\" by default); date specifiers are permitted (see "
"man strftime)"
msgstr ""
"cesta pro logovací soubory WeeChat (\"%h\" bude nahrazeno domácím adresářem "
"WeeChat, \"~/.weechat\" je výchozí)"
#, fuzzy
msgid ""
"default file name mask for log files (format is \"directory/to/file\" or "
"\"file\", without first \"/\" because \"path\" option is used to build "
"complete path to file); local buffer variables are permitted"
"complete path to file); local buffer variables are permitted; date "
"specifiers are permitted (see man strftime)"
msgstr ""
"výchozí maska jména souboru pro logovací soubory (formát je \"adresář/k/"
"souboru\" nebo \"soubor\", bez úvoního \"/\", protože pro vytvoření celé "
+15 -4
View File
@@ -10,7 +10,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.2-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-01-18 10:29+0100\n"
"POT-Creation-Date: 2010-01-26 16:02+0100\n"
"PO-Revision-Date: 2010-01-23 11:56+0100\n"
"Last-Translator: Nils G <weechatter@arcor.de>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4316,6 +4316,13 @@ msgid "delay for filtering join/part/quit messages (in minutes)"
msgstr ""
"Verzögerung, in Minuten, in denen join/part/quit Nachrichten gefiltert werden"
#, fuzzy
msgid "enable smart filter for \"join\" messages"
msgstr "Präfix für Join-Nachrichten"
msgid "enable smart filter for \"part\" and \"quit\" messages"
msgstr ""
msgid ""
"display notices as private messages (if auto, use private buffer if found)"
msgstr ""
@@ -5183,17 +5190,21 @@ msgstr ""
msgid "use only lower case for log filenames"
msgstr "Benutze ausschließlich Kleinschreibung für Protokoll-Dateien"
#, fuzzy
msgid ""
"path for WeeChat log files (\"%h\" will be replaced by WeeChat home, \"~/."
"weechat\" by default)"
"path for WeeChat log files; \"%h\" at beginning of string is replaced by "
"WeeChat home (\"~/.weechat\" by default); date specifiers are permitted (see "
"man strftime)"
msgstr ""
"Suchpfad für WeeChat-Protokoll-Dateien (\"%h\" wird durch das WeeChat-"
"Basisverzeichnis ersetzt. Voreingestellt ist \"~/.weechat\")"
#, fuzzy
msgid ""
"default file name mask for log files (format is \"directory/to/file\" or "
"\"file\", without first \"/\" because \"path\" option is used to build "
"complete path to file); local buffer variables are permitted"
"complete path to file); local buffer variables are permitted; date "
"specifiers are permitted (see man strftime)"
msgstr ""
"Standard-Maske für Protokoll-Dateien (Format: \"Verzeichnis/zu/Datei\" oder "
"\"Datei\", ohne führendes \"/\" da die \"Verzeichnis\" Option genutzt wird "
+15 -4
View File
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.2-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-01-18 10:29+0100\n"
"POT-Creation-Date: 2010-01-26 16:02+0100\n"
"PO-Revision-Date: 2010-01-23 11:56+0100\n"
"Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4224,6 +4224,13 @@ msgid "delay for filtering join/part/quit messages (in minutes)"
msgstr ""
"tiempo de espera para filtrar mensajes de unión/abandono/salida (en minutos)"
#, fuzzy
msgid "enable smart filter for \"join\" messages"
msgstr "prefijo para mensajes de unión"
msgid "enable smart filter for \"part\" and \"quit\" messages"
msgstr ""
msgid ""
"display notices as private messages (if auto, use private buffer if found)"
msgstr ""
@@ -5088,17 +5095,21 @@ msgstr ""
msgid "use only lower case for log filenames"
msgstr "usar solamente minúsculas para el nombre de los archivos"
#, fuzzy
msgid ""
"path for WeeChat log files (\"%h\" will be replaced by WeeChat home, \"~/."
"weechat\" by default)"
"path for WeeChat log files; \"%h\" at beginning of string is replaced by "
"WeeChat home (\"~/.weechat\" by default); date specifiers are permitted (see "
"man strftime)"
msgstr ""
"ruta para los registros de WeeChat (\"%h\" será reemplazado por el "
"directorio raíz de WeeChat, \"~/.weechat\" por defecto)"
#, fuzzy
msgid ""
"default file name mask for log files (format is \"directory/to/file\" or "
"\"file\", without first \"/\" because \"path\" option is used to build "
"complete path to file); local buffer variables are permitted"
"complete path to file); local buffer variables are permitted; date "
"specifiers are permitted (see man strftime)"
msgstr ""
"máscara para nombre del archivo de registro por defecto (el formato es "
"\"directorio/al/archivo\" o \"archivo\", sin el primer \"/\" porque la "
+20 -10
View File
@@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.2-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-01-18 10:29+0100\n"
"PO-Revision-Date: 2010-01-23 11:56+0100\n"
"POT-Creation-Date: 2010-01-26 16:02+0100\n"
"PO-Revision-Date: 2010-01-26 16:02+0100\n"
"Last-Translator: FlashCode <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"MIME-Version: 1.0\n"
@@ -4251,6 +4251,12 @@ msgstr ""
msgid "delay for filtering join/part/quit messages (in minutes)"
msgstr "délai pour filtrer les messages join/part/quit (en minutes)"
msgid "enable smart filter for \"join\" messages"
msgstr "activer le filtre intelligent pour les messages \"join\""
msgid "enable smart filter for \"part\" and \"quit\" messages"
msgstr "activer le filtre intelligent pour les messages \"part\" et \"quit\""
msgid ""
"display notices as private messages (if auto, use private buffer if found)"
msgstr ""
@@ -5109,21 +5115,25 @@ msgid "use only lower case for log filenames"
msgstr "utiliser seulement des minuscules dans le nom des fichiers de log"
msgid ""
"path for WeeChat log files (\"%h\" will be replaced by WeeChat home, \"~/."
"weechat\" by default)"
"path for WeeChat log files; \"%h\" at beginning of string is replaced by "
"WeeChat home (\"~/.weechat\" by default); date specifiers are permitted (see "
"man strftime)"
msgstr ""
"chemin pour les fichiers de log WeeChat (\"%h\" sera remplacé par le "
"répertoire de base WeeChat, par défaut: \"~/.weechat\")"
"chemin pour les fichiers de log WeeChat; \"%h\" au début de la chaîne est "
"remplacé par le répertoire de base WeeChat (par défaut: \"~/.weechat\"); les "
"caractères de formatage de date sont autorisés (voir man strftime)"
msgid ""
"default file name mask for log files (format is \"directory/to/file\" or "
"\"file\", without first \"/\" because \"path\" option is used to build "
"complete path to file); local buffer variables are permitted"
"complete path to file); local buffer variables are permitted; date "
"specifiers are permitted (see man strftime)"
msgstr ""
"masque de fichier par défaut pour les fichiers de log (le format est "
"\"repertoire/vers/fichier\" ou \"fichier\", sans le premier \"/\" car "
"l'option \"path\" est utilisée pour construire le chemin complet vers le "
"fichier); les variables locales du tampon sont permises"
"fichier); les variables locales du tampon sont permises; les caractères de "
"formatage de date sont autorisés (voir man strftime)"
msgid ""
"replacement char for special chars in filename built with mask (like "
@@ -5139,8 +5149,8 @@ msgstr ""
msgid "timestamp used in log files (see man strftime for date/time specifiers)"
msgstr ""
"format de date/heure utilisé dans les fichiers log (voir strftime(3) pour le "
"format de date/heure)"
"format de date/heure utilisé dans les fichiers log (voir man strftime pour "
"le format de date/heure)"
msgid "list of logger buffers"
msgstr "liste des enregistreurs de tampons (loggers)"
+13 -4
View File
@@ -12,7 +12,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.2-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-01-18 10:29+0100\n"
"POT-Creation-Date: 2010-01-26 16:02+0100\n"
"PO-Revision-Date: 2010-01-23 11:57+0100\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4072,6 +4072,13 @@ msgstr ""
msgid "delay for filtering join/part/quit messages (in minutes)"
msgstr ""
#, fuzzy
msgid "enable smart filter for \"join\" messages"
msgstr "új üzenetet tartalmazó ablak színe"
msgid "enable smart filter for \"part\" and \"quit\" messages"
msgstr ""
#, fuzzy
msgid ""
"display notices as private messages (if auto, use private buffer if found)"
@@ -4889,8 +4896,9 @@ msgstr ""
#, fuzzy
msgid ""
"path for WeeChat log files (\"%h\" will be replaced by WeeChat home, \"~/."
"weechat\" by default)"
"path for WeeChat log files; \"%h\" at beginning of string is replaced by "
"WeeChat home (\"~/.weechat\" by default); date specifiers are permitted (see "
"man strftime)"
msgstr ""
"modulok elérési útvonala ('%h' helyére automatikusan a WeeChat saját "
"könyvtára, alapértelmezésben ~/.weechat, kerül)"
@@ -4898,7 +4906,8 @@ msgstr ""
msgid ""
"default file name mask for log files (format is \"directory/to/file\" or "
"\"file\", without first \"/\" because \"path\" option is used to build "
"complete path to file); local buffer variables are permitted"
"complete path to file); local buffer variables are permitted; date "
"specifiers are permitted (see man strftime)"
msgstr ""
msgid ""
+15 -4
View File
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Weechat 0.3.2-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-01-18 10:29+0100\n"
"POT-Creation-Date: 2010-01-26 16:02+0100\n"
"PO-Revision-Date: 2010-01-23 11:57+0100\n"
"Last-Translator: Marco Paolone <marcopaolone@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4225,6 +4225,13 @@ msgstr ""
"ritardo per il filtraggio dei messaggi di entrata/uscita/abbandono (in "
"minuti)"
#, fuzzy
msgid "enable smart filter for \"join\" messages"
msgstr "prefisso per i messaggi di entrata"
msgid "enable smart filter for \"part\" and \"quit\" messages"
msgstr ""
msgid ""
"display notices as private messages (if auto, use private buffer if found)"
msgstr ""
@@ -5080,17 +5087,21 @@ msgstr ""
msgid "use only lower case for log filenames"
msgstr "utilizzare solo lettere minuscole per i nomi dei file di log"
#, fuzzy
msgid ""
"path for WeeChat log files (\"%h\" will be replaced by WeeChat home, \"~/."
"weechat\" by default)"
"path for WeeChat log files; \"%h\" at beginning of string is replaced by "
"WeeChat home (\"~/.weechat\" by default); date specifiers are permitted (see "
"man strftime)"
msgstr ""
"percorso per i file di log di WeeChat (\"%h\" verrà sostituito dalla "
"cartella home di WeeChat, predefinita è \"~/.weechat)"
#, fuzzy
msgid ""
"default file name mask for log files (format is \"directory/to/file\" or "
"\"file\", without first \"/\" because \"path\" option is used to build "
"complete path to file); local buffer variables are permitted"
"complete path to file); local buffer variables are permitted; date "
"specifiers are permitted (see man strftime)"
msgstr ""
"mask del nome file predefinito per i file di log (il formato è \"cartella/"
"per/file\" oppure \"file\", senza la prima \"/\" perché l'opzione \"path\" è "
+15 -4
View File
@@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.2-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-01-18 10:29+0100\n"
"POT-Creation-Date: 2010-01-26 16:02+0100\n"
"PO-Revision-Date: 2010-01-23 11:57+0100\n"
"Last-Translator: Krzysztof Koroscik <soltys@szluug.org>\n"
"Language-Team: Polish\n"
@@ -4205,6 +4205,13 @@ msgid "delay for filtering join/part/quit messages (in minutes)"
msgstr ""
"odstęp dla filtrowania wiadomości wejścia/opuszczenia/wyjścia (w minutach)"
#, fuzzy
msgid "enable smart filter for \"join\" messages"
msgstr "przedrostek indormacji o wejsciu na kanał"
msgid "enable smart filter for \"part\" and \"quit\" messages"
msgstr ""
msgid ""
"display notices as private messages (if auto, use private buffer if found)"
msgstr ""
@@ -5056,17 +5063,21 @@ msgstr ""
msgid "use only lower case for log filenames"
msgstr "używaj tylko małych liter dla nazw plików z logami"
#, fuzzy
msgid ""
"path for WeeChat log files (\"%h\" will be replaced by WeeChat home, \"~/."
"weechat\" by default)"
"path for WeeChat log files; \"%h\" at beginning of string is replaced by "
"WeeChat home (\"~/.weechat\" by default); date specifiers are permitted (see "
"man strftime)"
msgstr ""
"ścieżka do plików z logami WeeChat (\"%h\" zostanie zastąpione przez katalog "
"domowy WeeChat, domyślnie \".weechat\")"
#, fuzzy
msgid ""
"default file name mask for log files (format is \"directory/to/file\" or "
"\"file\", without first \"/\" because \"path\" option is used to build "
"complete path to file); local buffer variables are permitted"
"complete path to file); local buffer variables are permitted; date "
"specifiers are permitted (see man strftime)"
msgstr ""
"domyślna maska nazw plików z logami (format to \"ścieżka/do/pliku\" lub "
"\"plik\", bez pierwszego \"/\" ponieważ opcja \"path\" jest użyta do "
+13 -4
View File
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.2-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-01-18 10:29+0100\n"
"POT-Creation-Date: 2010-01-26 16:02+0100\n"
"PO-Revision-Date: 2010-01-23 11:57+0100\n"
"Last-Translator: Pavel Shevchuk <stlwrt@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4073,6 +4073,13 @@ msgstr ""
msgid "delay for filtering join/part/quit messages (in minutes)"
msgstr ""
#, fuzzy
msgid "enable smart filter for \"join\" messages"
msgstr "цвет текущего окна с сообщениями"
msgid "enable smart filter for \"part\" and \"quit\" messages"
msgstr ""
#, fuzzy
msgid ""
"display notices as private messages (if auto, use private buffer if found)"
@@ -4893,8 +4900,9 @@ msgstr ""
#, fuzzy
msgid ""
"path for WeeChat log files (\"%h\" will be replaced by WeeChat home, \"~/."
"weechat\" by default)"
"path for WeeChat log files; \"%h\" at beginning of string is replaced by "
"WeeChat home (\"~/.weechat\" by default); date specifiers are permitted (see "
"man strftime)"
msgstr ""
"путь поиска pluginов ('%h' заменяется на домашний каталог WeeChat, по "
"умолчанию - ~/.weechat)"
@@ -4902,7 +4910,8 @@ msgstr ""
msgid ""
"default file name mask for log files (format is \"directory/to/file\" or "
"\"file\", without first \"/\" because \"path\" option is used to build "
"complete path to file); local buffer variables are permitted"
"complete path to file); local buffer variables are permitted; date "
"specifiers are permitted (see man strftime)"
msgstr ""
msgid ""
+12 -4
View File
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-01-18 10:29+0100\n"
"POT-Creation-Date: 2010-01-26 16:02+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -3469,6 +3469,12 @@ msgstr ""
msgid "delay for filtering join/part/quit messages (in minutes)"
msgstr ""
msgid "enable smart filter for \"join\" messages"
msgstr ""
msgid "enable smart filter for \"part\" and \"quit\" messages"
msgstr ""
msgid ""
"display notices as private messages (if auto, use private buffer if found)"
msgstr ""
@@ -4230,14 +4236,16 @@ msgid "use only lower case for log filenames"
msgstr ""
msgid ""
"path for WeeChat log files (\"%h\" will be replaced by WeeChat home, \"~/."
"weechat\" by default)"
"path for WeeChat log files; \"%h\" at beginning of string is replaced by "
"WeeChat home (\"~/.weechat\" by default); date specifiers are permitted (see "
"man strftime)"
msgstr ""
msgid ""
"default file name mask for log files (format is \"directory/to/file\" or "
"\"file\", without first \"/\" because \"path\" option is used to build "
"complete path to file); local buffer variables are permitted"
"complete path to file); local buffer variables are permitted; date "
"specifiers are permitted (see man strftime)"
msgstr ""
msgid ""
+5 -1
View File
@@ -344,7 +344,7 @@ config_day_change_timer_cb (void *data, int remaining_calls)
{
struct timeval tv_time;
struct tm *local_time;
char text_time[1024], *text_time2;
char text_time[256], *text_time2;
struct t_gui_buffer *ptr_buffer;
/* make C compiler happy */
@@ -374,6 +374,10 @@ config_day_change_timer_cb (void *data, int remaining_calls)
if (text_time2)
free (text_time2);
gui_add_hotlist = 1;
/* send signal "day_changed" */
strftime (text_time, sizeof (text_time), "%Y-%m-%d", local_time);
hook_signal_send ("day_changed", WEECHAT_HOOK_SIGNAL_STRING, text_time);
}
config_day_change_old_day = local_time->tm_mday;
+15 -7
View File
@@ -89,6 +89,7 @@ logger_buffer_add (struct t_gui_buffer *buffer, int log_level)
new_logger_buffer->log_file = NULL;
new_logger_buffer->log_enabled = 1;
new_logger_buffer->log_level = log_level;
new_logger_buffer->write_start_info_line = 1;
new_logger_buffer->prev_buffer = last_logger_buffer;
new_logger_buffer->next_buffer = NULL;
@@ -156,14 +157,9 @@ void
logger_buffer_free (struct t_logger_buffer *logger_buffer)
{
struct t_logger_buffer *new_logger_buffers;
struct t_gui_buffer *ptr_buffer;
if (weechat_logger_plugin->debug)
{
weechat_printf (NULL,
"%s: stop logging for buffer \"%s\"",
LOGGER_PLUGIN_NAME,
weechat_buffer_get_string (logger_buffer->buffer, "name"));
}
ptr_buffer = logger_buffer->buffer;
/* remove logger buffer */
if (last_logger_buffer == logger_buffer)
@@ -182,10 +178,20 @@ logger_buffer_free (struct t_logger_buffer *logger_buffer)
/* free data */
if (logger_buffer->log_filename)
free (logger_buffer->log_filename);
if (logger_buffer->log_file)
fclose (logger_buffer->log_file);
free (logger_buffer);
logger_buffers = new_logger_buffers;
if (weechat_logger_plugin->debug)
{
weechat_printf (NULL,
"%s: stop logging for buffer \"%s\"",
LOGGER_PLUGIN_NAME,
weechat_buffer_get_string (ptr_buffer, "name"));
}
}
/*
@@ -216,6 +222,8 @@ logger_buffer_add_to_infolist (struct t_infolist *infolist,
return 0;
if (!weechat_infolist_new_var_integer (ptr_item, "log_level", logger_buffer->log_level))
return 0;
if (!weechat_infolist_new_var_integer (ptr_item, "write_start_info_line", logger_buffer->write_start_info_line))
return 0;
return 1;
}
+2
View File
@@ -29,6 +29,8 @@ struct t_logger_buffer
FILE *log_file; /* log file */
int log_enabled; /* log enabled ? */
int log_level; /* log level (0..9) */
int write_start_info_line; /* 1 if start info line must be */
/* written in file */
struct t_logger_buffer *prev_buffer; /* link to previous buffer */
struct t_logger_buffer *next_buffer; /* link to next buffer */
};
+14 -22
View File
@@ -63,10 +63,7 @@ logger_config_change_file_option_restart_log (void *data,
(void) option;
if (!logger_config_loading)
{
logger_stop_all ();
logger_start_buffer_all ();
}
logger_adjust_log_filenames ();
}
/*
@@ -80,9 +77,9 @@ logger_config_level_change (void *data,
/* make C compiler happy */
(void) data;
(void) option;
if (!logger_config_loading)
logger_start_buffer_all ();
logger_start_buffer_all (1);
}
/*
@@ -102,7 +99,7 @@ logger_config_level_delete_option (void *data,
weechat_config_option_free (option);
logger_start_buffer_all ();
logger_start_buffer_all (1);
return WEECHAT_CONFIG_OPTION_UNSET_OK_REMOVED;
}
@@ -161,7 +158,7 @@ logger_config_level_create_option (void *data,
}
if (!logger_config_loading)
logger_start_buffer_all ();
logger_start_buffer_all (1);
return rc;
}
@@ -205,10 +202,7 @@ logger_config_mask_change (void *data,
(void) option;
if (!logger_config_loading)
{
logger_stop_all ();
logger_start_buffer_all ();
}
logger_adjust_log_filenames ();
}
/*
@@ -228,8 +222,7 @@ logger_config_mask_delete_option (void *data,
weechat_config_option_free (option);
logger_stop_all ();
logger_start_buffer_all ();
logger_adjust_log_filenames ();
return WEECHAT_CONFIG_OPTION_UNSET_OK_REMOVED;
}
@@ -286,12 +279,9 @@ logger_config_mask_create_option (void *data,
rc = WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE;
}
}
if (!logger_config_loading)
{
logger_stop_all ();
logger_start_buffer_all ();
}
logger_adjust_log_filenames ();
return rc;
}
@@ -369,8 +359,9 @@ logger_config_init ()
logger_config_file_path = weechat_config_new_option (
logger_config_file, ptr_section,
"path", "string",
N_("path for WeeChat log files (\"%h\" will be replaced by WeeChat "
"home, \"~/.weechat\" by default)"),
N_("path for WeeChat log files; \"%h\" at beginning of string is "
"replaced by WeeChat home (\"~/.weechat\" by default); date "
"specifiers are permitted (see man strftime)"),
NULL, 0, 0, "%h/logs/", NULL, 0, NULL, NULL,
&logger_config_change_file_option_restart_log, NULL, NULL, NULL);
logger_config_file_mask = weechat_config_new_option (
@@ -379,7 +370,8 @@ logger_config_init ()
N_("default file name mask for log files (format is "
"\"directory/to/file\" or \"file\", without first \"/\" because "
"\"path\" option is used to build complete path to file); local "
"buffer variables are permitted"),
"buffer variables are permitted; date specifiers are permitted "
"(see man strftime)"),
NULL, 0, 0, "$plugin.$name.weechatlog", NULL, 0, NULL, NULL,
&logger_config_change_file_option_restart_log, NULL, NULL, NULL);
logger_config_file_replacement_char = weechat_config_new_option (
File diff suppressed because it is too large Load Diff
+3 -2
View File
@@ -28,7 +28,8 @@
extern struct t_weechat_plugin *weechat_logger_plugin;
extern void logger_start_buffer_all ();
extern void logger_stop_all ();
extern void logger_start_buffer_all (int write_info_line);
extern void logger_stop_all (int write_info_line);
extern void logger_adjust_log_filenames ();
#endif /* logger.h */