From a4f5a5a042c00254607fbecdf132a2e2a91a1bdd Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Fri, 1 Mar 2019 07:33:20 -0800 Subject: Rename ILocalizer to ILocalizationParser --- src/WixToolset.Core/ILocalizationParser.cs | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/WixToolset.Core/ILocalizationParser.cs (limited to 'src/WixToolset.Core/ILocalizationParser.cs') 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 @@ +// 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. + +namespace WixToolset.Core +{ + using System.Xml.Linq; + using WixToolset.Data; + + /// + /// Parses localization source files. + /// + public interface ILocalizationParser + { + /// + /// Loads a localization file from a path on disk. + /// + /// Path to localization file saved on disk. + /// Returns the loaded localization file. + Localization ParseLocalization(string path); + + /// + /// Loads a localization file from memory. + /// + /// Document to parse as localization file. + /// Returns the loaded localization file. + Localization ParseLocalization(XDocument document); + } +} -- cgit v1.2.3-55-g6feb