diff options
Diffstat (limited to 'src/WixToolset.Core/ILocalizationParser.cs')
-rw-r--r-- | src/WixToolset.Core/ILocalizationParser.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/WixToolset.Core/ILocalizationParser.cs b/src/WixToolset.Core/ILocalizationParser.cs new file mode 100644 index 00000000..0e70aa0e --- /dev/null +++ b/src/WixToolset.Core/ILocalizationParser.cs | |||
@@ -0,0 +1,27 @@ | |||
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 | } | ||