Added SILC Thread Queue API
[runtime.git] / apps / irssi / src / fe-common / core / module-formats.c
index 0f37ccfd649173b1e3cd28647f4a3a7312711290..cae4b9a584482392e1fe2306e6f7f5db625fd272 100644 (file)
@@ -28,27 +28,50 @@ FORMAT_REC fecommon_core_formats[] = {
        { NULL, "Windows", 0 },
 
        { "line_start", "{line_start}", 0 },
-       { "line_start_irssi", "{line_start}{hilight Irssi:} ", 0 }, 
-        { "timestamp", "{timestamp $Z} ", 6, { 1, 1, 1, 1, 1, 1 } },
+       { "line_start_irssi", "{line_start}{hilight Irssi:} ", 0 },
+        { "timestamp", "{timestamp $Z} ", 0 },
        { "servertag", "[$0] ", 1, { 0 } },
-       { "daychange", "Day changed to $[-2.0]{0} $3 $2", 4, { 1, 1, 1, 0 } },
+       { "daychange", "Day changed to %%d %%b %%Y", 0 },
        { "talking_with", "You are now talking with {nick $0}", 1, { 0 } },
        { "refnum_too_low", "Window number must be greater than 1", 0 },
        { "error_server_sticky", "Window's server is sticky and it cannot be changed without -unsticky option", 0 },
        { "set_server_sticky", "Window's server set sticky", 1, { 0 } },
-       { "unset_server_sticky", "Window's server isn't sticky anymore", 1, { 0 } },
+       { "unset_server_sticky", "Window's server isn't sticky anymore", 0 },
+       { "window_name_not_unique", "Window names must be unique", 1, { 0 } },
        { "window_level", "Window level is now $0", 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 } },
+       { "window_set_immortal", "Window is now immortal", 0 },
+       { "window_unset_immortal", "Window isn't immortal anymore", 0 },
+       { "window_immortal_error", "Window is immortal, if you really want to close it, say /WINDOW IMMORTAL OFF", 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 },
-       { "windows_layout_saved", "Layout of windows is now remembered next time you start silc", 0 },
+       { "windows_layout_saved", "Layout of windows is now remembered next time you start irssi", 0 },
        { "windows_layout_reset", "Layout of windows reset to defaults", 0 },
+       { "window_info_header", "", 0 },
+       { "window_info_footer", "", 0 },
+       { "window_info_refnum", "%#Window  : {hilight #$0}", 1, { 1 } },
+       { "window_info_refnum_sticky", "%#Window  : {hilight #$0 (sticky)}", 1, { 1 } },
+       { "window_info_name", "%#Name    : $0", 1, { 0 } },
+       { "window_info_history", "%#History : $0", 1, { 0 } },
+       { "window_info_immortal", "%#Immortal: yes", 0 },
+       { "window_info_size", "%#Size    : $0x$1", 2, { 1, 1 } },
+       { "window_info_level", "%#Level   : $0", 1, { 0 } },
+       { "window_info_server", "%#Server  : $0", 1, { 0 } },
+       { "window_info_server_sticky", "%#Server  : $0 (sticky)", 1, { 0 } },
+       { "window_info_theme", "%#Theme   : $0$1", 2, { 0, 0 } },
+       { "window_info_bound_items_header", "%#Bounds  : {hilight Name                           Server tag}", 0 },
+       { "window_info_bound_item", "%#        : $[!30]0 $[!15]1 $2", 3, { 0, 0, 0 } },
+       { "window_info_bound_items_footer", "", 0 },
+       { "window_info_items_header", "%#Items   : {hilight Name                           Server tag}", 0 },
+       { "window_info_item", "%# $[7]0: $[!30]1 $2", 3, { 0, 0, 0 } },
+       { "window_info_items_footer", "", 0 },
 
        /* ---- */
        { NULL, "Server", 0 },
 
        { "looking_up", "Looking up {server $0}", 1, { 0 } },
        { "connecting", "Connecting to {server $0} [$1] port {hilight $2}", 3, { 0, 0, 1 } },
