mirror of
https://github.com/weechat/weechat.git
synced 2026-06-29 22:36:38 +02:00
Add color for bar item "away" (irc.color.item_away)
This commit is contained in:
@@ -3,6 +3,11 @@
|
||||
** type: color
|
||||
** values: a color name (default value: lightcyan)
|
||||
|
||||
* *irc.color.item_away*
|
||||
** description: color for away item
|
||||
** type: color
|
||||
** values: a color name (default value: yellow)
|
||||
|
||||
* *irc.color.message_join*
|
||||
** description: color for text in join messages
|
||||
** type: color
|
||||
|
||||
@@ -3,6 +3,11 @@
|
||||
** type: couleur
|
||||
** valeurs: un nom de couleur (valeur par défaut: lightcyan)
|
||||
|
||||
* *irc.color.item_away*
|
||||
** description: couleur pour l'objet away
|
||||
** type: couleur
|
||||
** valeurs: un nom de couleur (valeur par défaut: yellow)
|
||||
|
||||
* *irc.color.message_join*
|
||||
** description: couleur pour le texte dans les messages join
|
||||
** type: couleur
|
||||
|
||||
@@ -6,7 +6,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.3.0-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2009-05-26 10:00+0200\n"
|
||||
"POT-Creation-Date: 2009-05-28 16:33+0200\n"
|
||||
"PO-Revision-Date: 2009-05-11 13:02+0200\n"
|
||||
"Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -3812,6 +3812,10 @@ msgstr "prefix pro zprávy ukončení"
|
||||
msgid "color for nick in input bar"
|
||||
msgstr "barva přezdívek"
|
||||
|
||||
#, fuzzy
|
||||
msgid "color for away item"
|
||||
msgstr "barva přezdívek, které jsou pryč"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"default part message (leaving channel) (\"%v\" will be replaced by WeeChat "
|
||||
|
||||
@@ -9,7 +9,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.3.0-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2009-05-26 10:00+0200\n"
|
||||
"POT-Creation-Date: 2009-05-28 16:33+0200\n"
|
||||
"PO-Revision-Date: 2009-05-11 13:02+0200\n"
|
||||
"Last-Translator: Thomas Schuetz <i18n@internet-villa.de>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -3790,6 +3790,10 @@ msgstr "Standardnachricht beim Beenden"
|
||||
msgid "color for nick in input bar"
|
||||
msgstr "Farbe von Nicknames"
|
||||
|
||||
#, fuzzy
|
||||
msgid "color for away item"
|
||||
msgstr "Farbe von abwesenden Nicknames"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"default part message (leaving channel) (\"%v\" will be replaced by WeeChat "
|
||||
|
||||
@@ -6,7 +6,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.3.0-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2009-05-26 10:00+0200\n"
|
||||
"POT-Creation-Date: 2009-05-28 16:33+0200\n"
|
||||
"PO-Revision-Date: 2009-05-11 13:02+0200\n"
|
||||
"Last-Translator: Roberto González Cardenete <robert.glez@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -3776,6 +3776,10 @@ msgstr "mensaje de fin por defecto"
|
||||
msgid "color for nick in input bar"
|
||||
msgstr "color para los nombres de usuario"
|
||||
|
||||
#, fuzzy
|
||||
msgid "color for away item"
|
||||
msgstr "color para los usuarios ausentes"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"default part message (leaving channel) (\"%v\" will be replaced by WeeChat "
|
||||
|
||||
@@ -6,8 +6,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.3.0-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2009-05-26 10:00+0200\n"
|
||||
"PO-Revision-Date: 2009-05-26 10:02+0200\n"
|
||||
"POT-Creation-Date: 2009-05-28 16:33+0200\n"
|
||||
"PO-Revision-Date: 2009-05-28 16:34+0200\n"
|
||||
"Last-Translator: FlashCode <flashcode@flashtux.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
@@ -3937,6 +3937,9 @@ msgstr "couleur pour le texte dans les messages part/quit"
|
||||
msgid "color for nick in input bar"
|
||||
msgstr "couleur du pseudo dans la barre de saisie"
|
||||
|
||||
msgid "color for away item"
|
||||
msgstr "couleur pour l'objet away"
|
||||
|
||||
msgid ""
|
||||
"default part message (leaving channel) (\"%v\" will be replaced by WeeChat "
|
||||
"version in string)"
|
||||
|
||||
@@ -12,7 +12,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.3.0-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2009-05-26 10:00+0200\n"
|
||||
"POT-Creation-Date: 2009-05-28 16:33+0200\n"
|
||||
"PO-Revision-Date: 2009-05-11 13:02+0200\n"
|
||||
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -3825,6 +3825,10 @@ msgstr "alapértelmezett kilépő üzenet"
|
||||
msgid "color for nick in input bar"
|
||||
msgstr "nevek színe"
|
||||
|
||||
#, fuzzy
|
||||
msgid "color for away item"
|
||||
msgstr "távollevő felhasználók nevének színe"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"default part message (leaving channel) (\"%v\" will be replaced by WeeChat "
|
||||
|
||||
@@ -9,7 +9,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.3.0-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2009-05-26 10:00+0200\n"
|
||||
"POT-Creation-Date: 2009-05-28 16:33+0200\n"
|
||||
"PO-Revision-Date: 2009-05-11 13:02+0200\n"
|
||||
"Last-Translator: <soltys@szluug.org>\n"
|
||||
"Language-Team: Polish\n"
|
||||
@@ -3283,6 +3283,9 @@ msgstr ""
|
||||
msgid "color for nick in input bar"
|
||||
msgstr ""
|
||||
|
||||
msgid "color for away item"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
"default part message (leaving channel) (\"%v\" will be replaced by WeeChat "
|
||||
"version in string)"
|
||||
|
||||
@@ -6,7 +6,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.3.0-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2009-05-26 10:00+0200\n"
|
||||
"POT-Creation-Date: 2009-05-28 16:33+0200\n"
|
||||
"PO-Revision-Date: 2009-05-11 13:02+0200\n"
|
||||
"Last-Translator: Pavel Shevchuk <stlwrt@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -3817,6 +3817,10 @@ msgstr "сообщение о выходе по-умолчанию"
|
||||
msgid "color for nick in input bar"
|
||||
msgstr "цвет ников"
|
||||
|
||||
#, fuzzy
|
||||
msgid "color for away item"
|
||||
msgstr "цвет отошедших ников"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"default part message (leaving channel) (\"%v\" will be replaced by WeeChat "
|
||||
|
||||
+4
-1
@@ -7,7 +7,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2009-05-26 10:00+0200\n"
|
||||
"POT-Creation-Date: 2009-05-28 16:33+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"
|
||||
@@ -3250,6 +3250,9 @@ msgstr ""
|
||||
msgid "color for nick in input bar"
|
||||
msgstr ""
|
||||
|
||||
msgid "color for away item"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
"default part message (leaving channel) (\"%v\" will be replaced by WeeChat "
|
||||
"version in string)"
|
||||
|
||||
@@ -42,6 +42,8 @@ irc_bar_item_away (void *data, struct t_gui_bar_item *item,
|
||||
{
|
||||
struct t_gui_buffer *buffer;
|
||||
struct t_irc_server *server;
|
||||
char *buf;
|
||||
int length;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) data;
|
||||
@@ -54,7 +56,17 @@ irc_bar_item_away (void *data, struct t_gui_bar_item *item,
|
||||
irc_buffer_get_server_channel (buffer, &server, NULL);
|
||||
|
||||
if (server && server->is_away)
|
||||
return strdup (_("away"));
|
||||
{
|
||||
length = strlen (_("away") + 64 + 1);
|
||||
buf = malloc (length);
|
||||
if (buf)
|
||||
{
|
||||
snprintf (buf, length, "%s%s",
|
||||
IRC_COLOR_ITEM_AWAY,
|
||||
_("away"));
|
||||
return buf;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
||||
@@ -66,6 +66,7 @@ struct t_config_option *irc_config_look_topic_strip_colors;
|
||||
struct t_config_option *irc_config_color_message_join;
|
||||
struct t_config_option *irc_config_color_message_quit;
|
||||
struct t_config_option *irc_config_color_input_nick;
|
||||
struct t_config_option *irc_config_color_item_away;
|
||||
|
||||
/* IRC config, network section */
|
||||
|
||||
@@ -271,6 +272,22 @@ irc_config_change_color_input_nick (void *data,
|
||||
weechat_bar_item_update ("input_prompt");
|
||||
}
|
||||
|
||||
/*
|
||||
* irc_config_change_color_item_away: called when the color of away item is
|
||||
* changed
|
||||
*/
|
||||
|
||||
void
|
||||
irc_config_change_color_item_away (void *data,
|
||||
struct t_config_option *option)
|
||||
{
|
||||
/* make C compiler happy */
|
||||
(void) data;
|
||||
(void) option;
|
||||
|
||||
weechat_bar_item_update ("away");
|
||||
}
|
||||
|
||||
/*
|
||||
* irc_config_change_network_away_check: called when away check is changed
|
||||
*/
|
||||
@@ -1167,6 +1184,12 @@ irc_config_init ()
|
||||
N_("color for nick in input bar"),
|
||||
NULL, -1, 0, "lightcyan", NULL, 0, NULL, NULL,
|
||||
&irc_config_change_color_input_nick, NULL, NULL, NULL);
|
||||
irc_config_color_item_away = weechat_config_new_option (
|
||||
irc_config_file, ptr_section,
|
||||
"item_away", "color",
|
||||
N_("color for away item"),
|
||||
NULL, -1, 0, "yellow", NULL, 0, NULL, NULL,
|
||||
&irc_config_change_color_item_away, NULL, NULL, NULL);
|
||||
|
||||
/* network */
|
||||
ptr_section = weechat_config_new_section (irc_config_file, "network",
|
||||
|
||||
@@ -62,6 +62,7 @@ extern struct t_config_option *irc_config_look_topic_strip_colors;
|
||||
extern struct t_config_option *irc_config_color_message_join;
|
||||
extern struct t_config_option *irc_config_color_message_quit;
|
||||
extern struct t_config_option *irc_config_color_input_nick;
|
||||
extern struct t_config_option *irc_config_color_item_away;
|
||||
|
||||
extern struct t_config_option *irc_config_network_default_msg_part;
|
||||
extern struct t_config_option *irc_config_network_default_msg_quit;
|
||||
|
||||
@@ -63,6 +63,7 @@
|
||||
#define IRC_COLOR_MESSAGE_JOIN weechat_color(weechat_config_string(irc_config_color_message_join))
|
||||
#define IRC_COLOR_MESSAGE_QUIT weechat_color(weechat_config_string(irc_config_color_message_quit))
|
||||
#define IRC_COLOR_INPUT_NICK weechat_color(weechat_config_string(irc_config_color_input_nick))
|
||||
#define IRC_COLOR_ITEM_AWAY weechat_color(weechat_config_string(irc_config_color_item_away))
|
||||
#define IRC_COLOR_NICK_IN_SERVER_MESSAGE(nick) \
|
||||
((nick && weechat_config_boolean(irc_config_look_color_nicks_in_server_messages)) ? \
|
||||
nick->color : IRC_COLOR_CHAT_NICK)
|
||||
|
||||
Reference in New Issue
Block a user