From 8a7535d7fe11a7c8aee08dface4b51d454b7f4e4 Mon Sep 17 00:00:00 2001
From: =Corey Hulen <corey@hulen.com>
Date: Thu, 11 Feb 2016 09:58:04 -0800
Subject: Fixing socket store loc

---
 web/react/stores/socket_store.jsx | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

(limited to 'web/react/stores/socket_store.jsx')

diff --git a/web/react/stores/socket_store.jsx b/web/react/stores/socket_store.jsx
index e1b65fe14..424c7fe57 100644
--- a/web/react/stores/socket_store.jsx
+++ b/web/react/stores/socket_store.jsx
@@ -32,6 +32,8 @@ class SocketStoreClass extends EventEmitter {
 
         this.failCount = 0;
 
+        this.translations = this.getDefaultTranslations();
+
         this.initialize();
     }
 
@@ -174,6 +176,18 @@ class SocketStoreClass extends EventEmitter {
         this.translations = messages;
     }
 
+    getDefaultTranslations() {
+        return ({
+            socketError: 'Please check connection, Mattermost unreachable. If issue persists, ask administrator to check WebSocket port.',
+            someone: 'Someone',
+            posted: 'Posted',
+            uploadedImage: ' uploaded an image',
+            uploadedFile: ' uploaded a file',
+            something: ' did something new',
+            wrote: ' wrote: '
+        });
+    }
+
     close() {
         if (conn && conn.readyState === WebSocket.OPEN) {
             conn.close();
-- 
cgit v1.2.3-1-g7c22

