예제 #1
0
        private static IAssetBundle ReadXliff(string filename, Stream file, Flavour flavour, ZipArchiveEntry entry = null)
        {
            var parser = new XliffParser();

            parser.Filename = filename;
            parser.Flavour  = flavour;
            parser.ZipEntry = entry;
            return(parser.Read(file));
        }
예제 #2
0
        private static IEnumerable <IAsset> ReadXliff(string filename, Stream file, ref Flavour flavour, ZipArchiveEntry entry)
        {
            var parser = new XliffParser();

            parser.Filename = filename;
            parser.Flavour  = flavour;
            parser.ZipEntry = entry;
            var assets = parser.Read(file);

            flavour = parser.Flavour;
            return(assets);
        }