Exemplo n.º 1
0
        public ITextSource GetSource(Umbraco.Foundation.Localization.TextManager textManager, Assembly referenceAssembly, string targetNamespace)
        {
            var source = new SimpleTextSource();

            source.Texts.Add(new LocalizedText
            {
                Namespace = targetNamespace,
                Key       = "FactoryTest",
                Pattern   = "I'm from a factory",
                Language  = "en-US",
                Source    = new TextSourceInfo {
                    TextSource = source, ReferenceAssembly = referenceAssembly
                }
            });

            return(source);
        }
 public ITextSource GetSource(Umbraco.Foundation.Localization.TextManager textManager, Assembly referenceAssembly, string targetNamespace)
 {
     _targetNamespace   = targetNamespace;
     _referenceAssembly = referenceAssembly;
     return(_source);
 }