/[weechat]/weechat/src/common/weeconfig.c
ViewVC logotype

Diff of /weechat/src/common/weeconfig.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.82 by flashcode, Tue Oct 18 17:46:55 2005 UTC revision 1.83 by flashcode, Fri Oct 21 13:59:55 2005 UTC
# Line 40  Line 40 
40  #include "command.h"  #include "command.h"
41  #include "fifo.h"  #include "fifo.h"
42  #include "log.h"  #include "log.h"
43    #include "utf8.h"
44  #include "../irc/irc.h"  #include "../irc/irc.h"
45  #include "../gui/gui.h"  #include "../gui/gui.h"
46    
# Line 67  int cfg_look_set_title; Line 68  int cfg_look_set_title;
68  int cfg_look_startup_logo;  int cfg_look_startup_logo;
69  int cfg_look_startup_version;  int cfg_look_startup_version;
70  char *cfg_look_weechat_slogan;  char *cfg_look_weechat_slogan;
71  char *cfg_look_charset_decode;  char *cfg_look_charset_decode_iso;
72    char *cfg_look_charset_decode_utf;
73  char *cfg_look_charset_encode;  char *cfg_look_charset_encode;
74  char *cfg_look_charset_internal;  char *cfg_look_charset_internal;
75  char *cfg_look_buffer_timestamp;  char *cfg_look_buffer_timestamp;
# Line 112  t_config_option weechat_options_look[] = Line 114  t_config_option weechat_options_look[] =
114      N_("WeeChat slogan (if empty, slogan is not used)"),      N_("WeeChat slogan (if empty, slogan is not used)"),
115      OPTION_TYPE_STRING, 0, 0, 0,      OPTION_TYPE_STRING, 0, 0, 0,
116      "the geekest IRC client!", NULL, NULL, &cfg_look_weechat_slogan, config_change_noop },      "the geekest IRC client!", NULL, NULL, &cfg_look_weechat_slogan, config_change_noop },
117    { "look_charset_decode", N_("charset for decoding messages from server"),    { "look_charset_decode_iso", N_("ISO charset for decoding messages from server (used only if locale is UTF-8)"),
118      N_("charset for decoding messages from server, examples: UTF-8, ISO-8859-1 (if empty, messages are not converted)"),      N_("ISO charset for decoding messages from server (used only if locale is UTF-8) "
119           "(if empty, messages are not converted if locale is UTF-8"),
120        OPTION_TYPE_STRING, 0, 0, 0,
121        "ISO-8859-1", NULL, NULL, &cfg_look_charset_decode_iso, config_change_charset },
122      { "look_charset_decode_utf", N_("UTF charset for decoding messages from server (used only if locale is not UTF-8)"),
123        N_("UTF charset for decoding messages from server (used only if locale is not UTF-8) "
124           "(if empty, messages are not converted if locale is not UTF-8"),
125      OPTION_TYPE_STRING, 0, 0, 0,      OPTION_TYPE_STRING, 0, 0, 0,
126      "UTF-8", NULL, NULL, &cfg_look_charset_decode, config_change_buffer_content },      "UTF-8", NULL, NULL, &cfg_look_charset_decode_utf, config_change_charset },
127    { "look_charset_encode", N_("charset for encoding messages sent to server"),    { "look_charset_encode", N_("charset for encoding messages sent to server"),
128      N_("charset for encoding messages sent to server, examples: UFT-8, ISO-8859-1 (if empty, local charset is used)"),      N_("charset for encoding messages sent to server, examples: UFT-8, ISO-8859-1 (if empty, messages are not converted)"),
129      OPTION_TYPE_STRING, 0, 0, 0,      OPTION_TYPE_STRING, 0, 0, 0,
130      "", NULL, NULL, &cfg_look_charset_encode, config_change_buffer_content },      "", NULL, NULL, &cfg_look_charset_encode, config_change_charset },
131    { "look_charset_internal", N_("internal WeeChat charset (should be ISO)"),    { "look_charset_internal", N_("forces internal WeeChat charset (should be empty in most cases)"),
132      N_("internal WeeChat charset, should be ISO-xxxx even if locale is UTF-8 (if empty, local charset is used)"),      N_("forces internal WeeChat charset (should be empty in most cases, that means detected charset is used)"),
133      OPTION_TYPE_STRING, 0, 0, 0,      OPTION_TYPE_STRING, 0, 0, 0,
134      "ISO-8859-1", NULL, NULL, &cfg_look_charset_internal, config_change_buffer_content },      "", NULL, NULL, &cfg_look_charset_internal, config_change_charset },
135    { "look_buffer_timestamp", N_("timestamp for buffers"),    { "look_buffer_timestamp", N_("timestamp for buffers"),
136      N_("timestamp for buffers"),      N_("timestamp for buffers"),
137      OPTION_TYPE_STRING, 0, 0, 0,      OPTION_TYPE_STRING, 0, 0, 0,
# Line 972  config_change_buffer_content () Line 980  config_change_buffer_content ()
980      gui_redraw_buffer (gui_current_window->buffer);      gui_redraw_buffer (gui_current_window->buffer);
981  }  }
982    
983    /*
984     * config_change_charset: called when charset changes
985     */
986    
987    void
988    config_change_charset ()
989    {
990        utf8_init ();
991        gui_redraw_buffer (gui_current_window->buffer);
992    }
993    
994  /*  /*
995   * config_change_color: called when a color is changed by /set command   * config_change_color: called when a color is changed by /set command
996   */   */

Legend:
Removed from v.1.82  
changed lines
  Added in v.1.83

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26