From 2c03b7f1c182b712d87ced58a6ae20ddef0b8cf6 Mon Sep 17 00:00:00 2001
From: JoramWilander <jwawilander@gmail.com>
Date: Fri, 26 Feb 2016 11:06:57 -0500
Subject: Fix missing preview strings for a language showing up as the id not
 the defaut messsage

---
 web/react/components/user_settings/user_settings_advanced.jsx | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

(limited to 'web/react/components/user_settings/user_settings_advanced.jsx')

diff --git a/web/react/components/user_settings/user_settings_advanced.jsx b/web/react/components/user_settings/user_settings_advanced.jsx
index e513f81d2..efaf63ada 100644
--- a/web/react/components/user_settings/user_settings_advanced.jsx
+++ b/web/react/components/user_settings/user_settings_advanced.jsx
@@ -47,6 +47,10 @@ const holders = defineMessages({
     EMBED_PREVIEW: {
         id: 'user.settings.advance.embed_preview',
         defaultMessage: 'Show preview snippet of links below message'
+    },
+    EMBED_TOGGLE: {
+        id: 'user.settings.advance.embed_toggle',
+        defaultMessage: 'Show toggle for all embed previews'
     }
 });
 
@@ -240,7 +244,7 @@ class AdvancedSettingsDisplay extends React.Component {
                                             this.toggleFeature(feature.label, e.target.checked);
                                         }}
                                     />
-                                    {formatMessage({id: 'user.settings.advance.' + feature.label})}
+                                    {formatMessage(holders[key])}
                                 </label>
                             </div>
                         </div>
@@ -334,4 +338,4 @@ AdvancedSettingsDisplay.propTypes = {
     collapseModal: React.PropTypes.func.isRequired
 };
 
-export default injectIntl(AdvancedSettingsDisplay);
\ No newline at end of file
+export default injectIntl(AdvancedSettingsDisplay);
-- 
cgit v1.2.3-1-g7c22

