Add new options irc.color.nick_prefix and irc.color.nick_suffix

This commit is contained in:
Sebastien Helleu 2010-10-13 08:41:03 +02:00
parent 34d14e649e
commit 26e98da4cb
18 changed files with 132 additions and 13 deletions

View File

@ -1,7 +1,7 @@
WeeChat ChangeLog
=================
Sébastien Helleu <flashcode@flashtux.org>
v0.3.4-dev, 2010-10-12
v0.3.4-dev, 2010-10-13
Version 0.3.4 (under dev!)
@ -22,6 +22,7 @@ Version 0.3.4 (under dev!)
* api: add priority for hooks (task #10550)
* api: add new functions: hashtable_get_string, hook_info_hashtable,
info_get_hashtable
* irc: add new options irc.color.nick_prefix and irc.color.nick_suffix
* irc: add new option irc.look.item_away_message
* irc: add tag "nick_xxx" in user messages
* irc: move options from network section to server section: connection_timeout,

View File

@ -33,6 +33,11 @@
** Typ: Farbe
** Werte: ein Farbname (Standardwert: `red`)
* *irc.color.nick_prefix*
** Beschreibung: `color for nick prefix (prefix is custom string displayed before nick)`
** Typ: Farbe
** Werte: ein Farbname (Standardwert: `green`)
* *irc.color.nick_prefix_halfop*
** Beschreibung: `Textfarbe für den Nick-Präfix des halfop in einem Channel`
** Typ: Farbe
@ -53,6 +58,11 @@
** Typ: Farbe
** Werte: ein Farbname (Standardwert: `yellow`)
* *irc.color.nick_suffix*
** Beschreibung: `color for nick suffix (suffix is custom string displayed after nick)`
** Typ: Farbe
** Werte: ein Farbname (Standardwert: `green`)
* *irc.color.notice*
** Beschreibung: `Farbe des "Notice"-Textes in Notizen`
** Typ: Farbe

View File

@ -33,6 +33,11 @@
** type: color
** values: a color name (default value: `red`)
* *irc.color.nick_prefix*
** description: `color for nick prefix (prefix is custom string displayed before nick)`
** type: color
** values: a color name (default value: `green`)
* *irc.color.nick_prefix_halfop*
** description: `color for prefix of nick which is halfop on channel`
** type: color
@ -53,6 +58,11 @@
** type: color
** values: a color name (default value: `yellow`)
* *irc.color.nick_suffix*
** description: `color for nick suffix (suffix is custom string displayed after nick)`
** type: color
** values: a color name (default value: `green`)
* *irc.color.notice*
** description: `color for text "Notice" in notices`
** type: color

View File

@ -33,6 +33,11 @@
** type: couleur
** valeurs: un nom de couleur (valeur par défaut: `red`)
* *irc.color.nick_prefix*
** description: `couleur pour le préfixe du pseudo (le préfixe est une chaîne personnalisée affichée avant le pseudo)`
** type: couleur
** valeurs: un nom de couleur (valeur par défaut: `green`)
* *irc.color.nick_prefix_halfop*
** description: `couleur pour le préfixe d'un pseudo qui est halfop sur le canal`
** type: couleur
@ -53,6 +58,11 @@
** type: couleur
** valeurs: un nom de couleur (valeur par défaut: `yellow`)
* *irc.color.nick_suffix*
** description: `couleur pour le suffixe du pseudo (le suffixe est une chaîne personnalisée affichée après le pseudo)`
** type: couleur
** valeurs: un nom de couleur (valeur par défaut: `green`)
* *irc.color.notice*
** description: `couleur pour le texte "Notice" dans les notices`
** type: couleur

View File

@ -33,6 +33,11 @@
** tipo: colore
** valori: un nome colore (valore predefinito: `red`)
* *irc.color.nick_prefix*
** descrizione: `color for nick prefix (prefix is custom string displayed before nick)`
** tipo: colore
** valori: un nome colore (valore predefinito: `green`)
* *irc.color.nick_prefix_halfop*
** descrizione: `colore per il prefisso del nick che è halfop sul canale`
** tipo: colore
@ -53,6 +58,11 @@
** tipo: colore
** valori: un nome colore (valore predefinito: `yellow`)
* *irc.color.nick_suffix*
** descrizione: `color for nick suffix (suffix is custom string displayed after nick)`
** tipo: colore
** valori: un nome colore (valore predefinito: `green`)
* *irc.color.notice*
** descrizione: `colore per il testo "Notifica" nelle notifiche`
** tipo: colore

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.4-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-10-12 12:58+0200\n"
"POT-Creation-Date: 2010-10-13 08:38+0200\n"
"PO-Revision-Date: 2010-08-07 10:46+0200\n"
"Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -4702,6 +4702,12 @@ msgstr "barva prefixu přezdívky, která může mluvit na kanálu"
msgid "color for prefix of nick which is user on channel"
msgstr "barva prefixu přezdívky, která je uživatelem na kanálu"
msgid "color for nick prefix (prefix is custom string displayed before nick)"
msgstr ""
msgid "color for nick suffix (suffix is custom string displayed after nick)"
msgstr ""
msgid "color for text \"Notice\" in notices"
msgstr "barva textu \"Notice\" v upozorněních"

View File

@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.4-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-10-12 12:58+0200\n"
"POT-Creation-Date: 2010-10-13 08:38+0200\n"
"PO-Revision-Date: 2010-10-11 16:32+0200\n"
"Last-Translator: Nils G.\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -4898,6 +4898,12 @@ msgstr ""
msgid "color for prefix of nick which is user on channel"
msgstr "Textfarbe für den Nick-Präfix eines Users in einem Channel"
msgid "color for nick prefix (prefix is custom string displayed before nick)"
msgstr ""
msgid "color for nick suffix (suffix is custom string displayed after nick)"
msgstr ""
msgid "color for text \"Notice\" in notices"
msgstr "Farbe des \"Notice\"-Textes in Notizen"

View File

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.4-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-10-12 12:58+0200\n"
"POT-Creation-Date: 2010-10-13 08:38+0200\n"
"PO-Revision-Date: 2010-08-07 10:46+0200\n"
"Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -4761,6 +4761,12 @@ msgstr "color del prefijo del apodo cuando tiene voz en el canal"
msgid "color for prefix of nick which is user on channel"
msgstr "color del prefijo del apodo cuando es un usuario del canal"
msgid "color for nick prefix (prefix is custom string displayed before nick)"
msgstr ""
msgid "color for nick suffix (suffix is custom string displayed after nick)"
msgstr ""
msgid "color for text \"Notice\" in notices"
msgstr "color para el texto \"Notice\" en los mensajes de aviso"

View File

@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.4-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-10-12 12:58+0200\n"
"PO-Revision-Date: 2010-10-12 12:58+0200\n"
"POT-Creation-Date: 2010-10-13 08:38+0200\n"
"PO-Revision-Date: 2010-10-13 08:39+0200\n"
"Last-Translator: Sebastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: French\n"
@ -4818,6 +4818,16 @@ msgstr "couleur pour le préfixe d'un pseudo qui a le voice sur le canal"
msgid "color for prefix of nick which is user on channel"
msgstr "couleur pour le préfixe d'un pseudo qui est user sur le canal"
msgid "color for nick prefix (prefix is custom string displayed before nick)"
msgstr ""
"couleur pour le préfixe du pseudo (le préfixe est une chaîne personnalisée "
"affichée avant le pseudo)"
msgid "color for nick suffix (suffix is custom string displayed after nick)"
msgstr ""
"couleur pour le suffixe du pseudo (le suffixe est une chaîne personnalisée "
"affichée après le pseudo)"
msgid "color for text \"Notice\" in notices"
msgstr "couleur pour le texte \"Notice\" dans les notices"

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.4-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-10-12 12:58+0200\n"
"POT-Creation-Date: 2010-10-13 08:38+0200\n"
"PO-Revision-Date: 2010-08-07 10:46+0200\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -4467,6 +4467,12 @@ msgstr ""
msgid "color for prefix of nick which is user on channel"
msgstr ""
msgid "color for nick prefix (prefix is custom string displayed before nick)"
msgstr ""
msgid "color for nick suffix (suffix is custom string displayed after nick)"
msgstr ""
#, fuzzy
msgid "color for text \"Notice\" in notices"
msgstr "új üzenetet tartalmazó ablak színe"

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.4-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-10-12 12:58+0200\n"
"POT-Creation-Date: 2010-10-13 08:38+0200\n"
"PO-Revision-Date: 2010-10-10 19:30+0200\n"
"Last-Translator: Marco Paolone <marcopaolone@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -4778,6 +4778,12 @@ msgstr "colore per il prefisso del nick che ha il voice sul canale"
msgid "color for prefix of nick which is user on channel"
msgstr "colore per il prefisso del nick che è utente sul canale"
msgid "color for nick prefix (prefix is custom string displayed before nick)"
msgstr ""
msgid "color for nick suffix (suffix is custom string displayed after nick)"
msgstr ""
msgid "color for text \"Notice\" in notices"
msgstr "colore per il testo \"Notifica\" nelle notifiche"

View File

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.4-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-10-12 12:58+0200\n"
"POT-Creation-Date: 2010-10-13 08:38+0200\n"
"PO-Revision-Date: 2010-08-07 10:46+0200\n"
"Last-Translator: Krzysztof Koroscik <soltys@szluug.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -4738,6 +4738,12 @@ msgstr "kolor prefiksu nicka posiadającego voice"
msgid "color for prefix of nick which is user on channel"
msgstr "kolor prefixu nicka użytkownika na kanale"
msgid "color for nick prefix (prefix is custom string displayed before nick)"
msgstr ""
msgid "color for nick suffix (suffix is custom string displayed after nick)"
msgstr ""
msgid "color for text \"Notice\" in notices"
msgstr "kolor tekstu \"Notice\" w podświetleniach"

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.4-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-10-12 12:58+0200\n"
"POT-Creation-Date: 2010-10-13 08:38+0200\n"
"PO-Revision-Date: 2010-08-07 10:46+0200\n"
"Last-Translator: Pavel Shevchuk <stlwrt@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -4474,6 +4474,12 @@ msgstr ""
msgid "color for prefix of nick which is user on channel"
msgstr ""
msgid "color for nick prefix (prefix is custom string displayed before nick)"
msgstr ""
msgid "color for nick suffix (suffix is custom string displayed after nick)"
msgstr ""
#, fuzzy
msgid "color for text \"Notice\" in notices"
msgstr "цвет текущего окна с сообщениями"

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-10-12 12:58+0200\n"
"POT-Creation-Date: 2010-10-13 08:38+0200\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"
@ -3823,6 +3823,12 @@ msgstr ""
msgid "color for prefix of nick which is user on channel"
msgstr ""
msgid "color for nick prefix (prefix is custom string displayed before nick)"
msgstr ""
msgid "color for nick suffix (suffix is custom string displayed after nick)"
msgstr ""
msgid "color for text \"Notice\" in notices"
msgstr ""

View File

@ -70,6 +70,8 @@
#define IRC_COLOR_NICK_PREFIX_HALFOP weechat_color(weechat_config_string(irc_config_color_nick_prefix_halfop))
#define IRC_COLOR_NICK_PREFIX_VOICE weechat_color(weechat_config_string(irc_config_color_nick_prefix_voice))
#define IRC_COLOR_NICK_PREFIX_USER weechat_color(weechat_config_string(irc_config_color_nick_prefix_user))
#define IRC_COLOR_NICK_PREFIX weechat_color(weechat_config_string(irc_config_color_nick_prefix))
#define IRC_COLOR_NICK_SUFFIX weechat_color(weechat_config_string(irc_config_color_nick_suffix))
#define IRC_COLOR_BAR_FG weechat_color("bar_fg")
#define IRC_COLOR_BAR_BG weechat_color("bar_bg")
#define IRC_COLOR_BAR_DELIM weechat_color("bar_delim")

View File

@ -94,6 +94,8 @@ struct t_config_option *irc_config_color_nick_prefix_op;
struct t_config_option *irc_config_color_nick_prefix_halfop;
struct t_config_option *irc_config_color_nick_prefix_voice;
struct t_config_option *irc_config_color_nick_prefix_user;
struct t_config_option *irc_config_color_nick_prefix;
struct t_config_option *irc_config_color_nick_suffix;
struct t_config_option *irc_config_color_notice;
struct t_config_option *irc_config_color_input_nick;
struct t_config_option *irc_config_color_item_away;
@ -1879,6 +1881,20 @@ irc_config_init ()
N_("color for prefix of nick which is user on channel"),
NULL, -1, 0, "blue", NULL, 0, NULL, NULL,
&irc_config_change_color_nick_prefix, NULL, NULL, NULL);
irc_config_color_nick_prefix = weechat_config_new_option (
irc_config_file, ptr_section,
"nick_prefix", "color",
N_("color for nick prefix (prefix is custom string displayed "
"before nick)"),
NULL, -1, 0, "green", NULL, 0, NULL, NULL,
NULL, NULL, NULL, NULL);
irc_config_color_nick_suffix = weechat_config_new_option (
irc_config_file, ptr_section,
"nick_suffix", "color",
N_("color for nick suffix (suffix is custom string displayed "
"after nick)"),
NULL, -1, 0, "green", NULL, 0, NULL, NULL,
NULL, NULL, NULL, NULL);
irc_config_color_notice = weechat_config_new_option (
irc_config_file, ptr_section,
"notice", "color",

View File

@ -118,6 +118,8 @@ extern struct t_config_option *irc_config_color_nick_prefix_op;
extern struct t_config_option *irc_config_color_nick_prefix_halfop;
extern struct t_config_option *irc_config_color_nick_prefix_voice;
extern struct t_config_option *irc_config_color_nick_prefix_user;
extern struct t_config_option *irc_config_color_nick_prefix;
extern struct t_config_option *irc_config_color_nick_suffix;
extern struct t_config_option *irc_config_color_notice;
extern struct t_config_option *irc_config_color_input_nick;
extern struct t_config_option *irc_config_color_item_away;

View File

@ -698,7 +698,7 @@ irc_nick_as_prefix (struct t_irc_server *server, struct t_irc_nick *nick,
snprintf (result, sizeof (result), "%s%s%s%s%s%s%s%s\t",
(weechat_config_string (irc_config_look_nick_prefix)
&& weechat_config_string (irc_config_look_nick_prefix)[0]) ?
IRC_COLOR_CHAT_DELIMITERS : "",
IRC_COLOR_NICK_PREFIX : "",
(weechat_config_string (irc_config_look_nick_prefix)
&& weechat_config_string (irc_config_look_nick_prefix)[0]) ?
weechat_config_string (irc_config_look_nick_prefix) : "",
@ -708,7 +708,7 @@ irc_nick_as_prefix (struct t_irc_server *server, struct t_irc_nick *nick,
(nick) ? nick->name : nickname,
(weechat_config_string (irc_config_look_nick_suffix)
&& weechat_config_string (irc_config_look_nick_suffix)[0]) ?
IRC_COLOR_CHAT_DELIMITERS : "",
IRC_COLOR_NICK_SUFFIX : "",
(weechat_config_string (irc_config_look_nick_suffix)
&& weechat_config_string (irc_config_look_nick_suffix)[0]) ?
weechat_config_string (irc_config_look_nick_suffix) : "");