diff options
Diffstat (limited to 'indra/llxuixml')
-rw-r--r-- | indra/llxuixml/lltrans.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/indra/llxuixml/lltrans.h b/indra/llxuixml/lltrans.h index 6c8d28b346..30c96f8121 100644 --- a/indra/llxuixml/lltrans.h +++ b/indra/llxuixml/lltrans.h @@ -107,7 +107,16 @@ public: { std::string key_str(keystring); std::string trans_str; - return findString(trans_str, "Key_" + key_str) ? trans_str : key_str; + if (findString(trans_str, "Key_" + key_str)) + { + return trans_str; + } + else if (findString(trans_str, key_str)) + { + return trans_str; + } + llwarns << "Failed to find keyboard string " << keystring << llendl; + return key_str; } // get the default args |