{
- "client_models_channel_join": "== %N %T",
- "client_models_channel_part": "== %N %T",
- "client_models_channel_quit": "== %N %T",
- "client_models_channel_kicked": "== %N %T",
- "client_models_channel_selfkick": "== %T",
- "client_models_network_badpassword": "== %T",
- "client_views_channel_topic": "== %T",
- "client_models_network_mode": "== %N %T",
- "client_models_network_selfmode": "== %N %T",
- "client_models_network_banned": "== %T",
- "client_models_network_channel_badkey": "== %T",
- "client_models_network_channel_inviteonly": "== %C %T",
- "client_models_network_channel_alreadyin": "== %N %T",
- "client_models_network_channel_limitreached": "== %C %T",
- "client_models_network_nickname_alreadyinuse": "== %T",
- "client_models_network_channel_invalid_name": "== %C %T",
- "client_models_network_disconnected": "%T",
- "client_models_network_topic": "%T",
- "client_models_network_channels": "%T",
- "client_models_network_idle_and_signon": "%T",
- "client_models_network_away": "%T",
- "client_models_network_server": "%T",
- "client_models_network_idle": "%T",
- "client_models_network_nickname_notfound": "%T",
- "client_models_network_nickname_changed": "== %N %T",
- "client_models_application_applet_notfound": "%T",
- "client_models_application_has_been_invited": "== %N %T",
- "client_models_application_encoding_changed": "%T",
- "client_models_application_encoding_invalid": "%T",
- "client_models_application_settings_saved": "%T",
- "client_models_application_ignore_title": "%T:",
- "client_models_application_ignore_none": "%T",
- "client_models_application_ignore_nick": "%T",
- "client_models_application_ignore_stop_notice": "%T",
- "client_models_application_ignore_stopped": "%T",
+ "channel_join": "== %N %T",
+ "channel_part": "== %N %T",
+ "channel_quit": "== %N %T",
+ "channel_kicked": "== %N %T",
+ "channel_selfkick": "== %T",
+ "channel_badpassword": "== %T",
+ "channel_topic": "== %T",
+ "mode": "== %N %T",
+ "selfmode": "== %N %T",
+ "channel_banned": "== %T",
+ "channel_badkey": "== %T",
+ "channel_inviteonly": "== %C %T",
+ "channel_alreadyin": "== %N %T",
+ "channel_limitreached": "== %C %T",
+ "nickname_alreadyinuse": "== %T",
+ "channel_invalid_name": "== %C %T",
+ "network_disconnected": "%T",
+ "channel_topic_setby": "%T",
+ "whois_channels": "%T",
+ "whois_idle_and_signon": "%T",
+ "whois_away": "%T",
+ "whois_server": "%T",
+ "whois_idle": "%T",
+ "whois_notfound": "%T",
+ "nick_changed": "== %N %T",
+ "applet_notfound": "%T",
+ "channel_has_been_invited": "== %N %T",
+ "encoding_changed": "%T",
+ "encoding_invalid": "%T",
+ "settings_saved": "%T",
+ "ignore_title": "%T:",
+ "ignore_none": "%T",
+ "ignore_nick": "%T",
+ "ignore_stop_notice": "%T",
+ "ignore_stopped": "%T",
"chanop_privs_needed": "== %T",
"no_such_nick": "== %N: %T",
"unknown_command": "%T",
{
- "client_models_channel_join": "%C14→ %N %T",
- "client_models_channel_part": "%C14← %N %T",
- "client_models_channel_quit": "%C14← %N %T",
- "client_models_channel_kicked": "%C4×%O %N %T",
- "client_models_channel_selfkick": "%C4× %T",
- "client_models_network_badpassword": "%C4× %T",
- "client_views_channel_topic": "%C10ⓘ %T",
- "client_models_network_mode": "%C10ⓘ %N %T",
- "client_models_network_selfmode": "%C10ⓘ %N %T",
- "client_models_network_banned": "%C3×%O %T",
- "client_models_network_channel_badkey": "%C4⚠ %T",
- "client_models_network_channel_inviteonly": "%C4⚠ %C %T",
- "client_models_network_channel_alreadyin": "%C4⚠ %N %T",
- "client_models_network_channel_limitreached": "%C4⚠ %C %T",
- "client_models_network_nickname_alreadyinuse": "%C4⚠ %T",
- "client_models_network_channel_invalid_name": "%C4⚠ %C %T",
- "client_models_network_disconnected": "%C4⚠ %T",
- "client_models_network_topic": "%C10ⓘ %T",
- "client_models_network_channels": "%C14%T",
- "client_models_network_idle_and_signon": "%C14%T",
- "client_models_network_away": "%C14%T",
- "client_models_network_server": "%C14%T",
- "client_models_network_idle": "%C14%T",
- "client_models_network_nickname_notfound": "%C10ⓘ %T",
- "client_models_network_nickname_changed": "%C14ⓘ %N %T",
- "client_models_application_applet_notfound": "%C4⚠ %T",
- "client_models_application_has_been_invited": "%C7ⓘ %N %T",
- "client_models_application_encoding_changed": "%C10ⓘ %T",
- "client_models_application_encoding_invalid": "%C4⚠ %T",
- "client_models_application_settings_saved": "%C10ⓘ %T",
- "client_models_application_ignore_title": "%C10%T:",
- "client_models_application_ignore_none": "%C10%T",
- "client_models_application_ignore_nick": "%C10%T",
- "client_models_application_ignore_stop_notice": "%C10%T",
- "client_models_application_ignore_stopped": "%C10%T",
+ "channel_join": "%C14→ %N %T",
+ "channel_part": "%C14← %N %T",
+ "channel_quit": "%C14← %N %T",
+ "channel_kicked": "%C4×%O %N %T",
+ "channel_selfkick": "%C4× %T",
+ "channel_badpassword": "%C4× %T",
+ "channel_topic": "%C10ⓘ %T",
+ "mode": "%C10ⓘ %N %T",
+ "selfmode": "%C10ⓘ %N %T",
+ "channel_banned": "%C3×%O %T",
+ "channel_badkey": "%C4⚠ %T",
+ "channel_inviteonly": "%C4⚠ %C %T",
+ "channel_alreadyin": "%C4⚠ %N %T",
+ "channel_limitreached": "%C4⚠ %C %T",
+ "nickname_alreadyinuse": "%C4⚠ %T",
+ "channel_invalid_name": "%C4⚠ %C %T",
+ "network_disconnected": "%C4⚠ %T",
+ "channel_topic_setby": "%C10ⓘ %T",
+ "whois_channels": "%C14%T",
+ "whois_idle_and_signon": "%C14%T",
+ "whois_away": "%C14%T",
+ "whois_server": "%C14%T",
+ "whois_idle": "%C14%T",
+ "whois_notfound": "%C10ⓘ %T",
+ "nick_changed": "%C14ⓘ %N %T",
+ "applet_notfound": "%C4⚠ %T",
+ "channel_has_been_invited": "%C7ⓘ %N %T",
+ "encoding_changed": "%C10ⓘ %T",
+ "encoding_invalid": "%C4⚠ %T",
+ "settings_saved": "%C10ⓘ %T",
+ "ignore_title": "%C10%T:",
+ "ignore_none": "%C10%T",
+ "ignore_nick": "%C10%T",
+ "ignore_stop_notice": "%C10%T",
+ "ignore_stopped": "%C10%T",
"chanop_privs_needed": "%C4⚠ %T",
"no_such_nick": "%C10ⓘ %N: %T",
"unknown_command": "%C10ⓘ %T",
\r
fn_to_bind['command:save'] = function (ev) {\r
_kiwi.global.settings.save();\r
- _kiwi.app.panels().active.addMsg('', styleText('client_models_application_settings_saved', {'%T': translateText('client_models_application_settings_saved')}));\r
+ _kiwi.app.panels().active.addMsg('', styleText('settings_saved', {'%T': translateText('client_models_application_settings_saved')}));\r
};\r
\r
\r
// No parameters passed so list them\r
if (!ev.params[0]) {\r
if (list.length > 0) {\r
- _kiwi.app.panels().active.addMsg(' ', styleText('client_models_application_ignore_title', {'%T': translateText('client_models_application_ignore_title')}));\r
+ _kiwi.app.panels().active.addMsg(' ', styleText('ignore_title', {'%T': translateText('client_models_application_ignore_title')}));\r
$.each(list, function (idx, ignored_pattern) {\r
_kiwi.app.panels().active.addMsg(' ', styleText('ignored_pattern', {'%T': ignored_pattern}));\r
});\r
} else {\r
- _kiwi.app.panels().active.addMsg(' ', styleText('client_models_application_ignore_none', {'%T': translateText('client_models_application_ignore_none')}));\r
+ _kiwi.app.panels().active.addMsg(' ', styleText('ignore_none', {'%T': translateText('client_models_application_ignore_none')}));\r
}\r
return;\r
}\r
// We have a parameter, so add it\r
list.push(ev.params[0]);\r
this.connections.active_connection.set('ignore_list', list);\r
- _kiwi.app.panels().active.addMsg(' ', styleText('client_models_application_ignore_nick', {'%T': translateText('client_models_application_ignore_nick', [ev.params[0]])}));\r
+ _kiwi.app.panels().active.addMsg(' ', styleText('ignore_nick', {'%T': translateText('client_models_application_ignore_nick', [ev.params[0]])}));\r
};\r
\r
\r
var list = this.connections.active_connection.get('ignore_list');\r
\r
if (!ev.params[0]) {\r
- _kiwi.app.panels().active.addMsg(' ', styleText('client_models_application_ignore_stop_notice', {'%T': translateText('client_models_application_ignore_stop_notice')}));\r
+ _kiwi.app.panels().active.addMsg(' ', styleText('ignore_stop_notice', {'%T': translateText('client_models_application_ignore_stop_notice')}));\r
return;\r
}\r
\r
\r
this.connections.active_connection.set('ignore_list', list);\r
\r
- _kiwi.app.panels().active.addMsg(' ', styleText('client_models_application_ignore_stopped', {'%T': translateText('client_models_application_ignore_stopped', [ev.params[0]])}));\r
+ _kiwi.app.panels().active.addMsg(' ', styleText('ignore_stopped', {'%T': translateText('client_models_application_ignore_stopped', [ev.params[0]])}));\r
};\r
\r
\r
if (_kiwi.applets[ev.params[0]]) {\r
panel.load(new _kiwi.applets[ev.params[0]]());\r
} else {\r
- _kiwi.app.panels().server.addMsg('', styleText('client_models_application_applet_notfound', {'%T': translateText('client_models_application_applet_notfound', [ev.params[0]])}));\r
+ _kiwi.app.panels().server.addMsg('', styleText('applet_notfound', {'%T': translateText('client_models_application_applet_notfound', [ev.params[0]])}));\r
return;\r
}\r
}\r
\r
_kiwi.app.connections.active_connection.gateway.raw('INVITE ' + nick + ' ' + channel);\r
\r
- _kiwi.app.panels().active.addMsg('', styleText('client_models_application_has_been_invited', {'%N': nick, '%T': translateText('client_models_application_has_been_invited', [channel])}), 'action');\r
+ _kiwi.app.panels().active.addMsg('', styleText('channel_has_been_invited', {'%N': nick, '%T': translateText('client_models_application_has_been_invited', [channel])}), 'action');\r
}\r
\r
\r
if (ev.params[0]) {\r
_kiwi.gateway.setEncoding(null, ev.params[0], function (success) {\r
if (success) {\r
- _kiwi.app.panels().active.addMsg('', styleText('client_models_application_encoding_changed', {'%T': translateText('client_models_application_encoding_changed', [ev.params[0]])}));\r
+ _kiwi.app.panels().active.addMsg('', styleText('encoding_changed', {'%T': translateText('client_models_application_encoding_changed', [ev.params[0]])}));\r
} else {\r
- _kiwi.app.panels().active.addMsg('', styleText('client_models_application_encoding_invalid', {'%T': translateText('client_models_application_encoding_invalid', [ev.params[0]])}));\r
+ _kiwi.app.panels().active.addMsg('', styleText('encoding_invalid', {'%T': translateText('client_models_application_encoding_invalid', [ev.params[0]])}));\r
}\r
});\r
} else {\r
return;\r
}\r
\r
- this.addMsg(' ', styleText('client_models_channel_join', {'%M': member.getMemberMask(), '%T': translateText('client_models_channel_join'), '%C': name}), 'action join', {time: options.kiwi.time});\r
+ this.addMsg(' ', styleText('channel_join', {'%M': member.getMemberMask(), '%T': translateText('client_models_channel_join'), '%C': name}), 'action join', {time: options.kiwi.time});\r
}, this);\r
\r
members.bind("remove", function (member, members, options) {\r
var msg = (options.kiwi.message) ? '(' + options.kiwi.message + ')' : '';\r
\r
if (options.kiwi.type === 'quit' && show_message) {\r
- this.addMsg(' ', styleText('client_models_channel_quit', {'%M': member.getMemberMask(), '%T': translateText('client_models_channel_quit', [msg]), '%C': name}), 'action quit', {time: options.kiwi.time});\r
+ this.addMsg(' ', styleText('channel_quit', {'%M': member.getMemberMask(), '%T': translateText('client_models_channel_quit', [msg]), '%C': name}), 'action quit', {time: options.kiwi.time});\r
\r
} else if (options.kiwi.type === 'kick') {\r
\r
if (!options.kiwi.current_user_kicked) {\r
//If user kicked someone, show the message regardless of settings.\r
if (show_message || options.kiwi.current_user_initiated) {\r
- this.addMsg(' ', styleText('client_models_channel_kicked', {'%M': member.getMemberMask(), '%T': translateText('client_models_channel_kicked', [options.kiwi.by, msg]), '%C': name}), 'action kick', {time: options.kiwi.time});\r
+ this.addMsg(' ', styleText('channel_kicked', {'%M': member.getMemberMask(), '%T': translateText('client_models_channel_kicked', [options.kiwi.by, msg]), '%C': name}), 'action kick', {time: options.kiwi.time});\r
}\r
} else {\r
- this.addMsg(' ', styleText('client_models_channel_selfkick', {'%T': translateText('client_models_channel_selfkick', [options.kiwi.by, msg]), '%C': name}), 'action kick', {time: options.kiwi.time});\r
+ this.addMsg(' ', styleText('channel_selfkick', {'%T': translateText('client_models_channel_selfkick', [options.kiwi.by, msg]), '%C': name}), 'action kick', {time: options.kiwi.time});\r
}\r
} else if (show_message) {\r
- this.addMsg(' ', styleText('client_models_channel_part', {'%M': member.getMemberMask(), '%T': translateText('client_models_channel_part', [msg]), '%C': name}), 'action part', {time: options.kiwi.time});\r
+ this.addMsg(' ', styleText('channel_part', {'%M': member.getMemberMask(), '%T': translateText('client_models_channel_part', [msg]), '%C': name}), 'action part', {time: options.kiwi.time});\r
\r
}\r
}, this);\r
function onDisconnect(event) {
$.each(this.panels.models, function (index, panel) {
- panel.addMsg('', styleText('client_models_network_disconnected', {'%T': translateText('client_models_network_disconnected', [])}), 'action quit');
+ panel.addMsg('', styleText('network_disconnected', {'%T': translateText('client_models_network_disconnected', [])}), 'action quit');
});
}
member = panel.get('members').getByNick(event.nick);
if (member) {
member.set('nick', event.newnick);
- panel.addMsg('', styleText('client_models_network_nickname_changed', {'%N': event.nick, '%T': translateText('client_models_network_nickname_changed', [event.newnick]), '%C': name}), 'action nick', {time: event.time});
+ panel.addMsg('', styleText('nick_changed', {'%N': event.nick, '%T': translateText('client_models_network_nickname_changed', [event.newnick]), '%C': name}), 'action nick', {time: event.time});
}
});
}
if (!c) return;
when = formatDate(new Date(event.when * 1000));
- c.addMsg('', styleText('client_models_network_topic', {'%T': translateText('client_models_network_topic', [event.nick, when]), '%C': event.channel}), 'topic');
+ c.addMsg('', styleText('channel_topic_setby', {'%T': translateText('client_models_network_topic', [event.nick, when]), '%C': event.channel}), 'topic');
}
request_updated_banlist = true;
}
- channel.addMsg('', styleText('client_models_network_mode', {'%N': event.nick, '%T': translateText('client_models_network_mode', [friendlyModeString()]), '%C': event.target}), 'action mode', {time: event.time});
+ channel.addMsg('', styleText('mode', {'%N': event.nick, '%T': translateText('client_models_network_mode', [friendlyModeString()]), '%C': event.target}), 'action mode', {time: event.time});
// TODO: Be smart, remove the specific ban from the banlist rather than request a whole banlist
if (request_updated_banlist)
} else {
// This is probably a mode being set on us.
if (event.target.toLowerCase() === this.get("nick").toLowerCase()) {
- this.panels.server.addMsg('', styleText('client_models_network_selfmode', {'%N': event.nick, '%T': translateText('client_models_network_mode', [friendlyModeString()]), '%C': event.target}), 'action mode');
+ this.panels.server.addMsg('', styleText('selfmode', {'%N': event.nick, '%T': translateText('client_models_network_mode', [friendlyModeString()]), '%C': event.target}), 'action mode');
} else {
console.log('MODE command recieved for unknown target %s: ', event.target, event);
}
panel.addMsg(event.nick, styleText('whois_ident', {'%N': event.nick, '%J': event.ident, '%H': event.host, '%T': event.msg}), 'whois');
} else if (event.chans) {
- panel.addMsg(event.nick, styleText('client_models_network_channels', {'%N': event.nick, '%T': translateText('client_models_network_channels', [event.chans])}), 'whois');
+ panel.addMsg(event.nick, styleText('whois_channels', {'%N': event.nick, '%T': translateText('client_models_network_channels', [event.chans])}), 'whois');
} else if (event.irc_server) {
- panel.addMsg(event.nick, styleText('client_models_network_server', {'%N': event.nick, '%T': translateText('client_models_network_server', [event.irc_server, event.server_info])}), 'whois');
+ panel.addMsg(event.nick, styleText('whois_server', {'%N': event.nick, '%T': translateText('client_models_network_server', [event.irc_server, event.server_info])}), 'whois');
} else if (event.msg) {
panel.addMsg(event.nick, styleText('whois', {'%T': event.msg}), 'whois');
} else if (event.logon) {
logon_date.setTime(event.logon * 1000);
logon_date = formatDate(logon_date);
- panel.addMsg(event.nick, styleText('client_models_network_idle_and_signon', {'%N': event.nick, '%T': translateText('client_models_network_idle_and_signon', [idle_time, logon_date])}), 'whois');
+ panel.addMsg(event.nick, styleText('whois_idle_and_signon', {'%N': event.nick, '%T': translateText('client_models_network_idle_and_signon', [idle_time, logon_date])}), 'whois');
} else if (event.away_reason) {
- panel.addMsg(event.nick, styleText('client_models_network_away', {'%N': event.nick, '%T': translateText('client_models_network_away', [event.away_reason])}), 'whois');
+ panel.addMsg(event.nick, styleText('whois_away', {'%N': event.nick, '%T': translateText('client_models_network_away', [event.away_reason])}), 'whois');
} else {
- panel.addMsg(event.nick, styleText('client_models_network_idle', {'%N': event.nick, '%T': translateText('client_models_network_idle', [idle_time])}), 'whois');
+ panel.addMsg(event.nick, styleText('whois_idle', {'%N': event.nick, '%T': translateText('client_models_network_idle', [idle_time])}), 'whois');
}
}
if (event.host) {
panel.addMsg(event.nick, styleText('who', {'%N': event.nick, '%J': event.ident, '%H': event.host, '%R': event.real_name, '%T': event.msg}), 'whois');
} else {
- panel.addMsg(event.nick, styleText('client_models_network_nickname_notfound', {'%N': event.nick, '%T': translateText('client_models_network_nickname_notfound', [])}), 'whois');
+ panel.addMsg(event.nick, styleText('whois_notfound', {'%N': event.nick, '%T': translateText('client_models_network_nickname_notfound', [])}), 'whois');
}
}
switch (event.error) {
case 'banned_from_channel':
- panel.addMsg(' ', styleText('client_models_network_banned', {'%N': event.nick, '%T': translateText('client_models_network_banned', [event.channel, event.reason]), '%C': event.channel}), 'status');
+ panel.addMsg(' ', styleText('channel_banned', {'%N': event.nick, '%T': translateText('client_models_network_banned', [event.channel, event.reason]), '%C': event.channel}), 'status');
_kiwi.app.message.text(_kiwi.global.i18n.translate('client_models_network_banned').fetch(event.channel, event.reason));
break;
case 'bad_channel_key':
- panel.addMsg(' ', styleText('client_models_network_channel_badkey', {'%N': event.nick, '%T': translateText('client_models_network_channel_badkey', [event.channel]), '%C': event.channel}), 'status');
+ panel.addMsg(' ', styleText('channel_badkey', {'%N': event.nick, '%T': translateText('client_models_network_channel_badkey', [event.channel]), '%C': event.channel}), 'status');
_kiwi.app.message.text(_kiwi.global.i18n.translate('client_models_network_channel_badkey').fetch(event.channel));
break;
case 'invite_only_channel':
- panel.addMsg(' ', styleText('client_models_network_channel_inviteonly', {'%N': event.nick, '%T': translateText('client_models_network_channel_inviteonly', [event.nick, event.channel]), '%C': event.channel}), 'status');
+ panel.addMsg(' ', styleText('channel_inviteonly', {'%N': event.nick, '%T': translateText('client_models_network_channel_inviteonly', [event.nick, event.channel]), '%C': event.channel}), 'status');
_kiwi.app.message.text(event.channel + ' ' + _kiwi.global.i18n.translate('client_models_network_channel_inviteonly').fetch());
break;
case 'user_on_channel':
- panel.addMsg(' ', styleText('client_models_network_channel_alreadyin', {'%N': event.nick, '%T': translateText('client_models_network_channel_alreadyin'), '%C': event.channel}));
+ panel.addMsg(' ', styleText('channel_alreadyin', {'%N': event.nick, '%T': translateText('client_models_network_channel_alreadyin'), '%C': event.channel}));
break;
case 'channel_is_full':
- panel.addMsg(' ', styleText('client_models_network_channel_limitreached', {'%N': event.nick, '%T': translateText('client_models_network_channel_limitreached', [event.channel]), '%C': event.channel}), 'status');
+ panel.addMsg(' ', styleText('channel_limitreached', {'%N': event.nick, '%T': translateText('client_models_network_channel_limitreached', [event.channel]), '%C': event.channel}), 'status');
_kiwi.app.message.text(event.channel + ' ' + _kiwi.global.i18n.translate('client_models_network_channel_limitreached').fetch(event.channel));
break;
case 'chanop_privs_needed':
}
break;
case 'nickname_in_use':
- this.panels.server.addMsg(' ', styleText('client_models_network_nickname_alreadyinuse', {'%N': event.nick, '%T': translateText('client_models_network_nickname_alreadyinuse', [event.nick]), '%C': event.channel}), 'status');
+ this.panels.server.addMsg(' ', styleText('nickname_alreadyinuse', {'%N': event.nick, '%T': translateText('client_models_network_nickname_alreadyinuse', [event.nick]), '%C': event.channel}), 'status');
if (this.panels.server !== this.panels.active) {
_kiwi.app.message.text(_kiwi.global.i18n.translate('client_models_network_nickname_alreadyinuse').fetch(event.nick));
}
break;
case 'password_mismatch':
- this.panels.server.addMsg(' ', styleText('client_models_network_badpassword', {'%N': event.nick, '%T': translateText('client_models_network_badpassword', []), '%C': event.channel}), 'status');
+ this.panels.server.addMsg(' ', styleText('channel_badpassword', {'%N': event.nick, '%T': translateText('client_models_network_badpassword', []), '%C': event.channel}), 'status');
break;
default:
// We don't know what data contains, so don't do anything with it.
topic = this.model.get("topic");
}
- this.model.addMsg('', styleText('client_views_channel_topic', {'%T': translateText('client_views_channel_topic', [this.model.get('name'), topic]), '%C': this.model.get('name')}), 'topic');
+ this.model.addMsg('', styleText('channel_topic', {'%T': translateText('client_views_channel_topic', [this.model.get('name'), topic]), '%C': this.model.get('name')}), 'topic');
// If this is the active channel then update the topic bar
if (_kiwi.app.panels().active === this) {