Esempio n. 1
0
            public override string GetString(string name, bool ignoreCase)
            {
                var result = (string)null;

                try
                {
                    var dic = GetResources();
                    dic.TryGetValue(name, out result);
                }
                catch (Exception err)
                {
                    log.ErrorFormat("Can not get resource from {0} for {1}: GetString({2}), {3}", filename, culture, name, err);
                }

                if (invariant != null && result == null)
                {
                    result = invariant.GetString(name, ignoreCase);
                }

                if (WhiteLableEnabled)
                {
                    result = WhiteLabelHelper.ReplaceLogo(name, result);
                }

                return(result);
            }
            public override string GetString(string name, bool ignoreCase)
            {
                var result = base.GetString(name, ignoreCase);

                result = WhiteLabelHelper.ReplaceLogo(name, result);
                return(result);
            }