2000-04-26 04:03:38 -04:00
|
|
|
/*
|
|
|
|
module-formats.c : irssi
|
|
|
|
|
|
|
|
Copyright (C) 2000 Timo Sirainen
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "module.h"
|
|
|
|
#include "printtext.h"
|
|
|
|
|
2000-05-15 04:25:45 -04:00
|
|
|
FORMAT_REC fecommon_core_formats[] = {
|
|
|
|
{ MODULE_NAME, "Core", 0 },
|
|
|
|
|
|
|
|
/* ---- */
|
|
|
|
{ NULL, "Windows", 0 },
|
|
|
|
|
|
|
|
{ "line_start", "%B-%W!%B-%n ", 0 },
|
|
|
|
{ "line_start_irssi", "%B-%W!%B- %WIrssi:%n ", 0 },
|
|
|
|
{ "timestamp", "[$[-2.0]3:$[-2.0]4] ", 6, { 1, 1, 1, 1, 1, 1 } },
|
2000-06-30 15:49:12 -04:00
|
|
|
{ "servertag", "[$0] ", 1, { 0 } },
|
|
|
|
{ "daychange", "Day changed to $[-2.0]{0} $3 $2", 4, { 1, 1, 1, 0 } },
|
2000-05-15 04:25:45 -04:00
|
|
|
{ "talking_with", "You are now talking with %_$0%_", 1, { 0 } },
|
|
|
|
{ "refnum_too_low", "Window number must be greater than 1", 0 },
|
|
|
|
{ "windowlist_header", "Ref Name Active item Server Level", 0 },
|
|
|
|
{ "windowlist_line", "$[3]0 %|$[20]1 $[15]2 $[15]3 $4", 5, { 1, 0, 0, 0, 0 } },
|
|
|
|
{ "windowlist_footer", "", 0 },
|
|
|
|
|
|
|
|
/* ---- */
|
|
|
|
{ NULL, "Server", 0 },
|
|
|
|
|
|
|
|
{ "looking_up", "Looking up %_$0%_", 1, { 0 } },
|
|
|
|
{ "connecting", "Connecting to %_$0%_ %K[%n$1%K]%n port %_$2%_", 3, { 0, 0, 1 } },
|
|
|
|
{ "connection_established", "Connection to %_$0%_ established", 1, { 0 } },
|
|
|
|
{ "cant_connect", "Unable to connect server %_$0%_ port %_$1%_ %K[%n$2%K]", 3, { 0, 1, 0 } },
|
|
|
|
{ "connection_lost", "Connection lost to %_$0%_", 1, { 0 } },
|
2000-09-06 17:30:56 -04:00
|
|
|
{ "lag_disconnected", "No PONG reply from server %_$0%_ in $1 seconds, disconnecting", 2, { 0, 1 } },
|
|
|
|
{ "disconnected", "Disconnected from %_$0%_ %K[%n$1%K]", 2, { 0, 0 } },
|
2000-05-15 04:25:45 -04:00
|
|
|
{ "server_quit", "Disconnecting from server $0: %K[%n$1%K]", 2, { 0, 0 } },
|
|
|
|
{ "server_changed", "Changed to %_$2%_ server %_$1%_", 3, { 0, 0, 0 } },
|
|
|
|
{ "unknown_server_tag", "Unknown server tag %_$0%_", 1, { 0 } },
|
2000-09-06 17:30:56 -04:00
|
|
|
{ "server_list", "%_$0%_: $1:$2 ($3)", 5, { 0, 0, 1, 0, 0 } },
|
|
|
|
{ "server_lookup_list", "%_$0%_: $1:$2 ($3) (connecting...)", 5, { 0, 0, 1, 0, 0 } },
|
|
|
|
{ "server_reconnect_list", "%_$0%_: $1:$2 ($3) ($5 left before reconnecting)", 6, { 0, 0, 1, 0, 0, 0 } },
|
|
|
|
{ "server_reconnect_removed", "Removed reconnection to server %_$0%_ port %_$1%_", 3, { 0, 1, 0 } },
|
|
|
|
{ "server_reconnect_not_found", "Reconnection tag %_$0%_ not found", 1, { 0 } },
|
|
|
|
{ "setupserver_added", "Server $0 saved", 2, { 0, 1 } },
|
|
|
|
{ "setupserver_removed", "Server $0 removed", 2, { 0, 1 } },
|
|
|
|
{ "setupserver_not_found", "Server $0 not found", 2, { 0, 1 } },
|
2000-05-15 04:25:45 -04:00
|
|
|
|
2000-09-02 14:53:58 -04:00
|
|
|
/* ---- */
|
|
|
|
{ NULL, "Channels", 0 },
|
|
|
|
|
|
|
|
{ "talking_in", "You are now talking in %_$0%_", 1, { 0 } },
|
|
|
|
{ "not_in_channels", "You are not on any channels", 0 },
|
|
|
|
{ "current_channel", "Current channel $0", 1, { 0 } },
|
|
|
|
{ "chanlist_header", "You are on the following channels:", 0 },
|
|
|
|
{ "chanlist_line", "$[-10]0 %|+$1 ($2): $3", 4, { 0, 0, 0, 0 } },
|
|
|
|
{ "chansetup_not_found", "Channel $0 not found", 2, { 0, 0 } },
|
|
|
|
{ "chansetup_added", "Channel $0 saved", 2, { 0, 0 } },
|
|
|
|
{ "chansetup_removed", "Channel $0 removed", 2, { 0, 0 } },
|
|
|
|
{ "chansetup_header", "Channel IRC net Password Settings", 0 },
|
|
|
|
{ "chansetup_line", "$[15]0 %|$[10]1 $[10]2 $3", 4, { 0, 0, 0, 0 } },
|
|
|
|
{ "chansetup_footer", "", 0 },
|
|
|
|
|
|
|
|
/* ---- */
|
|
|
|
{ NULL, "Queries", 0 },
|
|
|
|
|
|
|
|
{ "query_start", "Starting query with %_$0%_", 1, { 0 } },
|
|
|
|
{ "no_query", "No query with %_$0%_", 1, { 0 } },
|
|
|
|
{ "query_server_changed", "Query with %_$2%_ changed to server %_$1%_", 3, { 0, 0, 0 } },
|
|
|
|
|
2000-05-15 04:25:45 -04:00
|
|
|
/* ---- */
|
|
|
|
{ NULL, "Highlighting", 0 },
|
|
|
|
|
|
|
|
{ "hilight_header", "Highlights:", 0 },
|
2000-06-04 17:11:53 -04:00
|
|
|
{ "hilight_line", "$[-4]0 $1 $2 $3$4$5", 7, { 1, 0, 0, 0, 0, 0, 0 } },
|
2000-05-15 04:25:45 -04:00
|
|
|
{ "hilight_footer", "", 0 },
|
|
|
|
{ "hilight_not_found", "Highlight not found: $0", 1, { 0 } },
|
|
|
|
{ "hilight_removed", "Highlight removed: $0", 1, { 0 } },
|
|
|
|
|
|
|
|
/* ---- */
|
|
|
|
{ NULL, "Aliases", 0 },
|
|
|
|
|
|
|
|
{ "alias_added", "Alias $0 added", 1, { 0 } },
|
|
|
|
{ "alias_removed", "Alias $0 removed", 1, { 0 } },
|
|
|
|
{ "alias_not_found", "No such alias: $0", 1, { 0 } },
|
|
|
|
{ "aliaslist_header", "Aliases:", 0 },
|
|
|
|
{ "aliaslist_line", "$[10]0 $1", 2, { 0, 0 } },
|
|
|
|
{ "aliaslist_footer", "", 0 },
|
|
|
|
|
|
|
|
/* ---- */
|
|
|
|
{ NULL, "Logging", 0 },
|
|
|
|
|
2000-07-02 18:04:00 -04:00
|
|
|
{ "log_opened", "Log file %_$0%_ opened", 1, { 0 } },
|
|
|
|
{ "log_closed", "Log file %_$0%_ closed", 1, { 0 } },
|
2000-05-18 04:46:56 -04:00
|
|
|
{ "log_create_failed", "Couldn't create log file %_$0%_: $1", 2, { 0, 0 } },
|
2000-07-02 18:04:00 -04:00
|
|
|
{ "log_locked", "Log file %_$0%_ is locked, probably by another running Irssi", 1, { 0 } },
|
|
|
|
{ "log_not_open", "Log file %_$0%_ not open", 1, { 0 } },
|
|
|
|
{ "log_started", "Started logging to file %_$0", 1, { 0 } },
|
|
|
|
{ "log_stopped", "Stopped logging to file %_$0", 1, { 0 } },
|
2000-05-15 04:25:45 -04:00
|
|
|
{ "log_list_header", "Logs:", 0 },
|
2000-08-11 18:07:42 -04:00
|
|
|
{ "log_list", "$0 $1: $2 $3$4", 5, { 1, 0, 0, 0, 0, 0 } },
|
2000-05-15 04:25:45 -04:00
|
|
|
{ "log_list_footer", "", 0 },
|
|
|
|
{ "windowlog_file", "Window LOGFILE set to $0", 1, { 0 } },
|
|
|
|
{ "windowlog_file_logging", "Can't change window's logfile while log is on", 0 },
|
2000-06-01 21:15:51 -04:00
|
|
|
{ "no_away_msgs", "No new messages in awaylog", 1, { 0 } },
|
|
|
|
{ "away_msgs", "$1 new messages in awaylog:", 2, { 0, 1 } },
|
2000-05-15 04:25:45 -04:00
|
|
|
|
2000-07-02 18:04:00 -04:00
|
|
|
/* ---- */
|
|
|
|
{ NULL, "Modules", 0 },
|
|
|
|
|
|
|
|
{ "module_already_loaded", "Module %_$0%_ already loaded", 1, { 0 } },
|
|
|
|
{ "module_load_error", "Error loading module %_$0%_: $1", 2, { 0, 0 } },
|
|
|
|
{ "module_invalid", "%_$0%_ isn't Irssi module", 1, { 0 } },
|
|
|
|
{ "module_loaded", "Loaded module %_$0", 1, { 0 } },
|
|
|
|
{ "module_unloaded", "Unloaded module %_$0", 1, { 0 } },
|
|
|
|
|
2000-05-15 04:25:45 -04:00
|
|
|
/* ---- */
|
2000-07-08 18:31:11 -04:00
|
|
|
{ NULL, "Commands", 0 },
|
2000-05-15 04:25:45 -04:00
|
|
|
|
2000-07-08 18:31:11 -04:00
|
|
|
{ "command_unknown", "Unknown command: $0", 1, { 0 } },
|
|
|
|
{ "command_ambiguous", "Ambiguous command: $0", 1, { 0 } },
|
2000-06-28 11:36:57 -04:00
|
|
|
{ "option_unknown", "Unknown option: $0", 1, { 0 } },
|
|
|
|
{ "option_ambiguous", "Ambiguous option: $0", 1, { 0 } },
|
|
|
|
{ "option_missing_arg", "Missing required argument for: $0", 1, { 0 } },
|
2000-06-28 13:15:37 -04:00
|
|
|
{ "not_enough_params", "Not enough parameters given", 0 },
|
|
|
|
{ "not_connected", "Not connected to IRC server yet", 0 },
|
|
|
|
{ "not_joined", "Not joined to any channels yet", 0 },
|
|
|
|
{ "chan_not_found", "Not joined to such channel", 0 },
|
|
|
|
{ "chan_not_synced", "Channel not fully synchronized yet, try again after a while", 0 },
|
|
|
|
{ "not_good_idea", "Doing this is not a good idea. Add -YES if you really mean it", 0 },
|
2000-05-15 04:25:45 -04:00
|
|
|
|
2000-07-08 18:31:11 -04:00
|
|
|
/* ---- */
|
2000-07-31 17:16:09 -04:00
|
|
|
{ NULL, "Themes", 0 },
|
2000-07-08 18:31:11 -04:00
|
|
|
|
2000-07-31 19:13:11 -04:00
|
|
|
{ "theme_saved", "Theme saved to $0", 1, { 0 } },
|
|
|
|
{ "theme_save_failed", "Error saving theme to $0", 1, { 0 } },
|
2000-07-31 17:16:09 -04:00
|
|
|
{ "theme_not_found", "Theme %_$0%_ not found", 1, { 0 } },
|
|
|
|
{ "window_theme_changed", "Using theme %_$0%_ in this window", 1, { 0 } },
|
2000-07-21 14:53:04 -04:00
|
|
|
{ "format_title", "%:%K[%W$0%K] - [%W$1%K]%:%:", 2, { 0, 0 } },
|
|
|
|
{ "format_subtitle", "%K[%W$0%K]", 1, { 0 } },
|
|
|
|
{ "format_item", "$0 %K=%n $1", 2, { 0, 0 } },
|
2000-07-31 17:16:09 -04:00
|
|
|
|
|
|
|
/* ---- */
|
|
|
|
{ NULL, "Misc", 0 },
|
|
|
|
|
2000-07-08 18:31:11 -04:00
|
|
|
{ "not_toggle", "Value must be either ON, OFF or TOGGLE", 0 },
|
|
|
|
{ "perl_error", "Perl error: $0", 1, { 0 } },
|
|
|
|
{ "bind_key", "$[10]0 $1 $2", 3, { 0, 0, 0 } },
|
|
|
|
{ "bind_unknown_id", "Unknown bind action: $0", 1, { 0 } },
|
2000-07-22 18:05:29 -04:00
|
|
|
{ "config_saved", "Saved configuration to file $0", 1, { 0 } },
|
|
|
|
{ "config_reloaded", "Reloaded configuration", 1, { 0 } },
|
2000-07-08 18:31:11 -04:00
|
|
|
|
2000-05-15 04:25:45 -04:00
|
|
|
{ NULL, NULL, 0 }
|
2000-04-26 04:03:38 -04:00
|
|
|
};
|