From 67c98ac4fc92e9a380b5efc3288034db436b3755 Mon Sep 17 00:00:00 2001 From: Darren Date: Sat, 10 May 2014 14:13:45 +0100 Subject: [PATCH] Missing text themes - Server connecting --- client/assets/text_themes/default.json | 2 ++ client/src/models/application.js | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/client/assets/text_themes/default.json b/client/assets/text_themes/default.json index 772ab28..9f39da9 100644 --- a/client/assets/text_themes/default.json +++ b/client/assets/text_themes/default.json @@ -14,6 +14,8 @@ "channel_invalid_name": "⚠ %channel %text", "channel_topic_setby": "ⓘ %text", "channel_has_been_invited": "ⓘ %nick %text", + "server_connecting": "%text", + "server_connecting_error": "%text", "mode": "ⓘ %nick %text", "selfmode": "ⓘ %nick %text", "nickname_alreadyinuse": "⚠ %text", diff --git a/client/src/models/application.js b/client/src/models/application.js index ff7d1e7..35d4b95 100644 --- a/client/src/models/application.js +++ b/client/src/models/application.js @@ -792,7 +792,7 @@ // Use the same nick as we currently have nick = _kiwi.app.connections.active_connection.get('nick'); - _kiwi.app.panels().active.addMsg('', styleText('client_models_application_connection_connecting', {text: translateText('client_models_application_connection_connecting', [server, port.toString()])})); + _kiwi.app.panels().active.addMsg('', styleText('server_connecting', {text: translateText('client_models_application_connection_connecting', [server, port.toString()])})); _kiwi.gateway.newConnection({ nick: nick, @@ -802,7 +802,7 @@ password: password }, function(err, new_connection) { if (err) - _kiwi.app.panels().active.addMsg('', styleText('client_models_application_connection_error', {text: translateText('client_models_application_connection_error', [server, port.toString(), err.toString()])})); + _kiwi.app.panels().active.addMsg('', styleText('server_connecting_error', {text: translateText('client_models_application_connection_error', [server, port.toString(), err.toString()])})); }); } -- 2.25.1