Commits

Scott Lawrence  committed c535088

STORM-1883: add alert when a secondary dictionary is imported

  • Participants
  • Parent commits a9b8c1f

Comments (0)

Files changed (2)

File indra/newview/llfloaterspellchecksettings.cpp

 		}
 		else
 		{
+			LLSD args = LLSD::emptyMap();
+			args["DIC_NAME"] = dict_dic;
+			LLNotificationsUtil::add("SpellingDictIsSecondary", args);
+
 			imported = true;
 		}
 	}

File indra/newview/skins/default/xui/en/notifications.xml

 
   <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"
    type="alertmodal">
     Unable to copy