Пример #1
0
        internal static string GetString(int key)
        {
            string value = null;

            if (key > (uint)LocString.__Start && key < (uint)LocString.__End)
            {
                m_Strings.TryGetValue((LocString)key, out value);
            }
            else if (m_CliLoc != null)
            {
                value = m_CliLoc.GetString(key);
            }

            return(value ?? (value = String.Format("LanguageString \"{0}\" not found!", key)));
        }
Пример #2
0
        public static string GetString(int key)
        {
            string value = null;

            if (key > (uint)LocString.__Start && key < (uint)LocString.__End)
            {
                value = m_Strings[(LocString)key] as string;
            }
            else if (m_CliLoc != null)
            {
                value = m_CliLoc.GetString(key);
            }

            if (value == null)
            {
                value = String.Format("LanguageString \"{0}\" not found!", key);
            }
            return(value);
        }