Exemple #1
0
            public override string GetLocalizedString(PreviewStringId id)
            {
                int k = id.GetHashCode();

                if (hash.Contains(k))
                {
                    return(hash[k].ToString());
                }
                else
                {
                    return(base.GetLocalizedString(id));
                }
            }
Exemple #2
0
            public override string GetLocalizedString(PreviewStringId id)
            {
                int k = id.GetHashCode();

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