diff options
-rw-r--r-- | doc/en/autogen/user/irc_options.txt | 5 | ||||
-rw-r--r-- | doc/fr/autogen/user/irc_options.txt | 5 | ||||
-rw-r--r-- | po/cs.po | 6 | ||||
-rw-r--r-- | po/de.po | 6 | ||||
-rw-r--r-- | po/es.po | 6 | ||||
-rw-r--r-- | po/fr.po | 7 | ||||
-rw-r--r-- | po/hu.po | 6 | ||||
-rw-r--r-- | po/pl.po | 5 | ||||
-rw-r--r-- | po/ru.po | 6 | ||||
-rw-r--r-- | po/weechat.pot | 5 | ||||
-rw-r--r-- | src/plugins/irc/irc-bar-item.c | 14 | ||||
-rw-r--r-- | src/plugins/irc/irc-config.c | 23 | ||||
-rw-r--r-- | src/plugins/irc/irc-config.h | 1 | ||||
-rw-r--r-- | src/plugins/irc/irc.h | 1 |
14 files changed, 86 insertions, 10 deletions
diff --git a/doc/en/autogen/user/irc_options.txt b/doc/en/autogen/user/irc_options.txt index 7a4f07993..fe40c0356 100644 --- a/doc/en/autogen/user/irc_options.txt +++ b/doc/en/autogen/user/irc_options.txt @@ -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 diff --git a/doc/fr/autogen/user/irc_options.txt b/doc/fr/autogen/user/irc_options.txt index b5f85b1ef..8821dd85a 100644 --- a/doc/fr/autogen/user/irc_options.txt +++ b/doc/fr/autogen/user/irc_options.txt @@ -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" @@ -3813,6 +3813,10 @@ 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 " "version in string)" @@ -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" @@ -3791,6 +3791,10 @@ 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 " "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: Roberto González Cardenete <robert.glez@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -3777,6 +3777,10 @@ 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 " "version in string)" @@ -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" @@ -3826,6 +3826,10 @@ 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 " "version in string)" @@ -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" @@ -3818,6 +3818,10 @@ 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 " "version in string)" diff --git a/po/weechat.pot b/po/weechat.pot index ee8df136b..591bc6c25 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: 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)" diff --git a/src/plugins/irc/irc-bar-item.c b/src/plugins/irc/irc-bar-item.c index 1223c2893..9a199d109 100644 --- a/src/plugins/irc/irc-bar-item.c +++ b/src/plugins/irc/irc-bar-item.c @@ -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; diff --git a/src/plugins/irc/irc-config.c b/src/plugins/irc/irc-config.c index 7955b319e..6529d827f 100644 --- a/src/plugins/irc/irc-config.c +++ b/src/plugins/irc/irc-config.c @@ -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 */ @@ -272,6 +273,22 @@ irc_config_change_color_input_nick (void *data, } /* + * 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", diff --git a/src/plugins/irc/irc-config.h b/src/plugins/irc/irc-config.h index 06ae83046..30be39987 100644 --- a/src/plugins/irc/irc-config.h +++ b/src/plugins/irc/irc-config.h @@ -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; diff --git a/src/plugins/irc/irc.h b/src/plugins/irc/irc.h index ac8c2e14e..9819396e2 100644 --- a/src/plugins/irc/irc.h +++ b/src/plugins/irc/irc.h @@ -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) |