| 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. |
| 2 | |
| 3 | namespace WixToolset.Core |
| 4 | { |
| 5 | using System.Xml.Linq; |
| 6 | using WixToolset.Data; |
| 7 | |
| 8 | /// <summary> |
| 9 | /// Parses localization source files. |
| 10 | /// </summary> |
| 11 | public interface ILocalizationParser |
| 12 | { |
| 13 | /// <summary> |
| 14 | /// Loads a localization file from a path on disk. |
| 15 | /// </summary> |
| 16 | /// <param name="path">Path to localization file saved on disk.</param> |
| 17 | /// <returns>Returns the loaded localization file.</returns> |
| 18 | Localization ParseLocalization(string path); |
| 19 | |
| 20 | /// <summary> |
| 21 | /// Loads a localization file from memory. |
| 22 | /// </summary> |
| 23 | /// <param name="document">Document to parse as localization file.</param> |
| 24 | /// <returns>Returns the loaded localization file.</returns> |
| 25 | Localization ParseLocalization(XDocument document); |
| 26 | } |
| 27 | } |