31 references to MetadataKey
Microsoft.DotNet.XliffTasks (31)
Tasks\EnsureAllResourcesTranslated.cs (1)
25string sourceDocumentPath = item.GetMetadataOrDefault(MetadataKey.SourceDocumentPath, item.ItemSpec);
Tasks\GatherTranslatedSource.cs (13)
27string translatedFullPath = xlf.GetMetadataOrThrow(MetadataKey.XlfTranslatedFullPath); 28string language = xlf.GetMetadataOrThrow(MetadataKey.XlfLanguage); 29bool preserveFileName = string.Equals(xlf.GetMetadata(MetadataKey.XlfPreserveFileName), "true", StringComparison.OrdinalIgnoreCase); 61string link = xlf.GetMetadata(MetadataKey.Link); 64link = xlf.GetMetadataOrThrow(MetadataKey.XlfSource); 83output.SetMetadata(MetadataKey.Link, link); 88string manifestResourceName = xlf.GetMetadata(MetadataKey.ManifestResourceName); 92output.SetMetadata(MetadataKey.ManifestResourceName, manifestResourceName); 98string logicalName = xlf.GetMetadata(MetadataKey.LogicalName); 103output.SetMetadata(MetadataKey.LogicalName, logicalName); 109string dependentUpon = xlf.GetMetadata(MetadataKey.DependentUpon); 112string sourceDirectory = Path.GetDirectoryName(xlf.GetMetadataOrThrow(MetadataKey.XlfSource)); 116output.SetMetadata(MetadataKey.DependentUpon, dependentUpon);
Tasks\GatherXlf.cs (9)
34string sourceDocumentPath = source.GetMetadataOrDefault(MetadataKey.SourceDocumentPath, source.ItemSpec); 46xlf.SetMetadata(MetadataKey.XlfSource, source.ItemSpec); 47xlf.SetMetadata(MetadataKey.XlfTranslatedFullPath, GetTranslatedOutputPath(source, language, outputPaths)); 48xlf.SetMetadata(MetadataKey.XlfLanguage, language); 58bool preserveFileName = string.Equals(source.GetMetadata(MetadataKey.XlfPreserveFileName), "true", StringComparison.OrdinalIgnoreCase); 60string translatedFileName = source.GetMetadata(MetadataKey.XlfTranslatedFilename); 64source.SetMetadata(MetadataKey.XlfTranslatedFilename, translatedFileName); 67string sourceDocumentPath = source.GetMetadataOrDefault(MetadataKey.SourceDocumentPath, source.ItemSpec); 78$"Give them unique names or set unique {MetadataKey.XlfTranslatedFilename} metadata.");
Tasks\SortXlf.cs (1)
23string sourceDocumentPath = item.GetMetadataOrDefault(MetadataKey.SourceDocumentPath, item.ItemSpec);
Tasks\TranslateSource.cs (5)
19string sourcePath = XlfFile.GetMetadataOrThrow(MetadataKey.XlfSource); 20string sourceFormat = XlfFile.GetMetadataOrThrow(MetadataKey.XlfSourceFormat); 21string language = XlfFile.GetMetadataOrThrow(MetadataKey.XlfLanguage); 22string translatedFullPath = XlfFile.GetMetadataOrThrow(MetadataKey.XlfTranslatedFullPath); 26TranslatableDocument sourceDocument = XlfTask.LoadSourceDocument(sourceAbsolutePath, XlfFile.GetMetadata(MetadataKey.XlfSourceFormat));
Tasks\UpdateXlf.cs (2)
33string sourceDocumentPath = item.GetMetadataOrDefault(MetadataKey.SourceDocumentPath, item.ItemSpec); 34string sourceFormat = item.GetMetadataOrThrow(MetadataKey.XlfSourceFormat);