From 3f7ed8b888b5725912e38f19e36c4c5e1583ea7c Mon Sep 17 00:00:00 2001
From: Oz Linden <oz@lindenlab.com>
Date: Fri, 15 Jun 2012 12:36:03 -0400
Subject: [PATCH] STORM-1883: add alert when a secondary dictionary is imported

---
 indra/newview/llfloaterspellchecksettings.cpp        |  4 ++++
 indra/newview/skins/default/xui/en/notifications.xml | 11 +++++++++++
 2 files changed, 15 insertions(+)

diff --git a/indra/newview/llfloaterspellchecksettings.cpp b/indra/newview/llfloaterspellchecksettings.cpp
index 22eaa566fea..d7fbc94631b 100644
--- a/indra/newview/llfloaterspellchecksettings.cpp
+++ b/indra/newview/llfloaterspellchecksettings.cpp
@@ -310,6 +310,10 @@ void LLFloaterSpellCheckerImport::onBtnOK()
 		}
 		else
 		{
+			LLSD args = LLSD::emptyMap();
+			args["DIC_NAME"] = dict_dic;
+			LLNotificationsUtil::add("SpellingDictIsSecondary", args);
+
 			imported = true;
 		}
 	}
diff --git a/indra/newview/skins/default/xui/en/notifications.xml b/indra/newview/skins/default/xui/en/notifications.xml
index c04e33fe8e5..79e02727e9d 100644
--- a/indra/newview/skins/default/xui/en/notifications.xml
+++ b/indra/newview/skins/default/xui/en/notifications.xml
@@ -2396,6 +2396,17 @@ Would you be my friend?
     <tag>fail</tag>
   </notification>
 
+  <notification
+   icon="alertmodal.tga"
+   name="SpellingDictIsSecondary"
+   type="alertmodal">
+The dictionary [DIC_NAME] does not appear to have an "aff" file; this means that it is a "secondary" dictionary.
+It can be used as an additional dictionary, but not as your Main dictionary.
+
+See https://wiki.secondlife.com/wiki/Adding_Spelling_Dictionaries
+    <tag>confirm</tag>
+  </notification>
+
   <notification
    icon="alertmodal.tga"
    name="SpellingDictImportFailed"
-- 
GitLab