From c37b3dde541805afe29ce3297ec5416ba3609127 Mon Sep 17 00:00:00 2001 From: paulgproductengine Date: Thu, 23 Feb 2012 20:09:44 +0200 Subject: EXP-1910 FIXED (Viewer usually crashes whith empty list of voice morphs ) - Added missed strings to the XML - Just adding unlocalized name to the effects list if localized string was not found in XML. I think it's a better than throwing an error. --- indra/newview/llfloatervoiceeffect.cpp | 4 +++- indra/newview/skins/default/xui/en/floater_voice_effect.xml | 9 ++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/indra/newview/llfloatervoiceeffect.cpp b/indra/newview/llfloatervoiceeffect.cpp index 030fed0575..227720bee3 100644 --- a/indra/newview/llfloatervoiceeffect.cpp +++ b/indra/newview/llfloatervoiceeffect.cpp @@ -145,7 +145,9 @@ void LLFloaterVoiceEffect::refreshEffectList() for (voice_effect_list_t::const_iterator it = template_list.begin(); it != template_list.end(); ++it) { const LLUUID& effect_id = it->second; - std::string effect_name = getString("effect_" + it->first); // will throw an error if the effect is not listed in the XML + + std::string localized_effect = "effect_" + it->first; + std::string effect_name = hasString(localized_effect) ? getString(localized_effect) : it->first; // XML contains localized effects names LLSD effect_properties = effect_interface->getVoiceEffectProperties(effect_id); diff --git a/indra/newview/skins/default/xui/en/floater_voice_effect.xml b/indra/newview/skins/default/xui/en/floater_voice_effect.xml index 77fb21e27c..35cb2670d0 100644 --- a/indra/newview/skins/default/xui/en/floater_voice_effect.xml +++ b/indra/newview/skins/default/xui/en/floater_voice_effect.xml @@ -36,15 +36,20 @@ Cyber DeepBot Demon + Female Elf Flirty Foxy - Halloween_2010_Bonus + Halloween_2010_Bonus Helium Husky + Husky Whisper Intercom + Julia + Lo Lilt Macho Micro Mini + Model Nano Nightmare PopBot @@ -52,10 +57,12 @@ Radio Robot Roxanne + Rumble Sabrina Samantha Sexy Shorty + Smaller Sneaky Stallion Sultry -- cgit v1.2.3