Пример #1
0
            public override string GetLocalizedString(GridStringId id)
            {
                int    k   = id.GetHashCode();
                string str = string.Empty;

                if (hash.Contains(k))
                {
                    return(hash[k].ToString());
                }
                else
                {
                    return(base.GetLocalizedString(id));
                }
            }
Пример #2
0
            public override string GetLocalizedString(GridStringId id)
            {
                int    k   = id.GetHashCode();
                string str = string.Empty;

                if (hash.Contains(k))
                {
                    return(hash[k].ToString());
                }
                else
                {
                    Translation.updateDictionary("GRD", k.ToString(), base.GetLocalizedString(id).Replace("'", "`"));
                    hash.Add(k, base.GetLocalizedString(id));
                    return(base.GetLocalizedString(id));
                }
            }