+       { "reconnecting", "Reconnecting to {server $0} [$1] port {hilight $2} - use /RMRECONNS to abort", 3, { 0, 0, 1 } },
        { "connection_established", "Connection to {server $0} established", 1, { 0 } },
        { "cant_connect", "Unable to connect server {server $0} port {hilight $1} {reason $2}", 3, { 0, 1, 0 } },
        { "connection_lost", "Connection lost to {server $0}", 1, { 0 } },
@@ -66,35 +89,40 @@ FORMAT_REC fecommon_core_formats[] = {
        { "setupserver_added", "Server {server $0} saved", 2, { 0, 1 } },
        { "setupserver_removed", "Server {server $0} removed", 2, { 0, 1 } },
        { "setupserver_not_found", "Server {server $0} not found", 2, { 0, 1 } },
+       { "your_nick", "Your nickname is {nick $0}", 1, { 0 } },
 
        /* ---- */
        { NULL, "Channels", 0 },
 
        { "join", "{channick_hilight $0} {chanhost_hilight $1} has joined {channel $2}", 3, { 0, 0, 0 } },
        { "part", "{channick $0} {chanhost $1} has left {channel $2} {reason $3}", 4, { 0, 0, 0, 0 } },
-       { "kick", "{channick $0} was kicked from {channel $1} by {nick $2} {reason $3}", 4, { 0, 0, 0, 0 } },
+       { "kick", "{channick $0} was kicked from {channel $1} by {nick $2} {reason $3}", 5, { 0, 0, 0, 0, 0 } },
        { "quit", "{channick $0} {chanhost $1} has quit {reason $2}", 4, { 0, 0, 0, 0 } },
        { "quit_once", "{channel $3} {channick $0} {chanhost $1} has quit {reason $2}", 4, { 0, 0, 0, 0 } },
-       { "invite", "{nick $0} invites you to {channel $1}", 2, { 0, 0 } },
-       { "new_topic", "{nick $0} changed the topic of {channel $1} to: $2", 3, { 0, 0, 0 } },
-       { "topic_unset", "Topic unset by {nick $0} on {channel $1}", 2, { 0, 0 } },
-       { "your_nick_changed", "You're now known as {nick $1}", 3, { 0, 0, 0 } },
-       { "nick_changed", "{channick $0} is now known as {channick_hilight $1}", 3, { 0, 0, 0 } },
+       { "invite", "{nick $0} invites you to {channel $1}", 3, { 0, 0, 0 } },
+       { "not_invited", "You have not been invited to a channel!", 0 },
+       { "new_topic", "{nick $0} changed the topic of {channel $1} to: $2", 4, { 0, 0, 0, 0 } },
+       { "topic_unset", "Topic unset by {nick $0} on {channel $1}", 4, { 0, 0, 0, 0 } },
+       { "your_nick_changed", "You're now known as {nick $1}", 4, { 0, 0, 0, 0 } },
+       { "nick_changed", "{channick $0} is now known as {channick_hilight $1}", 4, { 0, 0, 0, 0 } },
        { "talking_in", "You are now talking in {channel $0}", 1, { 0 } },
        { "not_in_channels", "You are not on any channels", 0 },
        { "current_channel", "Current channel {channel $0}", 1, { 0 } },
-       { "names", "{names_users Users {names_channel $0}} $1", 2, { 0, 0 } },
+       { "names", "{names_users Users {names_channel $0}}", 6, { 0, 1, 1, 1, 1, 1 } },
+       { "names_prefix", "%#{names_prefix $0}", 1, { 0 } },
+        { "names_nick_op", "{names_nick_op $0 $1}", 2, { 0, 0 } },
+        { "names_nick_halfop", "{names_nick_halfop $0 $1}", 2, { 0, 0 } },
+        { "names_nick_voice", "{names_nick_voice $0 $1}", 2, { 0, 0 } },
         { "names_nick", "{names_nick $0 $1}", 2, { 0, 0 } },
-       { "endofnames", "{channel $0}: Total of {hilight $1} nicks {comment {hilight $2} ops, {hilight $3} voices, {hilight $4} normal}", 5, { 0, 1, 1, 1, 1 } },
-       { "chanlist_header", "You are on the following channels:", 0 },
-       { "chanlist_line", "{channel $[-10]0} %|+$1 ($2): $3", 4, { 0, 0, 0, 0 } },
+        { "endofnames", "{channel $0}: Total of {hilight $1} nicks {comment {hilight $2} ops, {hilight $3} halfops, {hilight $4} voices, {hilight $5} normal}", 6, { 0, 1, 1, 1, 1, 1 } },
+       { "chanlist_header", "%#You are on the following channels:", 0 },
+       { "chanlist_line", "%#{channel $[-10]0} %|+$1 ($2): $3", 4, { 0, 0, 0, 0 } },
        { "chansetup_not_found", "Channel {channel $0} not found", 2, { 0, 0 } },
        { "chansetup_added", "Channel {channel $0} saved", 2, { 0, 0 } },
        { "chansetup_removed", "Channel {channel $0} removed", 2, { 0, 0 } },
-       { "chansetup_header", "Channel         IRC net    Password   Settings", 0 },
-       { "chansetup_line", "{channel $[15]0} %|$[10]1 $[10]2 $3", 4, { 0, 0, 0, 0 } },
+       { "chansetup_header", "%#Channel         Network    Password   Settings", 0 },
+       { "chansetup_line", "%#{channel $[15]0} %|$[10]1 $[10]2 $3", 4, { 0, 0, 0, 0 } },
        { "chansetup_footer", "", 0 },
-       { "channel_move_notify", "{channel $0} is already joined in window $1, use \"/WINDOW ITEM MOVE $0\" to move it to this window", 2, { 0, 1 } },
 
        /* ---- */
        { NULL, "Messages", 0 },
@@ -117,16 +145,16 @@ FORMAT_REC fecommon_core_formats[] = {
        /* ---- */
        { NULL, "Queries", 0 },
 
-       { "query_start", "Starting query with {nick $0}", 1, { 0 } },
+       { "query_start", "Starting query in {server $1} with {nick $0}", 2, { 0, 0 } },
+       { "query_stop", "Closing query with {nick $0}", 1, { 0 } },
        { "no_query", "No query with {nick $0}", 1, { 0 } },
        { "query_server_changed", "Query with {nick $0} changed to server {server $1}", 2, { 0, 0 } },
-       { "query_move_notify", "Query with {nick $0} is already created to window $1, use \"/WINDOW ITEM MOVE $0\" to move it to this window", 2, { 0, 1 } },
 
        /* ---- */
        { NULL, "Highlighting", 0 },
 
-       { "hilight_header", "Highlights:", 0 },
-       { "hilight_line", "$[-4]0 $1 $2 $3$4$5", 7, { 1, 0, 0, 0, 0, 0, 0 } },
+       { "hilight_header", "%#Highlights:", 0 },
+       { "hilight_line", "%#$[-4]0 $1 $2 $3$4", 5, { 1, 0, 0, 0, 0 } },
        { "hilight_footer", "", 0 },
        { "hilight_not_found", "Highlight not found: $0", 1, { 0 } },
        { "hilight_removed", "Highlight removed: $0", 1, { 0 } },
@@ -137,8 +165,8 @@ FORMAT_REC fecommon_core_formats[] = {
        { "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_header", "%#Aliases:", 0 },
+       { "aliaslist_line", "%#$[10]0 $1", 2, { 0, 0 } },
        { "aliaslist_footer", "", 0 },
 
        /* ---- */
@@ -147,12 +175,12 @@ FORMAT_REC fecommon_core_formats[] = {
        { "log_opened", "Log file {hilight $0} opened", 1, { 0 } },
        { "log_closed", "Log file {hilight $0} closed", 1, { 0 } },
        { "log_create_failed", "Couldn't create log file {hilight $0}: $1", 2, { 0, 0 } },
-       { "log_locked", "Log file {hilight $0} is locked, probably by another running Irssi-SILC", 1, { 0 } },
+       { "log_locked", "Log file {hilight $0} is locked, probably by another running Irssi", 1, { 0 } },
        { "log_not_open", "Log file {hilight $0} not open", 1, { 0 } },
        { "log_started", "Started logging to file {hilight $0}", 1, { 0 } },
        { "log_stopped", "Stopped logging to file {hilight $0}", 1, { 0 } },
-       { "log_list_header", "Logs:", 0 },
-       { "log_list", "$0 $1: $2 $3$4", 5, { 1, 0, 0, 0, 0, 0 } },
+       { "log_list_header", "%#Logs:", 0 },
+       { "log_list", "%#$0 $1: $2 $3$4", 5, { 1, 0, 0, 0, 0, 0 } },
        { "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 },
@@ -162,14 +190,15 @@ FORMAT_REC fecommon_core_formats[] = {
        /* ---- */
        { NULL, "Modules", 0 },
 
-       { "module_header", "Loaded modules:", 0, },
-       { "module_line", "  $0", 1, { 0 } },
+       { "module_header", "%#Module               Type    Submodules", 0, },
+       { "module_line", "%#$[!20]0 $[7]1 $2", 3, { 0, 0, 0 } },
        { "module_footer", "", 0, },
-       { "module_already_loaded", "Module {hilight $0} already loaded", 1, { 0 } },
-       { "module_load_error", "Error loading module {hilight $0}: $1", 2, { 0, 0 } },
-       { "module_invalid", "{hilight $0} isn't Irssi-SILC module", 1, { 0 } },
-       { "module_loaded", "Loaded module {hilight $0}", 1, { 0 } },
-       { "module_unloaded", "Unloaded module {hilight $0}", 1, { 0 } },
+       { "module_already_loaded", "Module {hilight $0/$1} already loaded", 2, { 0, 0 } },
+       { "module_not_loaded", "Module {hilight $0/$1} is not loaded", 2, { 0, 0 } },
+       { "module_load_error", "Error loading module {hilight $0/$1}: $2", 3, { 0, 0, 0 } },
+       { "module_invalid", "{hilight $0/$1} isn't Irssi module", 2, { 0, 0 } },
+       { "module_loaded", "Loaded module {hilight $0/$1}", 2, { 0, 0 } },
+       { "module_unloaded", "Unloaded module {hilight $0/$1}", 2, { 0, 0 } },
 
        /* ---- */
        { NULL, "Commands", 0 },
@@ -184,7 +213,14 @@ FORMAT_REC fecommon_core_formats[] = {
        { "not_joined", "Not joined to any channel", 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 },
+       { "illegal_proto", "Command isn't designed for the chat protocol of the active server", 0 },
+       { "not_good_idea", "Doing this is not a good idea. Add -YES option to command if you really mean it", 0 },
+       { "invalid_time", "Invalid timestamp", 0 },
+       { "invalid_level", "Invalid message level", 0 },
+       { "invalid_size", "Invalid size", 0 },
+       { "invalid_charset", "Invalid charset: $0", 1, { 0 } },
+       { "eval_max_recurse", "/eval hit maximum recursion limit", 0 },
+       { "program_not_found", "Could not find file or file is not executable", 0 },
 
        /* ---- */
        { NULL, "Themes", 0 },
@@ -193,7 +229,10 @@ FORMAT_REC fecommon_core_formats[] = {
        { "theme_save_failed", "Error saving theme to $0: $1", 2, { 0, 0 } },
        { "theme_not_found", "Theme {hilight $0} not found", 1, { 0 } },
        { "theme_changed", "Using now theme {hilight $0} ($1)", 2, { 0, 0 } },
-       { "window_theme_changed", "Using theme {hilight $0} ($1) in this window", 2, { 0, 0 } },
+       { "window_theme", "Using theme {hilight $0} in this window", 2, { 0, 0 } },
+       { "window_theme_default", "No theme is set for this window", 0 },
+       { "window_theme_changed", "Using now theme {hilight $0} ($1) in this window", 2, { 0, 0 } },
+       { "window_theme_removed", "Removed theme from this window", 0 },
        { "format_title", "%:[{hilight $0}] - [{hilight $1}]%:", 2, { 0, 0 } },
        { "format_subtitle", "[{hilight $0}]", 1, { 0 } },
        { "format_item", "$0 = $1", 2, { 0, 0 } },
@@ -202,27 +241,52 @@ FORMAT_REC fecommon_core_formats[] = {
        { NULL, "Ignores", 0 },
 
        { "ignored", "Ignoring {hilight $1} from {nick $0}", 2, { 0, 0 } },
+       { "ignored_options", "Ignoring {hilight $1} from {nick $0} {comment $2}", 3, { 0, 0, 0 } },
        { "unignored", "Unignored {nick $0}", 1, { 0 } },
        { "ignore_not_found", "{nick $0} is not being ignored", 1, { 0 } },
        { "ignore_no_ignores", "There are no ignores", 0 },
-       { "ignore_header", "Ignorance List:", 0 },
-       { "ignore_line", "$[-4]0 $1: $2 $3 $4", 4, { 1, 0, 0, 0 } },
+       { "ignore_header", "%#Ignorance List:", 0 },
+       { "ignore_line", "%#$[-4]0 $1: $2 $3 $4", 4, { 1, 0, 0, 0 } },
        { "ignore_footer", "", 0 },
 
+       /* ---- */
+       { NULL, "Recode", 0 },
+
+       { "not_channel_or_query", "The current window is not a channel or query window", 0 },
+       { "conversion_added", "Added {hilight $0}/{hilight $1} to conversion database", 2, { FORMAT_STRING, FORMAT_STRING } },
+       { "conversion_removed", "Removed {hilight $0} from conversion database", 1, { FORMAT_STRING } },
+       { "conversion_not_found", "{hilight $0} not found in conversion database", 1, { FORMAT_STRING } },
+       { "conversion_no_translits", "Transliterations not supported in this system", 0 },
+       { "recode_header", "%#Target                         Character set", 0 },
+       { "recode_line", "%#%|$[!30]0 $1", 2, { FORMAT_STRING, FORMAT_STRING } },
+
        /* ---- */
        { NULL, "Misc", 0 },
 
        { "unknown_chat_protocol", "Unknown chat protocol: $0", 1, { 0 } },
-       { "unknown_chatnet", "Unknown chat network: $0", 1, { 0 } },
+       { "unknown_chatnet", "Unknown chat network: $0 (create it with /NETWORK ADD)", 1, { 0 } },
        { "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_header", "%#Key                  Action", 0 },
+       { "bind_list", "%#$[!20]0 $1 $2", 3, { 0, 0, 0 } },
+       { "bind_footer", "", 0 },
        { "bind_unknown_id", "Unknown bind action: $0", 1, { 0 } },
        { "config_saved", "Saved configuration to file $0", 1, { 0 } },
        { "config_reloaded", "Reloaded configuration", 1, { 0 } },
-       { "config_modified", "Configuration file was modified since Irssi-SILC was last started - do you want to overwrite the possible changes?", 1, { 0 } },
-       { "glib_error", "{error GLib $0} $1", 2, { 0, 0 } },
+       { "config_modified", "Configuration file was modified since irssi was last started - do you want to overwrite the possible changes?", 1, { 0 } },
+       { "glib_error", "{error $0} $1", 2, { 0, 0 } },
        { "overwrite_config", "Overwrite config (y/N)?", 0 },
+       { "set_title", "[{hilight $0}]", 1, { 0 } },
+       { "set_item", "$0 = $1", 2, { 0, 0 } },
+       { "set_unknown", "Unknown setting $0", 1, { 0 } },
+       { "set_not_boolean", "Setting {hilight $0} isn't boolean, use /SET", 1, { 0 } },
+       { "translation_not_found", "Error opening translation table file $0: $1", 2, { 0, 0 } },
+       { "translation_file_error", "Error parsing translation table file $0", 1, { 0 } },
+       { "no_completions", "There's no completions", 0 },
+       { "completion_removed", "Removed completion $0", 1, { 0 } },
+       { "completion_header", "%#Key        Value                                    Auto", 0 },
+       { "completion_line", "%#$[10]0 $[!40]1 $2", 3, { 0, 0, 0 } },
+       { "completion_footer", "", 0 },
 
        { NULL, NULL, 0 }
 };