summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2012-06-15 12:36:03 -0400
committerOz Linden <oz@lindenlab.com>2012-06-15 12:36:03 -0400
commit3f7ed8b888b5725912e38f19e36c4c5e1583ea7c (patch)
treefddfb918487600b67b5b176a86cd4a78d19ab2d4
parentbdb0f4f4853472bdba94ed7a6a70653de6290e0c (diff)
STORM-1883: add alert when a secondary dictionary is imported
-rw-r--r--indra/newview/llfloaterspellchecksettings.cpp4
-rw-r--r--indra/newview/skins/default/xui/en/notifications.xml11
2 files changed, 15 insertions, 0 deletions
diff --git a/indra/newview/llfloaterspellchecksettings.cpp b/indra/newview/llfloaterspellchecksettings.cpp
index 22eaa566fe..d7fbc94631 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 c04e33fe8e..79e02727e9 100644
--- a/indra/newview/skins/default/xui/en/notifications.xml
+++ b/indra/newview/skins/default/xui/en/notifications.xml
@@ -2398,6 +2398,17 @@ Would you be my friend?
<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