public static string SearchTranslation(string tNamespace, string tKey, string ifNotFound)
 {
     if (HotfixLocResDict != null &&
         HotfixLocResDict.ContainsKey(tNamespace) &&
         HotfixLocResDict[tNamespace].ContainsKey(tKey) &&
         HotfixLocResDict[tNamespace][tKey].ContainsKey(GetLanguageCode()))
     {
         return(HotfixLocResDict[tNamespace][tKey][GetLanguageCode()]);
     }
     else if (FProp.Default.FLanguage == "English")
     {
         return(ifNotFound);
     }
     else if (BRLocResDict != null && BRLocResDict.ContainsKey(tNamespace) && BRLocResDict[tNamespace].ContainsKey(tKey))
     {
         return(BRLocResDict[tNamespace][tKey]);
     }
     else if (STWLocResDict != null && STWLocResDict.ContainsKey(tNamespace) && STWLocResDict[tNamespace].ContainsKey(tKey))
     {
         return(STWLocResDict[tNamespace][tKey]);
     }
     else
     {
         return(ifNotFound);
     }
 }
        public static string SearchTranslation(string tNamespace, string tKey, string ifNotFound)
        {
            if (HotfixLocResDict != null &&
                HotfixLocResDict.ContainsKey(tNamespace) &&
                HotfixLocResDict[tNamespace].ContainsKey(tKey) &&
                HotfixLocResDict[tNamespace][tKey].ContainsKey(ifNotFound))
            {
                string ifNotFoundTemp = ifNotFound;

                // If there is a default text in hotfix, it's changed.
                bool isHotfixDefault = false;
                if (HotfixLocResDict[tNamespace][tKey].ContainsKey("en"))
                {
                    ifNotFound      = HotfixLocResDict[tNamespace][tKey][ifNotFound]["en"];
                    isHotfixDefault = true;
                }

                if (HotfixLocResDict[tNamespace][tKey][ifNotFoundTemp].ContainsKey(GetLanguageCode()))
                {
                    string hotfixString = HotfixLocResDict[tNamespace][tKey][ifNotFoundTemp][GetLanguageCode()];

                    // ONLY if there is english in the hotfix.
                    // If the translation is empty, it will be the default text.
                    if (isHotfixDefault && !string.IsNullOrEmpty(ifNotFound) && string.IsNullOrEmpty(hotfixString))
                    {
                        hotfixString = ifNotFound;
                    }

                    return(hotfixString);
                }
            }

            if (FProp.FLanguage == "English")
            {
                return(ifNotFound);
            }
            else if (BRLocResDict != null && BRLocResDict.ContainsKey(tNamespace) && BRLocResDict[tNamespace].ContainsKey(tKey))
            {
                return(BRLocResDict[tNamespace][tKey]);
            }
            else if (STWLocResDict != null && STWLocResDict.ContainsKey(tNamespace) && STWLocResDict[tNamespace].ContainsKey(tKey))
            {
                return(STWLocResDict[tNamespace][tKey]);
            }
            else
            {
                return(ifNotFound);
            }
        }