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

meow-7.2.2
Oz Linden 2012-06-15 12:36:03 -04:00
parent bdb0f4f485
commit 3f7ed8b888
2 changed files with 15 additions and 0 deletions

View File

@ -310,6 +310,10 @@ void LLFloaterSpellCheckerImport::onBtnOK()
}
else
{
LLSD args = LLSD::emptyMap();
args["DIC_NAME"] = dict_dic;
LLNotificationsUtil::add("SpellingDictIsSecondary", args);
imported = true;
}
}

View File

@ -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"