31 references to MetadataKey
Microsoft.DotNet.XliffTasks (31)
Tasks\EnsureAllResourcesTranslated.cs (1)
24string sourceDocumentPath = item.GetMetadataOrDefault(MetadataKey.SourceDocumentPath, item.ItemSpec);
Tasks\GatherTranslatedSource.cs (13)
26string translatedFullPath = xlf.GetMetadataOrThrow(MetadataKey.XlfTranslatedFullPath); 27string language = xlf.GetMetadataOrThrow(MetadataKey.XlfLanguage); 28bool preserveFileName = string.Equals(xlf.GetMetadata(MetadataKey.XlfPreserveFileName), "true", StringComparison.OrdinalIgnoreCase); 60string link = xlf.GetMetadata(MetadataKey.Link); 63link = xlf.GetMetadataOrThrow(MetadataKey.XlfSource); 82output.SetMetadata(MetadataKey.Link, link); 87string manifestResourceName = xlf.GetMetadata(MetadataKey.ManifestResourceName); 91output.SetMetadata(MetadataKey.ManifestResourceName, manifestResourceName); 97string logicalName = xlf.GetMetadata(MetadataKey.LogicalName); 102output.SetMetadata(MetadataKey.LogicalName, logicalName); 108string dependentUpon = xlf.GetMetadata(MetadataKey.DependentUpon); 111string sourceDirectory = Path.GetDirectoryName(xlf.GetMetadataOrThrow(MetadataKey.XlfSource)); 113output.SetMetadata(MetadataKey.DependentUpon, dependentUpon);
Tasks\GatherXlf.cs (9)
34string sourceDocumentPath = source.GetMetadataOrDefault(MetadataKey.SourceDocumentPath, source.ItemSpec); 40xlf.SetMetadata(MetadataKey.XlfSource, source.ItemSpec); 41xlf.SetMetadata(MetadataKey.XlfTranslatedFullPath, GetTranslatedOutputPath(source, language, outputPaths)); 42xlf.SetMetadata(MetadataKey.XlfLanguage, language); 53bool preserveFileName = string.Equals(source.GetMetadata(MetadataKey.XlfPreserveFileName), "true", StringComparison.OrdinalIgnoreCase); 55string translatedFileName = source.GetMetadata(MetadataKey.XlfTranslatedFilename); 59source.SetMetadata(MetadataKey.XlfTranslatedFilename, translatedFileName); 62string sourceDocumentPath = source.GetMetadataOrDefault(MetadataKey.SourceDocumentPath, source.ItemSpec); 73$"Give them unique names or set unique {MetadataKey.XlfTranslatedFilename} metadata.");
Tasks\SortXlf.cs (1)
22string sourceDocumentPath = item.GetMetadataOrDefault(MetadataKey.SourceDocumentPath, item.ItemSpec);
Tasks\TranslateSource.cs (5)
18string sourcePath = XlfFile.GetMetadataOrThrow(MetadataKey.XlfSource); 19string sourceFormat = XlfFile.GetMetadataOrThrow(MetadataKey.XlfSourceFormat); 20string language = XlfFile.GetMetadataOrThrow(MetadataKey.XlfLanguage); 21string translatedFullPath = XlfFile.GetMetadataOrThrow(MetadataKey.XlfTranslatedFullPath); 23TranslatableDocument sourceDocument = XlfTask.LoadSourceDocument(sourcePath, XlfFile.GetMetadata(MetadataKey.XlfSourceFormat));
Tasks\UpdateXlf.cs (2)
32string sourceDocumentPath = item.GetMetadataOrDefault(MetadataKey.SourceDocumentPath, item.ItemSpec); 33string sourceFormat = item.GetMetadataOrThrow(MetadataKey.XlfSourceFormat);